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

Methods

angle(Edge edge) double
Compute the shape angle by two vertex.
height(Edge edge) double
compute the height of the shape from data, used for overlap and mouse event judgment.
hitBox(Edge edge, EdgeComponent edgeComponent) → ShapeHitbox?
hoverTest(Vector2 point, Edge edge, EdgeComponent edgeComponent) bool?
isWeaken(Edge edge) bool
When some elements are activated and do not contain the current element.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
render(Edge edge, Canvas canvas, Paint paint, List<Paint> paintLayers) → dynamic
render the edge shape to canvas by data.
setPaint(Edge edge) → void
update the paint from data.
size(Edge edge) Vector2
compute the size of the shape from data, used for overlap and mouse event judgment.
toString() String
A string representation of this object.
inherited
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

Static Methods

len(Edge edge) double
Compute the line length by two vertex.