MCPcopy
hub / github.com/midrender/revideo / setAbsolutePosition

Method setAbsolutePosition

packages/2d/src/lib/components/Node.ts:203–209  ·  view source on GitHub ↗
(value: SignalValue<PossibleVector2>)

Source from the content-addressed store, hash-verified

201 }
202
203 protected setAbsolutePosition(value: SignalValue<PossibleVector2>) {
204 this.position(
205 modify(value, unwrapped =>
206 transformVectorAsPoint(new Vector2(unwrapped), this.worldToParent()),
207 ),
208 );
209 }
210
211 /**
212 * Represents the rotation (in degrees) of this node relative to its parent.

Callers

nothing calls this directly

Calls 4

worldToParentMethod · 0.95
modifyFunction · 0.90
transformVectorAsPointFunction · 0.90
positionMethod · 0.80

Tested by

no test coverage detected