Skip to content

Conversation

@StefRave
Copy link
Contributor

Added to example test.html (only works in chrome :-():

  • Visualy track elements
  • Click in element selects correct line in editor
  • SVG shows current editor line in SVG

A working example for all browsers can be viewed at: https://stefrave.github.io/js-sequence-diagrams/

@StefRave
Copy link
Contributor Author

This pull request is based on pull request #128

@deftdawg
Copy link

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!

@StefRave StefRave changed the base branch from svg to master December 28, 2016 09:57
@StefRave
Copy link
Contributor Author

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.

@deftdawg
Copy link

@StefRave We are not worthy! 🤣 Amazing stuff!

@bramp
Copy link
Owner

bramp commented Dec 28, 2016

Awesome addition. I've added a few suggestions to the changes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants