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 disables interactive bend creation and orthogonal editing and does not add bridges to its path.
Type Details
- yFiles module
- view
Constructors
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.
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.
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.
Methods
Performs a memberwise clone.