davidje13 / SequenceDiagram

Javascript tool for generating sequence diagrams from code
https://sequence.davidje13.com/
GNU Lesser General Public License v3.0
123 stars 39 forks source link

Allow dropping SVGs into editor #45

Closed davidje13 closed 6 years ago

davidje13 commented 6 years ago

Now that SVGs contain the code used to generate them (ef2b14117114a2ad93433bcd163aa9b989001fc3), it would be good for the editor to support loading previously saved images.

Dragging a file into the page should load it into the code window. SequenceDiagram.extractCodeFromSVG can be used to get the code from an SVG document.