API reference
Every public class, method, and event in @codexo/exojs. Generated from source.
interfaceCanvasSizingContext
What a CanvasSizing is given to work with, and the one channel through which it changes the canvas. A context describes the application as it stood when the policy was attached. The application hands out a fresh one on every attach, so a change it cannot express - a new base resolution, a canvas moved to another parent - reaches a policy by re-attaching it rather than by mutating what it already holds.
import { CanvasSizingContext } from '@codexo/exojs'What a CanvasSizing is given to work with, and the one channel through which it changes the canvas.
A context describes the application as it stood when the policy was attached. The application hands out a fresh one on every attach, so a change it cannot express - a new base resolution, a canvas moved to another parent - reaches a policy by re-attaching it rather than by mutating what it already holds.
measureHost(): CanvasSizingHostMetricsThe size of the element a sizing policy tracks, in CSS pixels. | nullbaseHeight: numberbaseWidth: numberelement: HTMLCanvasElement | nullhost: HTMLElement | nullpixelRatio: number