Skip to content
On this page

Interface: UICanvasProps

WebSG.UICanvasProps

Interface for UICanvas properties.

Table of contents

Properties

Properties

height

Optional height: number

The canvas height in pixels.

Defined in

websg.d.ts:1205


root

Optional root: UIElement

The root UI element of the canvas.

Defined in

websg.d.ts:1195


size

Optional size: ArrayLike<number>

The canvas size as an array-like object in meters.

Defined in

websg.d.ts:1210


width

Optional width: number

The canvas width in pixels.

Defined in

websg.d.ts:1200