Provides an edge representation as a cubic bezier path.
Remarks
The rendering is composed of a sequence of cubic bezier segments. The bends together with the source and target port locations of the edge serve as control points for this path:
- If there are only two control points (i.e. just source and target port and no bends), a straight line is rendered
- Otherwise: the number of control points is internally padded to be 1 (mod 3) by duplicating the target port location, if necessary
- Consecutive 4-tuples of control points describe a cubic segment of the path
- Each consecutive pair of 4-tuples share their last resp. first control point.
- Control points are not automatically aligned to form smooth connections between segments.
This style uses an BezierEdgeStyleRenderer for its visualization.
This style disables interactive bend creation and orthogonal editing and does not add bridges to its path.
Type Details
- yfiles module
- styles-other
- yfiles-umd modules
- All view modules
- Legacy UMD name
- yfiles.styles.BezierEdgeStyle
See Also
Constructors
Creates a new instance using BezierEdgeStyleRenderer as renderer.
Parameters
A map of options to pass to the method.
- stroke - Stroke
- cssClass - string
A CSS class that will be applied to the visualization. This option sets the cssClass property on the created object.
- targetArrow - IArrow
The visual arrow at the target end of edges that use this style. This option sets the targetArrow property on the created object.
- sourceArrow - IArrow
The visual arrow at the source end of edges that use this style. This option sets the sourceArrow property on the created object.
Creates a new instance using the provided renderer.
Parameters
A map of options to pass to the method.
- renderer - BezierEdgeStyleRenderer
- The custom renderer for this style instance.
- stroke - Stroke
- cssClass - string
A CSS class that will be applied to the visualization. This option sets the cssClass property on the created object.
- targetArrow - IArrow
The visual arrow at the target end of edges that use this style. This option sets the targetArrow property on the created object.
- sourceArrow - IArrow
The visual arrow at the source end of edges that use this style. This option sets the sourceArrow property on the created object.
Properties
Gets the renderer implementation that has been supplied to this instance in the constructor.
Implements
Gets or sets the visual arrow at the source end of edges that use this style.
Remarks
Arrow instances may be shared between multiple style instances.
Note that changes to the properties of an arrow may not be immediately visible. It is therefore recommended to assign a new arrow instance to this property if you want to change aspects of the source arrow visualization.
The default value is NONE.
See Also
Gets or sets the Stroke that is used to draw the path.
Gets or sets the visual arrow at the target end of edges that use this style.
Remarks
Arrow instances may be shared between multiple style instances.
Note that changes to the properties of an arrow may not be immediately visible. It is therefore recommended to assign a new arrow instance to this property if you want to change aspects of the target arrow visualization.
The default value is NONE.
See Also
Methods
Performs a memberwiseClone