FullScreen
View sourceRequests the target canvas enter fullscreen; no payload is required (0).
Enum
Defines the numeric request kinds consumed by WindowCommand.
Pass one of these values as WindowCommand#type. Each variant
selects a canvas operation and determines the payload shape stored in
WindowCommand#data:
WindowRequest.FullScreen and WindowRequest.PointerLock
use undefined data.WindowRequest.PointerCapture and
WindowRequest.PointerRelease use an object with an id field
for the pointer passed to the canvas API.WindowRequest.Resize uses an object with x and y fields for
width and height.WindowRequest.Reposition uses an object with x and y fields
assigned to the canvas’s right and left styles.WindowCommands#requestPointerCapture and
WindowCommands#requestPointerRelease queue the required {id}
payloads for pointer capture operations.
new WindowCommand(entity, WindowRequest.Resize, { x: 1280, y: 720 })
new WindowCommand(entity, WindowRequest.PointerCapture, { id: pointerId })Requests the target canvas enter fullscreen; no payload is required (0).
Requests pointer lock on the target canvas; no payload is required (1).
Captures the pointer identified by data.id on the target canvas (2).
Releases the pointer identified by data.id from the target canvas (3).
Resizes the target canvas from data.x width and data.y height (4).
Repositions the target canvas from data.x right and data.y left styles (5).