Skip to Content

NodeOrigin

Node 的原点决定了它相对于自身坐标的放置方式。[0, 0] 将其放在左上角,[0.5, 0.5] 放在正中央,[1, 1] 放在其位置的右下角。

¥The origin of a Node determines how it is placed relative to its own coordinates. [0, 0] places it at the top left corner, [0.5, 0.5] right in the center and [1, 1] at the bottom right of its position.

export type NodeOrigin = [number, number];