API reference
Every public class, method, and event in @codexo/exojs. Generated from source.
interfacePlatformSurfaceMetrics
Geometry of the drawing surface, in one snapshot. `left`/`top`/`width`/ `height` describe where the surface is displayed and how large it appears; `backingWidth`/`backingHeight` are the resolution it is actually rendered at. The two differ whenever the surface is scaled for display (a CSS-scaled canvas, a device-pixel-ratio above 1, a canvas held at a fixed resolution inside a larger host), which is exactly what pointer coordinates have to be mapped through.
import { PlatformSurfaceMetrics } from '@codexo/exojs'Geometry of the drawing surface, in one snapshot. `left`/`top`/`width`/ `height` describe where the surface is displayed and how large it appears; `backingWidth`/`backingHeight` are the resolution it is actually rendered at.
The two differ whenever the surface is scaled for display (a CSS-scaled canvas, a device-pixel-ratio above 1, a canvas held at a fixed resolution inside a larger host), which is exactly what pointer coordinates have to be mapped through.
backingHeight: numberbackingWidth: numberheight: numberleft: numbertop: numberwidth: number