TriangleMarkerShape class
Triangle marker shape with orientation.
The triangle orientation depends on both the orientation parameter
and the isPointingOutward parameter:
- When
isPointingOutwardis false: flat side faces outward (at node edge), tip points inward - When
isPointingOutwardis 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
-
- Object
- MarkerShape
- TriangleMarkerShape
Constructors
- TriangleMarkerShape()
-
const
Properties
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