C

ShapePortStyle

Port style implementation that can show predefined shapes of type ShapeNodeShape.
ImplementsInheritance Hierarchy

Members

No filters for this type

Constructors

Initializes a new instance of this class.

Parameters

Properties

Gets or sets the Fill for this style.
The default value is BLACK.
conversionfinal

See Also

Developer's Guide
Gets or sets a value indicating whether to keep the intrinsic aspect ratio of the shape.

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.

final
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.
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
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
Gets or sets the shape for this style.
The default value is ELLIPSE.
conversionfinal

See Also

Developer's Guide
Gets or sets the Stroke for this style.
The default value is BLACK.
conversionfinal

See Also

Developer's Guide

Methods

Create a clone of this object.
final

Return Value

Object
A clone of this object.