@motion-script/core / Insets
Type Alias: Insets
Insets =
InsetsProps|InsetsResolved
Defined in: attributes/layout/insets.ts:41
Accepted shapes for a four-sided inset prop.
The type is named for the shape (four edge insets), not for one use of it:
Node.padding insets a layout box in pixels, an image fill's crop insets a
source in fractions. Same value, same shorthands, same tween — different roles,
and each prop names its own.
Mirrors Fill: the loose author-facing InsetsProps (a number or
per-side/symmetric object) plus the strict InsetsResolved — a read-back
resolved value structurally satisfies InsetsProps, so it passes through
resolveInsets idempotently and can be assigned straight back.
node.padding = 3 // uniform node.padding = { horizontal: 8, top: 4 } // mixed node.padding = otherNode.padding // resolved passes through