Is it possible to change the edge preview routing style? #1570
Unanswered
jmenzies12
asked this question in
General
Replies: 1 comment 2 replies
-
Hi @jmenzies12, Both "real" edges and the feedback/preview edges use the default routing mechanism. For instance, the code to consistenly use manhattan routing for elements of type "edge" , would look like this: export class MyEdge extends GEdge {
override routerKind = 'manhattan';
}
export const myDiagramModule = new ContainerModule(
(bind, unbind, isBound, rebind) => {
const context = { bind, unbind, isBound, rebind };
...
configureModelElement(context, 'edge', MyEdge, GEdgeView);
}); Defining the "routerKind" directly in the model element class, ensures that it is set correctly |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hey there,
Currently we are using the ManhattanEdgeRouter, however when the user goes to create a new edge, the edge preview uses polyline (or it maybe it is not using routing at all and is just showing a straight-line). This can be a little confusing for users when the edge routing then changes as soon as they click to confirm the edge creation.
Is there a way to change this? Or if it's not actually using routing for this, could you point me to where this happens so I can have a look?
Cheers
Jonathan
Beta Was this translation helpful? Give feedback.
All reactions