@univerjs/engine-render v0.5.0-beta.1Docs


Interface: IEvent

Native friendly interface for Event Obj ect

Extends

  • Event

Extended by

Properties

PropertyModifierTypeDescriptionInherited fromDefined in
AT_TARGETreadonly2-Event.AT_TARGETnode_modules/.pnpm/typescript@5.6.3/node_modules/typescript/lib/lib.dom.d.ts:8192
bubblesreadonlybooleanReturns true or false depending on how event was initialized. True if event goes through its target’s ancestors in reverse tree order, and false otherwise. MDN ReferenceEvent.bubblesnode_modules/.pnpm/typescript@5.6.3/node_modules/typescript/lib/lib.dom.d.ts:8087
BUBBLING_PHASEreadonly3-Event.BUBBLING_PHASEnode_modules/.pnpm/typescript@5.6.3/node_modules/typescript/lib/lib.dom.d.ts:8193
cancelablereadonlybooleanReturns true or false depending on how event was initialized. Its return value does not always carry meaning, but true can indicate that part of the operation during which event was dispatched, can be canceled by invoking the preventDefault() method. MDN ReferenceEvent.cancelablenode_modules/.pnpm/typescript@5.6.3/node_modules/typescript/lib/lib.dom.d.ts:8099
cancelBubblepublicbooleanDeprecated MDN ReferenceEvent.cancelBubblenode_modules/.pnpm/typescript@5.6.3/node_modules/typescript/lib/lib.dom.d.ts:8093
CAPTURING_PHASEreadonly1-Event.CAPTURING_PHASEnode_modules/.pnpm/typescript@5.6.3/node_modules/typescript/lib/lib.dom.d.ts:8191
composedreadonlybooleanReturns true or false depending on how event was initialized. True if event invokes listeners past a ShadowRoot node that is the root of its target, and false otherwise. MDN ReferenceEvent.composednode_modules/.pnpm/typescript@5.6.3/node_modules/typescript/lib/lib.dom.d.ts:8105
currentStatepublicNullable<number>Current state of given input-packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/basics/i-events.ts:122
currentTargetreadonlynull | EventTargetReturns the object whose event listener’s callback is currently being invoked. MDN ReferenceEvent.currentTargetnode_modules/.pnpm/typescript@5.6.3/node_modules/typescript/lib/lib.dom.d.ts:8111
defaultPreventedreadonlybooleanReturns true if preventDefault() was invoked successfully to indicate cancelation, and false otherwise. MDN ReferenceEvent.defaultPreventednode_modules/.pnpm/typescript@5.6.3/node_modules/typescript/lib/lib.dom.d.ts:8117
deviceTypepublicDeviceTypeDevice type-packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/basics/i-events.ts:110
eventPhasereadonlynumberReturns the event’s phase, which is one of NONE, CAPTURING_PHASE, AT_TARGET, and BUBBLING_PHASE. MDN ReferenceEvent.eventPhasenode_modules/.pnpm/typescript@5.6.3/node_modules/typescript/lib/lib.dom.d.ts:8123
inputIndexpublicnumberDevice slot-packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/basics/i-events.ts:114
isTrustedreadonlybooleanReturns true if event was dispatched by the user agent, and false otherwise. MDN ReferenceEvent.isTrustednode_modules/.pnpm/typescript@5.6.3/node_modules/typescript/lib/lib.dom.d.ts:8129
NONEreadonly0-Event.NONEnode_modules/.pnpm/typescript@5.6.3/node_modules/typescript/lib/lib.dom.d.ts:8190
previousStatepublicNullable<number>Previous state of given input, for what???, nobody read this value.-packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/basics/i-events.ts:118
returnValuepublicbooleanDeprecated MDN ReferenceEvent.returnValuenode_modules/.pnpm/typescript@5.6.3/node_modules/typescript/lib/lib.dom.d.ts:8135
srcElementreadonlynull | EventTargetDeprecated MDN ReferenceEvent.srcElementnode_modules/.pnpm/typescript@5.6.3/node_modules/typescript/lib/lib.dom.d.ts:8141
targetreadonlynull | EventTargetReturns the object to which event is dispatched (its target). MDN ReferenceEvent.targetnode_modules/.pnpm/typescript@5.6.3/node_modules/typescript/lib/lib.dom.d.ts:8147
timeStampreadonlynumberReturns the event’s timestamp as the number of milliseconds measured relative to the time origin. MDN ReferenceEvent.timeStampnode_modules/.pnpm/typescript@5.6.3/node_modules/typescript/lib/lib.dom.d.ts:8153
typereadonlystringReturns the type of event, e.g. “click”, “hashchange”, or “submit”. MDN ReferenceEvent.typenode_modules/.pnpm/typescript@5.6.3/node_modules/typescript/lib/lib.dom.d.ts:8159

Methods

composedPath()

composedPath(undefined)

composedPath(): EventTarget[]

Returns the invocation target objects of event’s path (objects on which listeners will be invoked), except for any nodes in shadow trees of which the shadow root’s mode is “closed” that are not reachable from event’s currentTarget.

MDN Reference

Returns

EventTarget[]

Inherited from

Event.composedPath

Defined in

node_modules/.pnpm/typescript@5.6.3/node_modules/typescript/lib/lib.dom.d.ts:8165

composedPath(undefined)

composedPath(): EventTarget[]

Returns the invocation target objects of event’s path (objects on which listeners will be invoked), except for any nodes in shadow trees of which the shadow root’s mode is “closed” that are not reachable from event’s currentTarget.

MDN Reference

Returns

EventTarget[]

Inherited from

Event.composedPath

Defined in

node_modules/.pnpm/typescript@5.6.3/node_modules/typescript/lib/lib.webworker.d.ts:2473


initEvent()

initEvent(type, bubbles, cancelable)

initEvent(
   type, 
   bubbles?, 
   cancelable?): void
Parameters
ParameterType
typestring
bubbles?boolean
cancelable?boolean
Returns

void

Deprecated

MDN Reference

Inherited from

Event.initEvent

Defined in

node_modules/.pnpm/typescript@5.6.3/node_modules/typescript/lib/lib.dom.d.ts:8171

initEvent(type, bubbles, cancelable)

initEvent(
   type, 
   bubbles?, 
   cancelable?): void
Parameters
ParameterType
typestring
bubbles?boolean
cancelable?boolean
Returns

void

Deprecated

MDN Reference

Inherited from

Event.initEvent

Defined in

node_modules/.pnpm/typescript@5.6.3/node_modules/typescript/lib/lib.webworker.d.ts:2479


preventDefault()

preventDefault(undefined)

preventDefault(): void

If invoked when the cancelable attribute value is true, and while executing a listener for the event with passive set to false, signals to the operation that caused event to be dispatched that it needs to be canceled.

MDN Reference

Returns

void

Inherited from

Event.preventDefault

Defined in

node_modules/.pnpm/typescript@5.6.3/node_modules/typescript/lib/lib.dom.d.ts:8177

preventDefault(undefined)

preventDefault(): void

If invoked when the cancelable attribute value is true, and while executing a listener for the event with passive set to false, signals to the operation that caused event to be dispatched that it needs to be canceled.

MDN Reference

Returns

void

Inherited from

Event.preventDefault

Defined in

node_modules/.pnpm/typescript@5.6.3/node_modules/typescript/lib/lib.webworker.d.ts:2485


stopImmediatePropagation()

stopImmediatePropagation(undefined)

stopImmediatePropagation(): void

Invoking this method prevents event from reaching any registered event listeners after the current one finishes running and, when dispatched in a tree, also prevents event from reaching any other objects.

MDN Reference

Returns

void

Inherited from

Event.stopImmediatePropagation

Defined in

node_modules/.pnpm/typescript@5.6.3/node_modules/typescript/lib/lib.dom.d.ts:8183

stopImmediatePropagation(undefined)

stopImmediatePropagation(): void

Invoking this method prevents event from reaching any registered event listeners after the current one finishes running and, when dispatched in a tree, also prevents event from reaching any other objects.

MDN Reference

Returns

void

Inherited from

Event.stopImmediatePropagation

Defined in

node_modules/.pnpm/typescript@5.6.3/node_modules/typescript/lib/lib.webworker.d.ts:2491


stopPropagation()

stopPropagation(undefined)

stopPropagation(): void

When dispatched in a tree, invoking this method prevents event from reaching any objects other than the current object.

MDN Reference

Returns

void

Inherited from

Event.stopPropagation

Defined in

node_modules/.pnpm/typescript@5.6.3/node_modules/typescript/lib/lib.dom.d.ts:8189

stopPropagation(undefined)

stopPropagation(): void

When dispatched in a tree, invoking this method prevents event from reaching any objects other than the current object.

MDN Reference

Returns

void

Inherited from

Event.stopPropagation

Defined in

node_modules/.pnpm/typescript@5.6.3/node_modules/typescript/lib/lib.webworker.d.ts:2497