Skip to content

@orillusion/core


Class: OAnimationEvent

Defined in: src/components/anim/OAnimationEvent.ts:13

Animator event payload.

Dispatched by clip states when a tagged keyframe is reached. The animator field references the AnimatorComponent that owns the clip, letting the listener cross-check state, query weights, etc.

Extends

Constructors

Constructor

new OAnimationEvent(name, time): OAnimationEvent

Defined in: src/components/anim/OAnimationEvent.ts:16

Parameters

name

string

time

number

Returns

OAnimationEvent

Overrides

CEvent.constructor

Properties

animator

animator: AnimatorComponent

Defined in: src/components/anim/OAnimationEvent.ts:14


target

target: Object3D

Defined in: src/event/CEvent.ts:13

Event target, it's usually event dispatcher

Inherited from

CEvent.target


currentTarget

currentTarget: CEventListener

Defined in: src/event/CEvent.ts:18

Current event target, it's current bubble object

Inherited from

CEvent.currentTarget


type

type: string

Defined in: src/event/CEvent.ts:23

event type, it's registered string of key

Inherited from

CEvent.type


data?

optional data?: any

Defined in: src/event/CEvent.ts:28

extra data.Used for the transmission process of events, carrying data

Inherited from

CEvent.data


param

param: any

Defined in: src/event/CEvent.ts:34

The param data when event is registered

Inherited from

CEvent.param


time

time: number = 0

Defined in: src/event/CEvent.ts:40

the time when event is

Inherited from

CEvent.time


delay

delay: number = 0

Defined in: src/event/CEvent.ts:46

the delay time when event is dispatched.

Inherited from

CEvent.delay


mouseCode

mouseCode: number = 0

Defined in: src/event/CEvent.ts:52

mouse code, see

Mouse Code

MouseCode

Inherited from

CEvent.mouseCode


ctrlKey

ctrlKey: boolean

Defined in: src/event/CEvent.ts:57

Is Ctrl key pressed when the event occurs

Inherited from

CEvent.ctrlKey


metaKey

metaKey: boolean

Defined in: src/event/CEvent.ts:62

Is Meta key pressed when the event occurs

Inherited from

CEvent.metaKey


altKey

altKey: boolean

Defined in: src/event/CEvent.ts:67

Is Alt key pressed when the event occurs

Inherited from

CEvent.altKey


shiftKey

shiftKey: boolean

Defined in: src/event/CEvent.ts:72

Is Shift key pressed when the event occurs

Inherited from

CEvent.shiftKey


targetTouches

targetTouches: TouchData[]

Defined in: src/event/CEvent.ts:77

Collection of finger touch points, which registered

Inherited from

CEvent.targetTouches


changedTouches

changedTouches: TouchData[]

Defined in: src/event/CEvent.ts:82

Collection of finger touch points changed

Inherited from

CEvent.changedTouches


touches

touches: TouchData[]

Defined in: src/event/CEvent.ts:87

Collection of finger touch points

Inherited from

CEvent.touches


view

view: View3D

Defined in: src/event/CEvent.ts:94

binded view3D object in event.

Inherited from

CEvent.view

Accessors

isStopImmediatePropagation

Get Signature

get isStopImmediatePropagation(): boolean

Defined in: src/event/CEvent.ts:125

Returns stopImmediatePropagation value

Returns

boolean

Inherited from

CEvent.isStopImmediatePropagation

Methods

stopImmediatePropagation()

stopImmediatePropagation(): void

Defined in: src/event/CEvent.ts:110

Prevent bubbling of all event listeners in subsequent nodes of the current node in the event flow.

Returns

void

Inherited from

CEvent.stopImmediatePropagation

Released under the MIT License