MotionScript

@motion-script/core


@motion-script/core / MagnifyEffect

Interface: MagnifyEffect

Defined in: attributes/shape/effects/implementations/magnify.ts:5

Mixin: every effect declares the layer it targets via EffectMode. Omitted is treated as "foreground". A single uniform field across all effects means the backdrop/foreground classifier never has to branch on type.

Extends

Properties

center

center: Vector2

Defined in: attributes/shape/effects/implementations/magnify.ts:8

Magnify centre in 0–1 normalised layer coordinates ({ x: 0.5, y: 0.5 } = middle).


mode?

optional mode?: EffectMode

Defined in: attributes/shape/effects/effect-data.ts:83

Inherited from

ModedEffect.mode


scale

scale: number

Defined in: attributes/shape/effects/implementations/magnify.ts:13

Magnification factor for the backdrop beneath the node. 1 = no magnification, 2 = 2× magnified, 0.5 = zoomed out to half size.


type

type: "magnify"

Defined in: attributes/shape/effects/implementations/magnify.ts:6