An orthogonal snap line, in other words, one that is parallel to the x or y axis.
Inheritance Hierarchy
SnapLine
OrthogonalSnapLine
Type Details
- yfiles module
- view-component
- yfiles-umd modules
- All view modules
- Legacy UMD name
- yfiles.input.OrthogonalSnapLine
Constructors
OrthogonalSnapLine
(orientation: SnapLineOrientation, snapType: SnapLineSnapTypes, visualizationType: SnapLineVisualizationType, coordinates: Point, tag: Object, weight: number)Creates a new snap line using the provided attributes.
Parameters
options - Object
A map of options to pass to the method.
A map of options to pass to the method.
- 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.
OrthogonalSnapLine
(orientation: SnapLineOrientation, snapType: SnapLineSnapTypes, visualizationType: SnapLineVisualizationType, coordinates: Point, from: number, to: number, tag: Object, weight: number)Creates a new snap line using the provided attributes.
Parameters
options - Object
A map of options to pass to the method.
A map of options to pass to the method.
- 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 orientation of the snap line.
Remarks
This is one of HORIZONTAL or VERTICAL.
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.