A canonical implementation of the IEdgeDefaults interface
Type Details
- yfiles module
- view-component
- yfiles-umd modules
- All view modules
- Legacy UMD name
- yfiles.graph.EdgeDefaults
Constructors
Initializes a new instance of the EdgeDefaults class with default edge style and label and port defaults.
Parameters
options - Object
A map of options to pass to the method.
A map of options to pass to the method.
- labels - ILabelDefaults
- ports - IPortDefaults
- style - IEdgeStyle
- shareStyleInstance - boolean
Properties
Gets or sets the defaults for labels at edges.
Gets or sets the defaults for ports at edges.
Remarks
Note that these are not the defaults for the sourcePorts or targetPorts. Instead, these are the defaults for the ports in the edge's ports collection to which other edges can connect.
See Also
Implements
Gets or sets the style to use for edges.
Remarks
Depending on the setting of shareStyleInstance, the getStyleInstance method should return a clone of this instance or the very same instance.
See Also
Implements
Methods
Factory method that returns a style instance for use with newly created edges.
Remarks
Most implementations will yield either, a clone of or the style property, if shareStyleInstance is enabled, but they might use more complicated logic, too.
Returns
- ↪IEdgeStyle
- The style to use, which for most implementations is either a clone of or the style property, if shareStyleInstance is enabled.