Interface DOMRootProperties

Optional DOMRoot constructor properties.

interface DOMRootProperties {
    canvasStartingHeight?: number;
    canvasStartingWidth?: number;
    constraints?: LayoutConstraints;
    domSizeController?: DOMSizeController;
    enablePasteEvents?: boolean;
    maxCanvasHeight?: number;
    maxCanvasWidth?: number;
    pointerStyleHandler?: null | PointerStyleHandler;
    preventAtlasBleeding?: boolean;
    preventBleeding?: boolean;
    resolution?: number;
    tabFocusable?: boolean;
    theme?: Theme;
}

Hierarchy (view full)

Properties

canvasStartingHeight?: number

The starting height of the Root#viewport's canvas.

canvasStartingWidth?: number

The starting width of the Root#viewport's canvas.

constraints?: LayoutConstraints

The starting layout constraints of the Root.

domSizeController?: DOMSizeController
enablePasteEvents?: boolean

Should contentEditable be set to true? Needed for paste events, but creates issues on mobile; virtual keyboard is opened whenever the canvas is clicked. Disabled by default

maxCanvasHeight?: number
maxCanvasWidth?: number
pointerStyleHandler?: null | PointerStyleHandler
preventAtlasBleeding?: boolean

Sets CanvasViewport#preventAtlasBleeding in the internal viewport (Root#viewport).

preventBleeding?: boolean
resolution?: number
tabFocusable?: boolean
theme?: Theme