API reference

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

I

interfacePlatformSurfaceMetrics

@codexo/exojs / core / stable

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.

6
props
0
methods
0
events
Import
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.

Properties6
backingHeight: number
backingWidth: number
height: number
left: number
top: number
width: number
Source