SnapOuterPortsToNodeBorderStage moves edge ports that are outside the corresponding area of the nodes to their border.
Remarks
Thus, it guarantees that ports are always in the interior of the nodes or on their borders.
Type Details
- yfiles module
- router-other
- yfiles-umd modules
- layout-familytree, layout-multipage, layout-orthogonal-compact, layout, router-bus, router-other
- Legacy UMD name
- yfiles.router.SnapOuterPortsToNodeBorderStage
Constructors
Creates a new instance of SnapOuterPortsToNodeBorderStage.
Properties
Gets or sets the core layout algorithm that is wrapped by this stage.
Methods
Snaps all edge ports that lie outside the bounds of the nodes to their border.
Parameters
options - Object
A map of options to pass to the method.
A map of options to pass to the method.
- graph - LayoutGraph
- the input graph
See Also
Migrating from Synchronous to Asynchronous Layout Calculation,
Using Buffered Layout,
Writing a Custom Layout Stage
Implements
Invokes the layout process of the core layout algorithm.
Remarks
Overriding classes may call this method during applyLayout to delegate arranging the graph to the core layout algorithm. They can add pre- and post-processing code before and after this call.
Parameters
options - Object
A map of options to pass to the method.
A map of options to pass to the method.
- graph - LayoutGraph
- the input graph