WasmNodeSource class abstract
The nodes a script reaches on a stage whose shapes live in Dart: a path effect's shape, or the artboard a scripted object lives in, and the nodes reached from them. Ids are the source's own, 0 is none. A path effect's need only hold for the ScriptedHost.pathEffect call that lent the shape; ScriptedHost.setStageNodes lends a source for as long as the host.
Constructors
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
artboardMetrics(
int node, Float32List out) → void - Writes width, height, minX, minY, maxX, maxY of the node's artboard.
-
children(
int node) → List< int> - The children that are nodes, in order.
-
decompose(
int node, Float32List world) → void -
Sets the local transform that puts the node at
world. -
find(
int node, String name) → int - The node of that exported name in the node's artboard, 0 when none.
-
name(
int node) → String - The name a runtime would read, empty when it was not exported.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
parent(
int node) → int - 0 when the parent is not a node.
-
path(
int node) → RenderPath? - Null when the node is not a path.
-
resolveRef(
int ref) → int -
The node the NodeRef id
refnames right now, 0 for none: its target can be deleted or stop being one it accepts after the id was handed out. -
set(
int node, int field, double v0, double v1) → void -
setWorldTransform(
int node, Float32List values) → void -
toString(
) → String -
A string representation of this object.
inherited
-
transform(
int node, Float32List out) → void - Writes x, y, rotation, scaleX, scaleY.
-
worldTransform(
int node, Float32List out) → void
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Properties
- nodeRefs ← WasmNodeSource?
-
The stage's nodes that NodeRef inputs name, by ids carrying
nodeRefBit. A script reads them on any call into it, and writes them
only from advance.
no getter
Constants
- fieldPosition → const int
- fieldRotation → const int
- fieldScale → const int
- fieldScaleX → const int
- fieldScaleY → const int
- fieldX → const int
- The runtime's ArtboardWire node fields set receives.
- fieldY → const int
- nodeRefBit → const int
- Set on the ids of nodeRefs, which a ScriptedHost.setNodeRefInput pushes; the ids any other source hands out leave it clear.