How to adjust bezier edge #809
-
Hello, I’m trying to implement a curved bezier line for edges but I seem to be missing something. I’m using the BezierCurveEdgeView and I changed the ‘routerKind’ to ‘bezier’ on the server side. I’m using node backend with the VSCode client. My questions are:
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
Hi, Bezier curves have been introduced in Sprotty (see PR) and GLSP only "inherits" them from there. I'm afraid, I don't really have first-hand experience using them though. But there is an example in Sprotty which may help. |
Beta Was this translation helpful? Give feedback.
-
@rileydanejohnston in case you mean the anchor point where the edge starts from your model element, than GLSP and spotty provide already so called anchor computers for circles, rects and diamonds. If your model element is based on such a base shape no special implementation should be necessary For example in OpenBPMN we use Manhattan routing and we just configure our model elements based on the default NodeViews:
The router computes the anchor point automatically: If this is what you are asking for? In your picture it looks like your 'Test' label with a circle is just a test element? |
Beta Was this translation helpful? Give feedback.
Hi,
Bezier curves have been introduced in Sprotty (see PR) and GLSP only "inherits" them from there. I'm afraid, I don't really have first-hand experience using them though. But there is an example in Sprotty which may help.