@maxgraph/core
    Preparing search index...

    Class EventObject

    EventObject is a wrapper for all properties of a single event.

    Additionally, it also offers functions to consume the event and check if it was consumed as follows:

    evt.consume();
    INV: evt.isConsumed() == true
    Index

    Constructors

    • Constructs a new event object with the specified name. An optional sequence of key, value pairs can be appended to define properties.

      Example:

      new EventObject("eventName", key1, val1, .., keyN, valN)
      

      Parameters

      • name: string = ''
      • ...args: any[]

      Returns EventObject

    Properties

    consumed: boolean = false

    Holds the consumed state. Default is false.

    name: string

    Holds the name.

    properties: EventProperties

    Holds the properties as an associative array.

    Methods

    • Returns the property for the given key.

      Parameters

      • key: string

      Returns any