What's the different between ManhattanRectangularAnchor, ManhattanEllipticAnchor, ManhattanDiamondAnchor
See original GitHub issueI want to implement in my BPMN project an improved version of Manhattan routing. One issue is computing the anchor point for an edge depending on the element type.
As far as I understand the IAnchorComputer is responsible to compute this point in the diagram.
In the sprotty implementation there are three additional AnchorComputer for manhanttan routing: ManhattanRectangularAnchor, ManhattanEllipticAnchor, ManhattanDiamondAnchor
Can you briefly explain what they are good for?
Can you show a short example how to register a custom implementation of an IAnchorComputer? Because I currently do not understand which of the three Manhattan Anchors the ManhattanEdgeRouter.KIND (which I am using) is choosing.
Sorry for asking such stupid questions. Unfortunately the implementations are not commented 😦
Issue Analytics
- State:
- Created a year ago
- Comments:11 (4 by maintainers)

Top Related StackOverflow Question
I have written a short tutorial how to work with AnchorComputers and Ports:
https://github.com/imixs/open-bpmn/blob/master/doc/SPROTTY_ANCHORS_AND_PORTS.md
The Port part is based on GLSP, so maybe you can’t use it in that way?
But any way, if you like it you can take over the document into your WIKI. I will not continuing documenting this in that way as I need to document the specific adaption of the AnchorComputer concept in my own BPMN project.
@rsoika There seems to be an issue with the version numbers of sprotty’s next versions.
0.11.0-next.e898c14.30is reflecting the current master and should actually be labeled0.12.0-next.e898c14.30. So you are already consuming a version that is newer than the 0.11.1 release.