A canonical implementation of the INodeDefaults interface.
Type Details
- yfiles module
- view-component
- yfiles-umd modules
- All view modules
- Legacy UMD name
- yfiles.graph.NodeDefaults
See Also
Constructors
Initializes a new instance of the NodeDefaults class using default properties.
Parameters
options - Object
A map of options to pass to the method.
A map of options to pass to the method.
- size - Size
- labels - ILabelDefaults
- ports - IPortDefaults
- style - INodeStyle
- shareStyleInstance - boolean
Properties
Gets or sets the defaults for labels at nodes.
Gets or sets the defaults for ports at nodes.
Gets or sets the default node size.
Remarks
The values of this size will be used by createNodeAt.
Throws
- Exception({ name: 'ArgumentError' })
value
contains one or more NaN values.
Implements
Gets or sets the style to use for nodes.
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 nodes.
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
- ↪INodeStyle
- The style to use, which for most implementations is either a clone of or the style property, if shareStyleInstance is enabled.