Skip to content

Intermact API Reference / @intermact/core / normalizeScale

Function: normalizeScale()

normalizeScale(scale): Vec2

Defined in: packages/core/src/runtime/state.ts:119

Normalize a scalar-or-tuple scale into a Vec2.

Parameters

scale

number | Vec2 | undefined

Returns

Vec2

Intermact v1.0 — 文档覆盖 Phase-1 / Phase-2 / Phase-3(全阶段)