GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • @maxgraph/core

This view

  • Original page
  • New address

GeezerVison is showing maxgraph.github.io — InternalMouseEvent | @maxgraph/core

  • InternalMouseEvent

Class InternalMouseEvent

Base class for all mouse events in mxGraph. A listener for this event should implement the following methods:

graph.addMouseListener({
mouseDown: (sender, evt) => {
GlobalConfig.logger.debug('mouseDown');
},
mouseMove: (sender, evt) => {
GlobalConfig.logger.debug('mouseMove');
},
mouseUp: (sender, evt) => {
GlobalConfig.logger.debug('mouseUp');
}
});
  • Defined in view/event/InternalMouseEvent.ts:50
Index

Constructors

constructor

Properties

consumed evt graphX graphY sourceState state

Methods

consume getCell getEvent getGraphX getGraphY getSource getState getX getY isConsumed isPopupTrigger isSource

Constructors

constructor

  • new InternalMouseEvent(
        evt: MouseEvent,
        state?: CellState | null,
    ): InternalMouseEvent

    Constructs a new event object for the given arguments.

    Parameters

    • evt: MouseEvent

      Native mouse event.

    • state: CellState | null = null

      Optional CellState under the mouse.

    Returns InternalMouseEvent

    • Defined in view/event/InternalMouseEvent.ts:57

Properties

consumed

consumed: boolean = false

Holds the consumed state of this event.

  • Defined in view/event/InternalMouseEvent.ts:71

evt

evt: MouseEvent

Holds the inner event object.

  • Defined in view/event/InternalMouseEvent.ts:76

graphX

graphX: number

Holds the x-coordinate of the event in the graph. This value is set in AbstractGraph.fireMouseEvent.

  • Defined in view/event/InternalMouseEvent.ts:82

graphY

graphY: number

Holds the y-coordinate of the event in the graph. This value is set in AbstractGraph.fireMouseEvent.

  • Defined in view/event/InternalMouseEvent.ts:88

sourceState

sourceState: CellState | null

Holds the that was passed to the constructor. This can be different from depending on the result of AbstractGraph.getEventState.

  • Defined in view/event/InternalMouseEvent.ts:99

state

state: CellState | null

Holds the optional associated with this event.

  • Defined in view/event/InternalMouseEvent.ts:93

Methods

consume

  • consume(preventDefault?: boolean): void

    Sets to true and invokes preventDefault on the native event if such a method is defined. This is used mainly to avoid the cursor from being changed to a text cursor in Webkit. You can use the preventDefault flag to disable this functionality.

    Parameters

    • OptionalpreventDefault: boolean

      Specifies if the native event should be canceled. Default is true.

    Returns void

    • Defined in view/event/InternalMouseEvent.ts:188

getCell

  • getCell(): Cell | null

    Returns the in is not null.

    Returns Cell | null

    • Defined in view/event/InternalMouseEvent.ts:160

getEvent

  • getEvent(): MouseEvent

    Returns .

    Returns MouseEvent

    • Defined in view/event/InternalMouseEvent.ts:104

getGraphX

  • getGraphX(): number

    Returns .

    Returns number

    • Defined in view/event/InternalMouseEvent.ts:139

getGraphY

  • getGraphY(): number

    Returns .

    Returns number

    • Defined in view/event/InternalMouseEvent.ts:146

getSource

  • getSource(): Element

    Returns the target DOM element using Event#getSource for .

    Returns Element

    • Defined in view/event/InternalMouseEvent.ts:111

getState

  • getState(): CellState | null

    Returns .

    Returns CellState | null

    • Defined in view/event/InternalMouseEvent.ts:153

getX

  • getX(): number

    Returns <evt.clientX>.

    Returns number

    • Defined in view/event/InternalMouseEvent.ts:125

getY

  • getY(): number

    Returns <evt.clientY>.

    Returns number

    • Defined in view/event/InternalMouseEvent.ts:132

isConsumed

  • isConsumed(): boolean

    Returns .

    Returns boolean

    • Defined in view/event/InternalMouseEvent.ts:175

isPopupTrigger

  • isPopupTrigger(): boolean

    Returns true if the event is a popup trigger.

    Returns boolean

    • Defined in view/event/InternalMouseEvent.ts:168

isSource

  • isSource(shape: Shape | null): boolean

    Returns true if the given Shape is the source of .

    Parameters

    • shape: Shape | null

    Returns boolean

    • Defined in view/event/InternalMouseEvent.ts:118

Settings

Member Visibility
  • Protected
  • Inherited
Theme

On This Page

Constructors
constructor
Properties
consumedevtgraphXgraphYsourceStatestate
Methods
consumegetCellgetEventgetGraphXgetGraphYgetSourcegetStategetXgetYisConsumedisPopupTriggerisSource
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.