Skip to content

worldToScreen

worldToScreen(point, transform): Point2D

Defined in: src/components/primitives/viewport/viewportCoords.ts:9

Convert a world-space point to a screen-space (CSS-pixel) point.

Uses the canonical transform: screenPos = worldPos * zoom + (x, y).

Parameters

point

Point2D

transform

ViewportTransform

Returns

Point2D