VertexShape class abstract

Used to customize the vertex UI.

用于自定义节点的UI。

Implementers

Constructors

VertexShape()

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
textRenderer VertexTextRenderer?
getter/setter pair

Methods

height(Vertex vertex) double
compute the height of the shape from data, used for overlap and mouse event judgment.
hitBox(Vertex vertex, ShapeComponent cpn) → ShapeHitbox
create a hit box, used for overlap judgment.
isWeaken(Vertex vertex) 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(Vertex vertex, Canvas canvas, Paint paint, List<Paint> paintLayers) → dynamic
render the vertex shape to canvas by data.
setPaint(Vertex vertex) → void
update the paint from data.
size(Vertex vertex) 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
updateHitBox(Vertex vertex, ShapeHitbox hitBox) → void
update the attributes of hit box. Such as x, y, radius, etc.
width(Vertex vertex) 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