C

ShapeNodeStyle

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

Remarks

For node visualizations in the shapes of arrows, parallelograms (sheared rectangles) and trapezoids, see the ArrowNodeStyle.

See Also

Developer's Guide

Members

No filters for this type

Constructors

Parameters

Properties

Gets or sets a CSS class that will be applied to the visualization.

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.

final

See Also

Developer's Guide
Gets or sets the fill for this style.
The default value is WHITE.
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

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 node and this style instance.
The idiom for retrieving, e.g. an IVisualCreator implementation for a given style is:
const creator = style.renderer.getVisualCreator(node, style)
const visual = creator.createVisual(context)
readonlyfinal
Gets or sets the shape for this style.
The default value is RECTANGLE.
conversionfinal

See Also

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

Methods

Create a clone of this object.
final

Return Value

Object
A clone of this object.