Open StefRave opened 9 years ago
This pull request is based on pull request #128
About the only way that could be any cooler, would be if when you clicked on a word, it jumped you to that word in the line too... Awesome stuff though!
Hi, I reimplemented this feature again on version 2.
This feature adds the original line numbers in the sourcefile to the SVG like:
<g data-lineno="3" class="signal ">
This makes it possible to implement interaction between sequence diagram and editor.
As an example: https://stefrave.github.io/js-sequence-diagrams/ When a node in the sequence diagram is clicked the cursor moves to the correct line in the editor. The current line being edited is highlighted in the sequence diagram.
@StefRave We are not worthy! 🤣 Amazing stuff!
Awesome addition. I've added a few suggestions to the changes.
Added to example test.html (only works in chrome :-():
A working example for all browsers can be viewed at: https://stefrave.github.io/js-sequence-diagrams/