MotionScript

@motion-script/core


@motion-script/core / FillSpace

Type Alias: FillSpace

FillSpace = "local" | "parent" | "global"

Defined in: attributes/shape/fill/union.ts:24

Reference frame a fill (and the stroke/shadow that wrap one) resolves against. The drawn shapes are always treated as one unit (their union); the space only changes which rect the gradient/image is mapped onto:

  • local — the shape's own (union) bounds. The fill is pinned to the figure, so moving the node around does not change its appearance. This is the default.
  • parent — the parent node's layout rect; moving the node within its parent slides it across the fill, so the appearance changes.
  • global — the render viewport; the fill is anchored to the frame, so moving the node anywhere on screen changes which slice it shows.