Closed dktcl closed 3 years ago
You can try modifying the src SVG (in the source tab) after you paste it in. Try adding an ID to the element you want to animate e.g...
<div style="display: inline-block; font-size: 12px; font-family: Helvetica; color: #333333; line-height: 1.2; pointer-events: none; white-space: normal; word-wrap: normal; ">Grid Supply<br />
<font id="textbox1" style="font-size: 10px">(To Test Rig DB)</font>
</div>
then use the selector #textbox1
in your animations / bindings.
Alternatively, change to using an alternative SVG editor that permits entering ID.
Thanks @Steve-Mcl - that makes sense.
For now, I can use your approach, or save DrawIO as png, then overlay text in embedded drawSVG editor.
In the long term, however, it looks like I need to find another SVG editor that will support a range of engineering shapes. Any recommendations welcome and gratefully received!
No bother.
As for which editor, you'll have to try them out, but I'm pretty sure the very capable (and free) inkscape permits entering id.
Hi - great work on this project - thanks to all involved! I can add text to existing diagrams (via the embedded editor) and update values to create dynamic plant diagrams.
Apologies in advance for mangling CSS terminology. I'm a lowly controls engineer - web technologies are a dark art!
One stumbling block I'm having is when trying to edit elements within SVG groups, for example:
I use DrawIO (the desktop version of diagrams.net) to create plant diagrams. Unfortunately, even a simple text box is embedded within hierarchy of groups.
How do I access the the text (or other properties) within a hierarchy of groups?
Note: DrawIO annoyingly does not let you customise element id's... hence the long strings.
Thanks in advance for your help!
Dave