JacobeanRnD / SCHVIZ

SCXML Visualization
Apache License 2.0
6 stars 1 forks source link

Add support for text-on-path for edge labels #40

Closed jbeard4 closed 9 years ago

jbeard4 commented 9 years ago

We will try different techniques for edge label placement. One simple technique is using SVG to put text on the transition path.

mgax commented 9 years ago

Labels can be displayed as text-on-path, centered on the path midpoint. They are sometimes upside down, and sometimes trimmed if the path is short. They are still draggable, but the thing being dragged is an imaginary square that defines the path's anchor point, and has little relation with the actual label placement.

text-on-path