You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Nov 30, 2021. It is now read-only.
Hello,
I am using sprotty version 4.0 and am facing issues regarding SLabel placement above SNodes. Particularly, generated SLabels are direct children of the SNode and as such modify the dimensions of the SVG. This effects our ELK layout where SEdges no longer connect to the center of our SVG's rendered shape but rather the newly off-settled "center". Additionally this reshaping of our SVG posses an issue for us as long labels further distort the boundaries and correspondingly our edges.
Is there any way to place SLabels as children of SNodes without modifying the boundaries of our SVG? Or if that is not possible, would creating new SNodes solely for our SLabels suffice.
Any insight would be appreciated.
The text was updated successfully, but these errors were encountered:
Could you provide a JSON example of a node with label like you are creating?
Note that Sprotty has a notion of macro layout (provided by ELK) and micro layout (provided by Sprotty internally). ELK is able to compute positions for nested labels, see e.g. the Node Label Placement option. The micro layouts of Sprotty are controlled with the layout property of nodes and compartments. You should decide whether to use micro layout or macro layout for label placement. Using both at the same time will lead to problems (see also eclipse-sprotty/sprotty#27).
Hello,
I am using sprotty version 4.0 and am facing issues regarding SLabel placement above SNodes. Particularly, generated SLabels are direct children of the SNode and as such modify the dimensions of the SVG. This effects our ELK layout where SEdges no longer connect to the center of our SVG's rendered shape but rather the newly off-settled "center". Additionally this reshaping of our SVG posses an issue for us as long labels further distort the boundaries and correspondingly our edges.
Is there any way to place SLabels as children of SNodes without modifying the boundaries of our SVG? Or if that is not possible, would creating new SNodes solely for our SLabels suffice.
Any insight would be appreciated.
The text was updated successfully, but these errors were encountered: