TriangleMarkerShape class

Triangle marker shape with orientation.

The triangle orientation depends on both the orientation parameter and the isPointingOutward parameter:

  • When isPointingOutward is false: flat side faces outward (at node edge), tip points inward
  • When isPointingOutward is true: tip points outward, flat side faces inward

The triangle is edge-aligned based on orientation:

  • Left ports: triangle's left edge at widget's left edge (node boundary)
  • Right ports: triangle's right edge at widget's right edge (node boundary)
  • Top ports: triangle's top edge at widget's top edge (node boundary)
  • Bottom ports: triangle's bottom edge at widget's bottom edge (node boundary)
Inheritance

Constructors

TriangleMarkerShape()
const

Properties

hashCode int
The hash code for this object.
no setteroverride
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
typeName String
Returns the type name of this shape for JSON serialization
no setteroverride

Methods

getEffectiveSize(Size baseSize, ShapeDirection orientation) Size
Returns the effective rendered size of this shape for a given base size and orientation.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
paint(Canvas canvas, Offset center, Size size, Paint fillPaint, Paint? borderPaint, {ShapeDirection? orientation, bool isPointingOutward = false}) → void
Paints the marker shape on the given canvas.
override
toJson() Map<String, dynamic>
Converts this shape to a JSON-serializable map
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
override