Components Interactions Examples Tutorials API FAQ
Options
Menu

Interface Event

Interface for any and all d3 events.

Hierarchy

  • KeyboardEvent
  • MouseEvent
    • Event

Index

Properties

AT_TARGET

AT_TARGET: number

BUBBLING_PHASE

BUBBLING_PHASE: number

CAPTURING_PHASE

CAPTURING_PHASE: number

DOM_KEY_LOCATION_JOYSTICK

DOM_KEY_LOCATION_JOYSTICK: number

DOM_KEY_LOCATION_LEFT

DOM_KEY_LOCATION_LEFT: number

DOM_KEY_LOCATION_MOBILE

DOM_KEY_LOCATION_MOBILE: number

DOM_KEY_LOCATION_NUMPAD

DOM_KEY_LOCATION_NUMPAD: number

DOM_KEY_LOCATION_RIGHT

DOM_KEY_LOCATION_RIGHT: number

DOM_KEY_LOCATION_STANDARD

DOM_KEY_LOCATION_STANDARD: number

KeyboardEvent

KeyboardEvent: object

Type declaration

  • constructor: function
    • new __type(typeArg: string, eventInitDict?: KeyboardEventInit): __type
    • Parameters

      • typeArg: string
      • Optional eventInitDict: KeyboardEventInit

      Returns __type

  • DOM_KEY_LOCATION_JOYSTICK: number
  • DOM_KEY_LOCATION_LEFT: number
  • DOM_KEY_LOCATION_MOBILE: number
  • DOM_KEY_LOCATION_NUMPAD: number
  • DOM_KEY_LOCATION_RIGHT: number
  • DOM_KEY_LOCATION_STANDARD: number
  • prototype: KeyboardEvent

MouseEvent

MouseEvent: object

Type declaration

  • constructor: function
    • new __type(typeArg: string, eventInitDict?: MouseEventInit): __type
    • Parameters

      • typeArg: string
      • Optional eventInitDict: MouseEventInit

      Returns __type

  • prototype: MouseEvent

altKey

altKey: boolean

bubbles

bubbles: boolean

button

button: number

buttons

buttons: number

cancelBubble

cancelBubble: boolean

cancelable

cancelable: boolean

char

char: string | null

charCode

charCode: number

clientX

clientX: number

clientY

clientY: number

code

code: string

ctrlKey

ctrlKey: boolean

currentTarget

currentTarget: EventTarget

defaultPrevented

defaultPrevented: boolean

detail

detail: number

eventPhase

eventPhase: number

fromElement

fromElement: Element

isTrusted

isTrusted: boolean

key

key: string

keyCode

keyCode: number

layerX

layerX: number

layerY

layerY: number

locale

locale: string

location

location: number

metaKey

metaKey: boolean

movementX

movementX: number

movementY

movementY: number

offsetX

offsetX: number

offsetY

offsetY: number

pageX

pageX: number

pageY

pageY: number

relatedTarget

relatedTarget: EventTarget

repeat

repeat: boolean

returnValue

returnValue: boolean

scoped

scoped: boolean

screenX

screenX: number

screenY

screenY: number

shiftKey

shiftKey: boolean

srcElement

srcElement: Element | null

target

target: EventTarget

timeStamp

timeStamp: number

toElement

toElement: Element

type

type: string

view

view: Window

which

which: number

x

x: number

y

y: number

Methods

deepPath

  • deepPath(): EventTarget[]
  • Returns EventTarget[]

getModifierState

  • getModifierState(keyArg: string): boolean
  • Parameters

    • keyArg: string

    Returns boolean

initEvent

  • initEvent(eventTypeArg: string, canBubbleArg: boolean, cancelableArg: boolean): void
  • Parameters

    • eventTypeArg: string
    • canBubbleArg: boolean
    • cancelableArg: boolean

    Returns void

initKeyboardEvent

  • initKeyboardEvent(typeArg: string, canBubbleArg: boolean, cancelableArg: boolean, viewArg: Window, keyArg: string, locationArg: number, modifiersListArg: string, repeat: boolean, locale: string): void
  • Parameters

    • typeArg: string
    • canBubbleArg: boolean
    • cancelableArg: boolean
    • viewArg: Window
    • keyArg: string
    • locationArg: number
    • modifiersListArg: string
    • repeat: boolean
    • locale: string

    Returns void

initMouseEvent

  • initMouseEvent(typeArg: string, canBubbleArg: boolean, cancelableArg: boolean, viewArg: Window, detailArg: number, screenXArg: number, screenYArg: number, clientXArg: number, clientYArg: number, ctrlKeyArg: boolean, altKeyArg: boolean, shiftKeyArg: boolean, metaKeyArg: boolean, buttonArg: number, relatedTargetArg: EventTarget | null): void
  • Parameters

    • typeArg: string
    • canBubbleArg: boolean
    • cancelableArg: boolean
    • viewArg: Window
    • detailArg: number
    • screenXArg: number
    • screenYArg: number
    • clientXArg: number
    • clientYArg: number
    • ctrlKeyArg: boolean
    • altKeyArg: boolean
    • shiftKeyArg: boolean
    • metaKeyArg: boolean
    • buttonArg: number
    • relatedTargetArg: EventTarget | null

    Returns void

initUIEvent

  • initUIEvent(typeArg: string, canBubbleArg: boolean, cancelableArg: boolean, viewArg: Window, detailArg: number): void
  • Parameters

    • typeArg: string
    • canBubbleArg: boolean
    • cancelableArg: boolean
    • viewArg: Window
    • detailArg: number

    Returns void

preventDefault

  • preventDefault(): void
  • Returns void

stopImmediatePropagation

  • stopImmediatePropagation(): void
  • Returns void

stopPropagation

  • stopPropagation(): void
  • Returns void

Generated using TypeDoc