Skip to main content

Module view

Module view 

Source
Expand description

Camera and coordinate conversions.

World coordinates are model units (mm, Y up). The view maps them to device pixels (Y down) of a target whose CSS size times dpr is its pixel size. All conversions use f64; GPU buffers receive f32 offsets relative to local origins, so precision does not depend on the absolute world position.

Structs§

View
Camera state. Not part of the document; hosts may persist it as view state.

Constants§

MAX_SCALE
See MIN_SCALE.
MIN_SCALE
Largest supported zoom range (CSS px per model unit).

Functions§

lod_tolerance
Flatten tolerance (model units) for a LOD bucket: ¼ device pixel at the bucket’s smallest scale.