Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot get the Schematic to be the default when using API to allow viewing both schematic and pct #79

Open
bradanlane opened this issue Feb 5, 2024 · 2 comments
Labels
documentation Improvements or additions to documentation

Comments

@bradanlane
Copy link

I call the embedded API using the following:

    <script type="module" src="js/kicanvas.js"></script>
    <kicanvas-embed controls="full" controlslist="nodownload">
        <kicanvas-source src="files/project.kicad_pro"></kicanvas-source>
        <kicanvas-source src="files/project.kicad_sch"></kicanvas-source>
        <kicanvas-source src="files/project.kicad_pcb"></kicanvas-source>
    </kicanvas-embed>

It always starts with the PCB.

I have tried omitting the pro file and I have tried swapped the order. The PCB is always the default when the webpage is loaded.

What change do I need to make such that the schematic is the default?

@bradanlane bradanlane added the documentation Improvements or additions to documentation label Feb 5, 2024
@theacodes
Copy link
Owner

theacodes commented Feb 5, 2024 via email

@bradanlane
Copy link
Author

bradanlane commented Feb 5, 2024

OK. Then it looks like it's just a documentation issue. The doc currently reads:

Note that if the files are all part of the same project, then the root schematic will be shown by default

I read this to mean, if I have multiple files from the same project, the schematic will be the default.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
None yet
Development

No branches or pull requests

2 participants