EdgeShape class abstract

Used to customize the edge UI.

用于自定义边的UI

Implementers

Constructors

EdgeShape({List<EdgeDecorator>? decorators})

Properties

decorators ↔ List<EdgeDecorator>?
getter/setter pair
hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
textRenderer ↔ EdgeTextRenderer?
getter/setter pair

Methods

angle(Edge edge) → double
Compute the shape angle by two vertex.
edgeCenter(Edge edge) → Matrix4
endPosition(Edge edge) → Vector2
getPaint(Edge edge) → Paint
update the paint from data.
height(Edge edge) → double
compute the height of the shape from data, used for overlap and mouse event judgment.
hoverByPath(Vector2 local, Path path, Matrix4 transformMatrix) → bool
hoverTest(Vector2 position, Edge edge, Matrix4 transformMatrix, double hoverStrokeWidth) → bool?
isWeaken(Edge edge) → bool
When some elements are activated and do not contain the current element.
len(Edge edge) → double
Compute the line length by two vertex.
loopPath(Edge edge, [double minusRadius = 0]) → Path
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
render(Edge edge, Canvas canvas, Paint paint, List<Paint> paintLayers) → void
render the edge shape to canvas by data.
size(Edge edge) → Vector2
compute the size of the shape from data, used for overlap and mouse event judgment.
startPosition(Edge edge) → Vector2
toString() → String
A string representation of this object.
inherited
transformMatrix(Edge edge, Paint p) → Matrix4
width(Edge edge) → double
compute the width of the shape from data, used for overlap and mouse event judgment.

Operators

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