@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?
optionalanchor?: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?
optionalcrop?:Insets
Defined in: attributes/shape/fill/chain.ts:19
Window onto the source, in fractions of its own size, applied before fit.
fit?
optionalfit?:ImageFit
Defined in: attributes/shape/fill/chain.ts:17
How the (cropped) source is scaled into the node's bounds. Default 'fill'.
matrix?
optionalmatrix?:ImageMatrix
Defined in: attributes/shape/fill/chain.ts:25
Raw source→shape matrix; bypasses crop/fit/zoom/anchor and the bounds.
zoom?
optionalzoom?:number
Defined in: attributes/shape/fill/chain.ts:21
Magnification on top of the fitted scale. 1 is the fitted size.