Skip to main content

Events

Index

Constructors

constructor

  • new Events(__namedParameters: { context: any; contextName: string; map?: MapSVGMap; parent?: Events }): Events
  • Parameters

    • __namedParameters: { context: any; contextName: string; map?: MapSVGMap; parent?: Events }

    Returns Events

Properties

optionalbubbleTo

bubbleTo?: Events

context

context: any

contextName

contextName: string

listeners

listeners: EventListener[]

optionalmap

map?: MapSVGMap

Methods

off

on

  • on(eventName: string, callback: BaseEventHandler<Record<string, unknown>>, options?: EventOptions): this
  • Parameters

    • eventName: string
    • callback: BaseEventHandler<Record<string, unknown>>
    • optionaloptions: EventOptions

    Returns this

once

  • Parameters

    Returns this

trigger

  • trigger(eventName: string, e?: any, data?: Record<string, unknown> | unknown[]): any
  • trigger(eventName: string, data?: Record<string, unknown> | unknown[]): void
  • Parameters

    • eventName: string
    • optionale: any
    • optionaldata: Record<string, unknown> | unknown[]

    Returns any