question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

What's the different between ManhattanRectangularAnchor, ManhattanEllipticAnchor, ManhattanDiamondAnchor

See original GitHub issue

I 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:open
  • Created a year ago
  • Comments:11 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
rsoikacommented, Mar 30, 2022

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.

0reactions
tortmayrcommented, Apr 11, 2022

@rsoika There seems to be an issue with the version numbers of sprotty’s next versions. 0.11.0-next.e898c14.30 is reflecting the current master and should actually be labeled 0.12.0-next.e898c14.30 . So you are already consuming a version that is newer than the 0.11.1 release.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Value of a cell is changed to a floating point number if it contains ...
What's the different between ManhattanRectangularAnchor, ManhattanEllipticAnchor, ManhattanDiamondAnchor, 11, 2022-03-27, 2022-08-17.
Read more >
Introduce color text input validator. - Six7/Figma-Tokens - IssueHint
What's the different between ManhattanRectangularAnchor, ManhattanEllipticAnchor, ManhattanDiamondAnchor, 11, 2022-03-27, 2022-09-07.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found