How to create child element for edges #748
Replies: 1 comment
-
@sathya-1994 Could you please elaborate on the problem a bit more. When you say 'it was not visible in the UI', was the newly created circle element was rendered as element in the SVG? What type did you use for your child? By default a node is using a 'node' type and should be rendered as a (rounded corner) node so you should at least see a 'path' element in the SVG. We perform a similar operation on the client side when the user clicks on an edge that can be re-connected. In this case we add a reconnect handle at the start and beginning of the edge so the user can drag to reconnect the edge. You can find the code response in the reconnect model and the command that adds the handles to the edge. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I am using vscode version of GLSP,
I want to create circle icon similar to routing points of the edges(create a new circle icon with edge as parent).
From GGraph model, I am creating the graph object at server side. I tried to add org.eclipse.glsp.graph.impl.GNodeImpl elemnt as child of org.eclipse.glsp.graph.impl.GEdgeImpl, but child element(GNodeImpl) was not visible in the UI.
Screesnhot:

How we can implement my requirement?
Beta Was this translation helpful? Give feedback.
All reactions