Class: CEvent
Basic class of Event
Hierarchy
CEvent
↳
KeyEvent
Constructors
Properties
- target
- currentTarget
- type
- data
- param
- time
- delay
- mouseCode
- ctrlKey
- metaKey
- altKey
- shiftKey
- targetTouches
- changedTouches
- touches
- view
Accessors
Methods
Constructors
constructor
• new CEvent(eventType?
, data?
): CEvent
Create a new event, with type and data
Parameters
Name | Type | Default value | Description |
---|---|---|---|
eventType | string | null | {any} eventType |
data | any | null | {any} param |
Returns
Defined in
Properties
target
• target: Object3D
Event target, it's usually event dispatcher
Defined in
currentTarget
• currentTarget: CEventListener
Current event target, it's current bubble object
Defined in
type
• type: string
event type, it's registered string of key
Defined in
data
• data: any
extra data.Used for the transmission process of events, carrying data
Defined in
param
• param: any
The param data when event is registered
Defined in
time
• time: number
= 0
the time when event is
Defined in
delay
• delay: number
= 0
the delay time when event is dispatched.
Defined in
mouseCode
• mouseCode: number
= 0
mouse code, see
Mouse Code
Defined in
ctrlKey
• ctrlKey: boolean
Is Ctrl key pressed when the event occurs
Defined in
metaKey
• metaKey: boolean
Is Meta key pressed when the event occurs
Defined in
altKey
• altKey: boolean
Is Alt key pressed when the event occurs
Defined in
shiftKey
• shiftKey: boolean
Is Shift key pressed when the event occurs
Defined in
targetTouches
• targetTouches: TouchData
[]
Collection of finger touch points, which registered
Defined in
changedTouches
• changedTouches: TouchData
[]
Collection of finger touch points changed
Defined in
touches
• touches: TouchData
[]
Collection of finger touch points
Defined in
view
• view: View3D
binded view3D object in event.
Defined in
Accessors
isStopImmediatePropagation
• get
isStopImmediatePropagation(): boolean
Returns stopImmediatePropagation value
Returns
boolean
Defined in
Methods
stopImmediatePropagation
▸ stopImmediatePropagation(): void
Prevent bubbling of all event listeners in subsequent nodes of the current node in the event flow.
Returns
void