Options
All
  • Public
  • Public/Protected
  • All
Menu

EngineEvent used for "annotationPointerEnter" and "annotationPointerLeave" Fires when a "pointerenter" or "pointerleave" events occurs on a ReaderViewAnnotation

Hierarchy

Index

Properties

Readonly annotation

annotation: IReaderViewAnnotation<any>

The annotation this event is related to.

Readonly annotationLayer

annotationLayer: IReaderViewAnnotationLayer<any>

Readonly cancelable

cancelable: boolean

If this event's default action is cancelable. See respective engine event for its definition of default action.

Readonly clientX

clientX: number

The X coordinate of the mouse pointer in local (DOM content) coordinates.

Readonly clientY

clientY: number

The Y coordinate of the mouse pointer in local (DOM content) coordinates.

Readonly ctrlKey

ctrlKey: boolean

Returns true if the control key was down when the mouse event was fired.

Readonly defaultPrevented

defaultPrevented: boolean

If this event's default action has been canceled/prevented by a call to preventDefault()

Readonly immediatePropagationStopped

immediatePropagationStopped: boolean

True if stopImmediatePropagation() was called on this event.

Readonly isPrimary

isPrimary: boolean

Indicates whether or not the pointer device that created the event is the primary pointer. For more information, see: https://developer.mozilla.org/en-US/docs/Web/API/PointerEvent/isPrimary

Readonly isTrusted

isTrusted: boolean

If this event runs in a "trusted" context, i.e. the event callback is executed during a user-generated event such as "click" or "pointerdown".

Readonly metaKey

metaKey: boolean

Returns true if the meta key was down when the mouse event was fired.

Readonly pageX

pageX: number

The X coordinate of the mouse pointer relative to the whole document.

Readonly pageY

pageY: number

The Y coordinate of the mouse pointer relative to the whole document.

Readonly pointerId

pointerId: number

An identifier assigned to a given pointer event. The identifier is unique, being different from the identifiers of all other active pointer events.

Readonly pointerType

pointerType: string

Indicates the device type (mouse, pen, or touch) that caused a given pointer event.

Readonly propagationStopped

propagationStopped: boolean

True if stopPropagation() was called on this event.

Readonly readerDocumentEventState

readerDocumentEventState: ReaderDocumentEventState

Describes how the reader document acted on the event.

Readonly readerView

readerView: IReaderView

The ReaderView instance this event is related to.

Readonly relativeClientX

relativeClientX: number

The client X coordinate relative to the window width. Typically a number between 0 and 1.

Readonly relativeClientY

relativeClientY: number

The client Y coordinate relative to the window height. Typically a number between 0 and 1.

Readonly relativeScreenX

relativeScreenX: number

The global screen X coordinate relative to the screen width. Typically a number between 0 and 1.

Readonly relativeScreenY

relativeScreenY: number

The global screen Y coordinate relative to the screen height. Typically a number between 0 and 1.

Readonly screenX

screenX: number

The X coordinate of the mouse pointer in global (screen) coordinates.

Readonly screenY

screenY: number

The Y coordinate of the mouse pointer in global (screen) coordinates.

Readonly type

The type of event.

Readonly userGenerated

userGenerated: boolean

If the event was emitted due to a user generated event.

Note that if this value is true, the engine event listener might still be called in an untrusted execution context due to proxying through iframes, etc. Use isTrusted() to verify if the current execution context is trusted.

Readonly willEmitDomEvent

willEmitDomEvent: boolean

If true, a native DOM event with the same type as this engine event will also be fired in your app.

If you are also listening on the corresponding DOM event, use this value to ensure that you are not handling the same event twice.

For example, when performing a "click" inside an EPUB reader document, the DOM "click" event will not be visible to your app because the document is rendered in an iframe. However, a click on the edge of an EPUB reader document will generate a normal DOM "click" event AND also a Colibrio "click" engine event.

Methods

preventDefault

  • preventDefault(): void

stopImmediatePropagation

  • stopImmediatePropagation(): void

stopPropagation

  • stopPropagation(): void
  • Stops this event from propagating to listeners on the ReadingSystemEngine instance, if called from a listener added to a ReaderView instance. If the event has already propagated to the ReadingSystemEngine instance, calling this method has no effect.

    Returns void

toJSON

Generated using TypeDoc