Skip to content
Entangle UI v0.13.0

normalizeRect

normalizeRect(rect): WorldRect

Defined in: src/components/primitives/viewport/viewportMath.ts:100

Normalize a rectangle so that width and height are non-negative, adjusting the origin accordingly. Useful for marquee selection where the user may drag in any direction.

WorldRect

WorldRect