@univerjs/engine-render v0.5.4
Interface: IUIEvent
Defined in: packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/basics/i-events.ts:130
Native friendly interface for UIEvent Object
Extends
IEvent
.UIEvent
Extended by
Properties
Property | Modifier | Type | Description | Inherited from | Defined in |
---|---|---|---|---|---|
AT_TARGET | readonly | 2 | - | IEvent .AT_TARGET | node_modules/.pnpm/typescript@5.7.2/node_modules/typescript/lib/lib.dom.d.ts:8602 |
bubbles | readonly | boolean | Returns 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 Reference | IEvent .bubbles | node_modules/.pnpm/typescript@5.7.2/node_modules/typescript/lib/lib.dom.d.ts:8497 |
BUBBLING_PHASE | readonly | 3 | - | IEvent .BUBBLING_PHASE | node_modules/.pnpm/typescript@5.7.2/node_modules/typescript/lib/lib.dom.d.ts:8603 |
cancelable | readonly | boolean | Returns 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 Reference | IEvent .cancelable | node_modules/.pnpm/typescript@5.7.2/node_modules/typescript/lib/lib.dom.d.ts:8509 |
cancelBubble | public | boolean | Deprecated MDN Reference | IEvent .cancelBubble | node_modules/.pnpm/typescript@5.7.2/node_modules/typescript/lib/lib.dom.d.ts:8503 |
CAPTURING_PHASE | readonly | 1 | - | IEvent .CAPTURING_PHASE | node_modules/.pnpm/typescript@5.7.2/node_modules/typescript/lib/lib.dom.d.ts:8601 |
composed | readonly | boolean | Returns 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 Reference | IEvent .composed | node_modules/.pnpm/typescript@5.7.2/node_modules/typescript/lib/lib.dom.d.ts:8515 |
currentState | public | Nullable <number > | Current state of given input | IEvent .currentState | packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/basics/i-events.ts:122 |
currentTarget | readonly | null | EventTarget | Returns the object whose event listener’s callback is currently being invoked. MDN Reference | IEvent .currentTarget | node_modules/.pnpm/typescript@5.7.2/node_modules/typescript/lib/lib.dom.d.ts:8521 |
defaultPrevented | readonly | boolean | Returns true if preventDefault() was invoked successfully to indicate cancelation, and false otherwise. MDN Reference | IEvent .defaultPrevented | node_modules/.pnpm/typescript@5.7.2/node_modules/typescript/lib/lib.dom.d.ts:8527 |
detail | readonly | number | MDN Reference | UIEvent.detail | node_modules/.pnpm/typescript@5.7.2/node_modules/typescript/lib/lib.dom.d.ts:23192 |
deviceType | public | DeviceType | Device type | IEvent .deviceType | packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/basics/i-events.ts:110 |
eventPhase | readonly | number | Returns the event’s phase, which is one of NONE, CAPTURING_PHASE, AT_TARGET, and BUBBLING_PHASE. MDN Reference | IEvent .eventPhase | node_modules/.pnpm/typescript@5.7.2/node_modules/typescript/lib/lib.dom.d.ts:8533 |
inputIndex | public | number | Device slot | IEvent .inputIndex | packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/basics/i-events.ts:114 |
isTrusted | readonly | boolean | Returns true if event was dispatched by the user agent, and false otherwise. MDN Reference | IEvent .isTrusted | node_modules/.pnpm/typescript@5.7.2/node_modules/typescript/lib/lib.dom.d.ts:8539 |
NONE | readonly | 0 | - | IEvent .NONE | node_modules/.pnpm/typescript@5.7.2/node_modules/typescript/lib/lib.dom.d.ts:8600 |
previousState | public | Nullable <number > | Previous state of given input, for what???, nobody read this value. | IEvent .previousState | packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/basics/i-events.ts:118 |
returnValue | public | boolean | Deprecated MDN Reference | IEvent .returnValue | node_modules/.pnpm/typescript@5.7.2/node_modules/typescript/lib/lib.dom.d.ts:8545 |
srcElement | readonly | null | EventTarget | Deprecated MDN Reference | IEvent .srcElement | node_modules/.pnpm/typescript@5.7.2/node_modules/typescript/lib/lib.dom.d.ts:8551 |
target | readonly | null | EventTarget | Returns the object to which event is dispatched (its target). MDN Reference | IEvent .target | node_modules/.pnpm/typescript@5.7.2/node_modules/typescript/lib/lib.dom.d.ts:8557 |
timeStamp | readonly | number | Returns the event’s timestamp as the number of milliseconds measured relative to the time origin. MDN Reference | IEvent .timeStamp | node_modules/.pnpm/typescript@5.7.2/node_modules/typescript/lib/lib.dom.d.ts:8563 |
type | readonly | string | Returns the type of event, e.g. “click”, “hashchange”, or “submit”. MDN Reference | IEvent .type | node_modules/.pnpm/typescript@5.7.2/node_modules/typescript/lib/lib.dom.d.ts:8569 |
view | readonly | null | Window | MDN Reference | UIEvent.view | node_modules/.pnpm/typescript@5.7.2/node_modules/typescript/lib/lib.dom.d.ts:23194 |
which | readonly | number | Deprecated MDN Reference | UIEvent.which | node_modules/.pnpm/typescript@5.7.2/node_modules/typescript/lib/lib.dom.d.ts:23200 |
Methods
composedPath()
Call Signature
composedPath(): EventTarget[]
Defined in: node_modules/.pnpm/typescript@5.7.2/node_modules/typescript/lib/lib.dom.d.ts:8575
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.
Returns
EventTarget
[]
Inherited from
Call Signature
composedPath(): EventTarget[]
Defined in: node_modules/.pnpm/typescript@5.7.2/node_modules/typescript/lib/lib.webworker.d.ts:2734
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.
Returns
EventTarget
[]
Inherited from
initEvent()
Call Signature
initEvent(
type,
bubbles?,
cancelable?): void
Defined in: node_modules/.pnpm/typescript@5.7.2/node_modules/typescript/lib/lib.dom.d.ts:8581
Parameters
Parameter | Type |
---|---|
type | string |
bubbles ? | boolean |
cancelable ? | boolean |
Returns
void
Deprecated
Inherited from
Call Signature
initEvent(
type,
bubbles?,
cancelable?): void
Defined in: node_modules/.pnpm/typescript@5.7.2/node_modules/typescript/lib/lib.webworker.d.ts:2740
Parameters
Parameter | Type |
---|---|
type | string |
bubbles ? | boolean |
cancelable ? | boolean |
Returns
void
Deprecated
Inherited from
initUIEvent()
initUIEvent(
typeArg,
bubblesArg?,
cancelableArg?,
viewArg?,
detailArg?): void
Defined in: node_modules/.pnpm/typescript@5.7.2/node_modules/typescript/lib/lib.dom.d.ts:23206
Parameters
Parameter | Type |
---|---|
typeArg | string |
bubblesArg ? | boolean |
cancelableArg ? | boolean |
viewArg ? | null | Window |
detailArg ? | number |
Returns
void
Deprecated
Inherited from
UIEvent.initUIEvent
preventDefault()
Call Signature
preventDefault(): void
Defined in: node_modules/.pnpm/typescript@5.7.2/node_modules/typescript/lib/lib.dom.d.ts:8587
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.
Returns
void
Inherited from
Call Signature
preventDefault(): void
Defined in: node_modules/.pnpm/typescript@5.7.2/node_modules/typescript/lib/lib.webworker.d.ts:2746
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.
Returns
void
Inherited from
stopImmediatePropagation()
Call Signature
stopImmediatePropagation(): void
Defined in: node_modules/.pnpm/typescript@5.7.2/node_modules/typescript/lib/lib.dom.d.ts:8593
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.
Returns
void
Inherited from
IEvent
.stopImmediatePropagation
Call Signature
stopImmediatePropagation(): void
Defined in: node_modules/.pnpm/typescript@5.7.2/node_modules/typescript/lib/lib.webworker.d.ts:2752
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.
Returns
void
Inherited from
IEvent
.stopImmediatePropagation
stopPropagation()
Call Signature
stopPropagation(): void
Defined in: node_modules/.pnpm/typescript@5.7.2/node_modules/typescript/lib/lib.dom.d.ts:8599
When dispatched in a tree, invoking this method prevents event from reaching any objects other than the current object.
Returns
void
Inherited from
Call Signature
stopPropagation(): void
Defined in: node_modules/.pnpm/typescript@5.7.2/node_modules/typescript/lib/lib.webworker.d.ts:2758
When dispatched in a tree, invoking this method prevents event from reaching any objects other than the current object.
Returns
void