A port style decorator that uses a node style instance to render the port.
Implements
- I
- I
Members
No filters for this type
Constructors
Creates a port style that uses the provided node style to render the port.
Creates a port style that uses the provided node style to render the port.
Note that the styles will be stored by reference, thus modifying the style will directly affect the rendering of this instance.
Parameters
- nodeStyle?: INodeStyle
- The style to use for rendering the port.
Properties
Gets the INodeStyle that is used for rendering the port.
Gets the INodeStyle that is used for rendering the port.
final
Gets or sets an offset for the port visualization.
Gets or sets an offset for the port visualization.
This will cause the visualization to be shifted by the given amount. This can be used to have a port visualization that is not centered on the port's location, e.g., to get a port visualization that extends outside of the node, while the port lies on the node outline.
The default value is (0,0).
conversionfinal
See Also
Developer's Guide
Gets the renderer implementation that can be queried for implementations that provide details about the visual appearance and visual behavior for a given port and this style instance.
Gets the renderer implementation that can be queried for implementations that provide details about the visual appearance and visual behavior for a given port and this style instance.
The idiom for retrieving, e.g. an IVisualCreator implementation for a given style is:
const creator = style.renderer.getVisualCreator(port, style)
const visual = creator.createVisual(context)readonlyfinal
Implements
IPortStyle.rendererGets or sets the size of the port's visualization.
Gets or sets the size of the port's visualization.
Unlike nodes, ports have no intrinsic size, so a suitable size for the visualization has to be given here.
The default value is (5,5).
conversionfinal
See Also
Developer's Guide
Methods
Create a clone of this object.
Create a clone of this object.