Repository navigation
API Interface UIViewEvent
Defined in: src/engine/ui/host/hostEvents.ts:28
A UI event on a hosted element (ADR 0423): what an onclick, oninput… handler gets. ADR 0426: the DOM's
propagation and cancellation members and pointer, wheel and keyboard fields (UIEventBase).
UIEventBase
readonly altKey: boolean;Defined in: src/engine/ui/events.ts:209
UIEventBase.altKey
readonly animationName: string;Defined in: src/engine/ui/host/hostEvents.ts:39
Animation events: the animation's name; "" otherwise.
readonly AT_TARGET: 2 = 2;Defined in: src/engine/ui/events.ts:175
UIEventBase.AT_TARGET
readonly bubbles: boolean;Defined in: src/engine/ui/events.ts:178
UIEventBase.bubbles
readonly BUBBLING_PHASE: 3 = 3;Defined in: src/engine/ui/events.ts:176
UIEventBase.BUBBLING_PHASE
readonly button: number;Defined in: src/engine/ui/events.ts:192
UIEventBase.button
readonly buttons: number;Defined in: src/engine/ui/events.ts:193
UIEventBase.buttons
readonly cancelable: boolean;Defined in: src/engine/ui/events.ts:179
UIEventBase.cancelable
readonly canvasX: number;Defined in: src/engine/ui/events.ts:186
UIEventBase.canvasX
readonly canvasY: number;Defined in: src/engine/ui/events.ts:187
UIEventBase.canvasY
readonly CAPTURING_PHASE: 1 = 1;Defined in: src/engine/ui/events.ts:174
UIEventBase.CAPTURING_PHASE
readonly clientX: number;Defined in: src/engine/ui/events.ts:188
UIEventBase.clientX
readonly clientY: number;Defined in: src/engine/ui/events.ts:189
UIEventBase.clientY
readonly code: string;Defined in: src/engine/ui/events.ts:203
UIEventBase.code
readonly composed: false = false;Defined in: src/engine/ui/events.ts:184
UIEventBase.composed
readonly ctrlKey: boolean;Defined in: src/engine/ui/events.ts:208
UIEventBase.ctrlKey
currentTarget: unknown;Defined in: src/engine/ui/host/hostEvents.ts:31
What the handler is listening on; a renderer sets it to its own node (as the DOM's currentTarget).
readonly dataTransfer: UIDataTransfer | null;Defined in: src/engine/ui/events.ts:211
UIEventBase.dataTransfer
readonly deltaMode: number;Defined in: src/engine/ui/events.ts:201
UIEventBase.deltaMode
readonly deltaX: number;Defined in: src/engine/ui/events.ts:198
UIEventBase.deltaX
readonly deltaY: number;Defined in: src/engine/ui/events.ts:199
UIEventBase.deltaY
readonly deltaZ: 0 = 0;Defined in: src/engine/ui/events.ts:200
UIEventBase.deltaZ
readonly detail: number;Defined in: src/engine/ui/events.ts:197
UIEventBase.detail
readonly elapsedTime: number;Defined in: src/engine/ui/host/hostEvents.ts:41
Transition and animation events: seconds it had run, its delay not counted; 0 otherwise.
readonly element: UIViewElement;Defined in: src/engine/ui/host/hostEvents.ts:46
The hosted element the event happened on.
eventPhase: number = 0;Defined in: src/engine/ui/events.ts:181
1 capturing (an ancestor, root first), 2 at the target, 3 bubbling (an ancestor, nearest first); 0 outside dispatch.
UIEventBase.eventPhase
readonly height: 1 = 1;Defined in: src/engine/ui/events.ts:213
UIEventBase.height
readonly isComposing: false = false;Defined in: src/engine/ui/events.ts:205
UIEventBase.isComposing
readonly isPrimary: boolean;Defined in: src/engine/ui/events.ts:196
UIEventBase.isPrimary
readonly isTrusted: true = true;Defined in: src/engine/ui/events.ts:183
UIEventBase.isTrusted
readonly key: string;Defined in: src/engine/ui/events.ts:202
UIEventBase.key
readonly location: 0 = 0;Defined in: src/engine/ui/events.ts:206
UIEventBase.location
readonly metaKey: boolean;Defined in: src/engine/ui/events.ts:210
UIEventBase.metaKey
readonly NONE: 0 = 0;Defined in: src/engine/ui/events.ts:173
UIEventBase.NONE
readonly offsetX: number;Defined in: src/engine/ui/events.ts:190
UIEventBase.offsetX
readonly offsetY: number;Defined in: src/engine/ui/events.ts:191
UIEventBase.offsetY
readonly pointerId: number;Defined in: src/engine/ui/events.ts:195
UIEventBase.pointerId
readonly pointerType: string;Defined in: src/engine/ui/events.ts:194
UIEventBase.pointerType
readonly pressure: number;Defined in: src/engine/ui/events.ts:214
UIEventBase.pressure
readonly propertyName: string;Defined in: src/engine/ui/host/hostEvents.ts:37
transitionend (ADR 0422 wave 4): the property whose transition finished (kebab-case); "" otherwise.
relatedTarget: unknown;Defined in: src/engine/ui/host/hostEvents.ts:35
The other element of pointer over/out/enter/leave, focus changes and drag enter/leave: a hosted element (a renderer sets its node), or null.
readonly repeat: boolean;Defined in: src/engine/ui/events.ts:204
UIEventBase.repeat
readonly shiftKey: boolean;Defined in: src/engine/ui/events.ts:207
UIEventBase.shiftKey
target: unknown;Defined in: src/engine/ui/host/hostEvents.ts:33
The element the event happened on; a renderer sets it to its own node (as the DOM's target).
readonly timeStamp: number;Defined in: src/engine/ui/events.ts:182
UIEventBase.timeStamp
readonly type: UIHostEventType;Defined in: src/engine/ui/host/hostEvents.ts:29
UIEventBase.type
readonly width: 1 = 1;Defined in: src/engine/ui/events.ts:212
UIEventBase.width
get cancelBubble(): boolean;Defined in: src/engine/ui/events.ts:313
The DOM's legacy name for stopPropagation.
boolean
set cancelBubble(v): void;Defined in: src/engine/ui/events.ts:316
boolean
void
UIEventBase.cancelBubble
get defaultPrevented(): boolean;Defined in: src/engine/ui/events.ts:285
boolean
UIEventBase.defaultPrevented
get movementX(): number;Defined in: src/engine/ui/events.ts:278
number
UIEventBase.movementX
get movementY(): number;Defined in: src/engine/ui/events.ts:281
number
UIEventBase.movementY
get pageX(): number;Defined in: src/engine/ui/events.ts:266
number
UIEventBase.pageX
get pageY(): number;Defined in: src/engine/ui/events.ts:269
number
UIEventBase.pageY
get returnValue(): boolean;Defined in: src/engine/ui/events.ts:290
The DOM's legacy name: false once preventDefault was called.
boolean
UIEventBase.returnValue
get screenX(): number;Defined in: src/engine/ui/events.ts:272
number
UIEventBase.screenX
get screenY(): number;Defined in: src/engine/ui/events.ts:275
number
UIEventBase.screenY
get value(): string | null;Defined in: src/engine/ui/host/hostEvents.ts:64
An input field's text (null for other elements).
string | null
get x(): number;Defined in: src/engine/ui/events.ts:260
The DOM's names for the position: the target canvas's UI pixels.
number
UIEventBase.x
get y(): number;Defined in: src/engine/ui/events.ts:263
number
UIEventBase.y
getModifierState(key): boolean;Defined in: src/engine/ui/events.ts:331
The modifier's state (Shift, Control, Alt, Meta), as KeyboardEvent.getModifierState.
string
boolean
UIEventBase.getModifierState
preventDefault(): void;Defined in: src/engine/ui/events.ts:295
Cancels the engine's default action (focus on press, scrolling, a drag, submit on Enter: ADR 0426), when the event is cancelable.
void
UIEventBase.preventDefault
stopImmediatePropagation(): void;Defined in: src/engine/ui/events.ts:307
No further listener hears the event, on this element or another.
void
UIEventBase.stopImmediatePropagation
stopPropagation(): void;Defined in: src/engine/ui/events.ts:302
No further element hears the event (the rest of the current element's listeners still do).
void
UIEventBase.stopPropagation
This wiki is generated from docs/wiki/ and the myco module's source on every push to master. Change pages there in a pull request: edits made here are not kept.
Basics
Gameplay
Rendering
Audio
- Playing sound
- Why is there no sound?
- Playlists
- Interactive music
- Sound generators
- Spatial audio
- Audio mixer
- Live mixing
- Loudness
- Audio profiler
- Audio takes
Reference