A specialized OrthogonalSnapLine that stores a node as additional information that can be used for the visualization.
Inheritance Hierarchy
SnapLine
OrthogonalSnapLine
NodeBasedSnapLine
Type Details
- yfiles module
- view-component
- yfiles-umd modules
- All view modules
- Legacy UMD name
- yfiles.input.NodeBasedSnapLine
Constructors
NodeBasedSnapLine
(node: INode, orientation: SnapLineOrientation, snapType: SnapLineSnapTypes, visualizationType: SnapLineVisualizationType, coordinates: Point, tag: Object, weight: number)Initializes a new instance of the NodeBasedSnapLine class.
Parameters
options - Object
A map of options to pass to the method.
A map of options to pass to the method.
- node - INode
- The node to assign to node.
- orientation - SnapLineOrientation
- The orientation of the snap line. This is one of HORIZONTAL or VERTICAL.
- snapType - SnapLineSnapTypes
- visualizationType - SnapLineVisualizationType
- The type of the visual representation of this snap line.
- coordinates - Point
- The coordinates of the center point of the snap line.
- tag - Object
- A tag that is associated with this snap line - see tag for a typical use of this value.
- weight - number
- The weight (importance) of this snap line. If more than one snap line is snapped to, the one with the greater weight will be used.
NodeBasedSnapLine
(node: INode, orientation: SnapLineOrientation, snapType: SnapLineSnapTypes, visualizationType: SnapLineVisualizationType, coordinates: Point, from: number, to: number, tag: Object, weight: number)Initializes a new instance of the NodeBasedSnapLine class.
Parameters
options - Object
A map of options to pass to the method.
A map of options to pass to the method.
- node - INode
- The node to assign to node.
- orientation - SnapLineOrientation
- The orientation of the snap line. This is one of HORIZONTAL or VERTICAL.
- snapType - SnapLineSnapTypes
- visualizationType - SnapLineVisualizationType
- The type of the visual representation of this snap line.
- coordinates - Point
- The coordinates of the center point of the snap line.
- from - number
- The smaller value of the coordinate that delimits this snap line.
- to - number
- The greater value of the coordinate that delimits this snap line.
- tag - Object
- A tag that is associated with this snap line - see tag for a typical use of this value.
- weight - number
- The weight (importance) of this snap line. If more than one snap line is snapped to, the one with the greater weight will be used.
Properties
Gets the node that is associated with this snap line.
Remarks
Usually this is the instance that induced this snap line.
Gets the orientation of the snap line.
Gets the tag that is associated with this snap line.
Gets the visualization type which determines the visual appearance of the snap line.
Defined in
Gets the weight/importance of this snap line.