DiagramPortShapeDefinition class final

Normalized port-marker geometry shared by all renderers.

X runs along the port's side and Y along its outward normal, both in 0..1 of the port's width and height. anchorDepth is the Y at which the marker sits on the shape outline: 0.5 centres it, 0 seats a flat inner edge on the outline.

Constructors

DiagramPortShapeDefinition({required PortShape shape, required String label, required Iterable<DiagramPoint> contour, double anchorDepth = .5})
DiagramPortShapeDefinition.ellipse({required PortShape shape, required String label, int segments = 32})
An ellipse inscribed in the unit frame.
factory

Properties

anchorDepth → double
final
contour → List<DiagramPoint>
final
hashCode → int
The hash code for this object.
no setterinherited
label → String
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
shape → PortShape
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited