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

Method setAbsoluteScale

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

Source from the content-addressed store, hash-verified

339 }
340
341 protected setAbsoluteScale(value: SignalValue<PossibleVector2>) {
342 this.scale(
343 modify(value, unwrapped => this.getRelativeScale(new Vector2(unwrapped))),
344 );
345 }
346
347 private getRelativeScale(scale: Vector2): Vector2 {
348 const parentScale = this.parent()?.absoluteScale() ?? Vector2.one;

Callers

nothing calls this directly

Calls 3

getRelativeScaleMethod · 0.95
modifyFunction · 0.90
scaleMethod · 0.45

Tested by

no test coverage detected