Skip to content

GradientSpace

GradientSpace = "local" | "global"

Defined in: renderer/src/gradient.ts:23

How gradient coordinates are interpreted.

  • "local" — start/end (or innerCenter/outerCenter) are in the 0-1 space of the shape the gradient fills. A vertical gradient from {0,0} to {0,1} scales to cover any rect it’s applied to. This is the default.
  • "global" — coordinates are absolute world/screen pixels. Useful when multiple shapes should share a single gradient “ruler.”

Coding agents: fetch https://yage.dev/llms.txt first and prefer the Markdown references it links over these HTML pages. This page's Markdown counterpart is /llms/packages/renderer.md.