GeezerVison is showing maxgraph.github.io — InternalMouseEvent | @maxgraph/core
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');
}
});
Constructors
constructor
-
new InternalMouseEvent( evt: MouseEvent, state?: CellState | null,): InternalMouseEvent
Constructs a new event object for the given arguments.
Parameters
- evt: MouseEvent
- state: CellState | null = null
Returns InternalMouseEvent
Properties
consumed
consumed: boolean = false
Holds the consumed state of this event.
evt
evt: MouseEvent
Holds the inner event object.
state
Holds the optional associated with this event.
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
getCell
-
Returns the | in is not null. |
Returns Cell | null
getSource
-
Returns the target DOM element using Event#getSource for .
Returns Element
isPopupTrigger
-
isPopupTrigger(): boolean
Returns true if the event is a popup trigger.
Returns boolean
isSource
-
isSource(shape: Shape | null): boolean
Returns true if the given Shape is the source of .
Returns boolean
On This Page
Constructors
Properties
Methods