Bulk export/scriptable SVG export for circuit #27
johndoe31415
started this conversation in
Ideas
Replies: 1 comment 8 replies
-
Maybe there could be a script that the simulator folllows. wait 5 seconds |
Beta Was this translation helpful? Give feedback.
8 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi there,
hope this is the right place to open a discussion. Maybe someone has a good solution and/or idea as to how I could implement this. I'm using circuitjs for presentations in which I teach digital electronics. Right now my workflow is: build the circuit in circuitjs, export it (either via text or link), put it in my slide generator. Additionally, I export the SVG of the circuit to be able to easily embed the link into my presentation.
Sometimes I do make small changes to the presentation and forget to update the SVG. Sometimes I mis-place the circuit, so that it appears as one cirucit, but clicking on it opens an entirely different circuit.
The way I see it, the circuit definition is the authoritative definition file. I would like to have a way to bulk create SVGs from a circuit definition, e.g., an endpoint that I pass a link to ("ctz=foobar") and it just outputs the SVG. Possibly after simulating after a second or so to achieve a steady state.
Alternatively I've thought about parsing the circuit definition and writing my own renderer that outputs SVG, but I'd like to avoid that if possible (I want to have the same look & feel).
Do you have an idea where I could approach this to get it done?
Thanks,
Joe
Beta Was this translation helpful? Give feedback.
All reactions