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

Add support for reference boxes #21

Closed davidje13 closed 6 years ago

davidje13 commented 6 years ago

Add support for reference boxes. These use the same appearance as if/repeat boxes, but contain a textual label rather than actions. Arrows can enter/leave while the box is open.

begin reference over A, B: "Reference diagram 2" as refBox
C -> refBox: Message in
refBox -> C: Message out
C -> A: Also points to the refbox (not to A directly)
end refBox
davidje13 commented 6 years ago

This is now functional but interacts badly with if/repeat blocks (render order is incorrect and blocks do not span the entire reference block). Also the outline around the "ref" indicator is behind the container. Other interactions (notes, connectors, other reference boxes) work fine.