Skip to Content
ReferenceTypes

NodeOrigin

The NodeOrigin type is an [x, y] pair (each 0–1) that sets which point of a node its position refers to — [0, 0] is the top-left (the default), [0.5, 0.5] centers the node on its position, [1, 1] is the bottom-right.

Type

type NodeOrigin = [number, number];
Last updated on