MotionScript

@motion-script/core


@motion-script/core / MediaPlacementOptions

Interface: MediaPlacementOptions

Defined in: attributes/shape/fill/chain.ts:15

Placement options shared by the image and video fill builders.

Extended by

Properties

anchor?

optional anchor?: Anchor

Defined in: attributes/shape/fill/chain.ts:23

The point held fixed as zoom scales; also the alignment when it doesn't cover.


crop?

optional crop?: Insets

Defined in: attributes/shape/fill/chain.ts:19

Window onto the source, in fractions of its own size, applied before fit.


fit?

optional fit?: ImageFit

Defined in: attributes/shape/fill/chain.ts:17

How the (cropped) source is scaled into the node's bounds. Default 'fill'.


matrix?

optional matrix?: ImageMatrix

Defined in: attributes/shape/fill/chain.ts:25

Raw source→shape matrix; bypasses crop/fit/zoom/anchor and the bounds.


zoom?

optional zoom?: number

Defined in: attributes/shape/fill/chain.ts:21

Magnification on top of the fitted scale. 1 is the fitted size.