See Also
Developer's Guide
API
- NodeStylePortStyleAdapter
Members
Constructors
Properties
The default value is an empty string, in which case no class is set for the visualization.
Multiple classes can be set by separating them with spaces, just like with the SVG class attribute.
The intrinsic aspect ratio is determined by the renderer.
The default value is false. If enabled, the default implementation uses the intrinsic aspect ratio of the given shape.
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).
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.
const creator = style.renderer.getVisualCreator(port, style)
const visual = creator.createVisual(context)Implements
IPortStyle.rendererGets 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).
See Also
Developer's Guide