API reference

Every public class, method, and event in @codexo/exojs. Generated from source.

E

enumPixelSnapMode

@codexo/exojs / rendering / stable

Render-only pixel-snapping policy for a Drawable. - `None` - no snapping; rendered transform and geometry use existing behaviour. - `Position` - snap the rendered origin to the nearest device pixel. Logical `x`/`y`, matrices, bounds and collision are unchanged. - `Geometry` - snap a single coherent shared-boundary plan (origin + boundaries) so neighbouring quads stay seam-free. Falls back to `Position` automatically when the transform is not axis-aligned (rotation / skew). Snapping targets device pixels (× view scale × pixel ratio), not integer world units, and never alters logical state. The numeric values are the shader encoding carried in the transform row and must not be reordered.

0
props
0
methods
0
events
Import
import { PixelSnapMode } from '@codexo/exojs'

Render-only pixel-snapping policy for a Drawable.

- `None` - no snapping; rendered transform and geometry use existing behaviour. - `Position` - snap the rendered origin to the nearest device pixel. Logical `x`/`y`, matrices, bounds and collision are unchanged. - `Geometry` - snap a single coherent shared-boundary plan (origin + boundaries) so neighbouring quads stay seam-free. Falls back to `Position` automatically when the transform is not axis-aligned (rotation / skew).

Snapping targets device pixels (× view scale × pixel ratio), not integer world units, and never alters logical state. The numeric values are the shader encoding carried in the transform row and must not be reordered.

Members3
Geometry
None
Position
Source