declare class mxMouseEvent { constructor(evt: Event, state?: mxCellState); /** * Variable: consumed * * Holds the consumed state of this event. */ consumed: boolean; /** * Variable: evt * * Holds the inner event object. */ evt: Event; /** * Variable: graphX * * Holds the x-coordinate of the event in the graph. This value is set in * . */ graphX: number; /** * Variable: graphY * * Holds the y-coordinate of the event in the graph. This value is set in * . */ graphY: number; /** * Variable: state * * Holds the optional associated with this event. */ state: mxCellState; /** * Variable: sourceState * * Holds the that was passed to the constructor. This can be * different from depending on the result of . */ sourceState: mxCellState; /** * Function: getEvent * * Returns . */ getEvent(): MouseEvent; /** * Function: getSource * * Returns the target DOM element using for . */ getSource(): Element; /** * Function: isSource * * Returns true if the given is the source of . */ isSource(shape: mxShape): boolean; /** * Function: getX * * Returns . */ getX(): number; /** * Function: getY * * Returns . */ getY(): number; /** * Function: getGraphX * * Returns . */ getGraphX(): number; /** * Function: getGraphY * * Returns . */ getGraphY(): number; /** * Function: getState * * Returns . */ getState(): mxCellState; /** * Function: getCell * * Returns the in is not null. */ getCell(): mxCell; /** * Function: isPopupTrigger * * Returns true if the event is a popup trigger. */ isPopupTrigger(): boolean; /** * Function: isConsumed * * Returns . */ isConsumed(): boolean; /** * Function: consume * * 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: * * preventDefault - Specifies if the native event should be canceled. Default * is true. */ consume(preventDefault?: boolean): void; }