Skip to content

screenToWorld

screenToWorld(point, transform): Point2D

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

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

Inverse of worldToScreen.

Parameters

point

Point2D

transform

ViewportTransform

Returns

Point2D