declare class mxPanningHandler extends mxEventSource { constructor(graph: mxGraph); /** * Variable: graph * * Reference to the enclosing . */ graph: mxGraph; /** * Variable: useLeftButtonForPanning * * Specifies if panning should be active for the left mouse button. * Setting this to true may conflict with . Default is false. */ useLeftButtonForPanning: boolean; /** * Variable: usePopupTrigger * * Specifies if should also be used for panning. */ usePopupTrigger: boolean; /** * Variable: ignoreCell * * Specifies if panning should be active even if there is a cell under the * mousepointer. Default is false. */ ignoreCell: boolean; /** * Variable: previewEnabled * * Specifies if the panning should be previewed. Default is true. */ previewEnabled: boolean; /** * Variable: useGrid * * Specifies if the panning steps should be aligned to the grid size. * Default is false. */ useGrid: boolean; /** * Variable: panningEnabled * * Specifies if panning should be enabled. Default is true. */ panningEnabled: boolean; /** * Variable: pinchEnabled * * Specifies if pinch gestures should be handled as zoom. Default is true. */ pinchEnabled: boolean; /** * Variable: maxScale * * Specifies the maximum scale. Default is 8. */ maxScale: number; /** * Variable: minScale * * Specifies the minimum scale. Default is 0.01. */ minScale: number; /** * Variable: dx * * Holds the current horizontal offset. */ dx: number; /** * Variable: dy * * Holds the current vertical offset. */ dy: number; /** * Variable: startX * * Holds the x-coordinate of the start point. */ startX: number; /** * Variable: startY * * Holds the y-coordinate of the start point. */ startY: number; /** * Function: isActive * * Returns true if the handler is currently active. */ isActive(): boolean; /** * Function: isPanningEnabled * * Returns . */ isPanningEnabled(): boolean; /** * Function: setPanningEnabled * * Sets . */ setPanningEnabled(value: boolean): void; /** * Function: isPinchEnabled * * Returns . */ isPinchEnabled(): boolean; /** * Function: setPinchEnabled * * Sets . */ setPinchEnabled(value: boolean): void; /** * Function: isPanningTrigger * * Returns true if the given event is a panning trigger for the optional * given cell. This returns true if control-shift is pressed or if * is true and the event is a popup trigger. */ isPanningTrigger(me: mxMouseEvent): boolean; /** * Function: isForcePanningEvent * * Returns true if the given should start panning. This * implementation always returns true if is true or for * multi touch events. */ isForcePanningEvent(me: mxMouseEvent): boolean; /** * Function: mouseDown * * Handles the event by initiating the panning. By consuming the event all * subsequent events of the gesture are redirected to this handler. */ mouseDown(sender: any, me: mxMouseEvent): void; /** * Function: start * * Starts panning at the given event. */ start(me: mxMouseEvent): void; /** * Function: consumePanningTrigger * * Consumes the given if it was a panning trigger in * . The default is to invoke . Note that this * will block any further event processing. If you haven't disabled built-in * context menus and require immediate selection of the cell on mouseDown in * Safari and/or on the Mac, then use the following code: * * (code) * consumePanningTrigger(me) * { * if (me.evt.preventDefault) * { * me.evt.preventDefault(); * } * * // Stops event processing in IE * me.evt.returnValue = false; * * // Sets local consumed state * if (!mxClient.IS_SF && !mxClient.IS_MAC) * { * me.consumed = true; * } * }; * (end) */ consumePanningTrigger(me: mxMouseEvent): void; /** * Function: mouseMove * * Handles the event by updating the panning on the graph. */ mouseMove(sender: any, me: mxMouseEvent): void; /** * Function: mouseUp * * Handles the event by setting the translation on the view or showing the * popupmenu. */ mouseUp(sender: any, me: mxMouseEvent): void; /** * Function: mouseUp * * Handles the event by setting the translation on the view or showing the * popupmenu. */ reset(): void; /** * Function: panGraph * * Pans by the given amount. */ panGraph(dx: number, dy: number): void; /** * Function: destroy * * Destroys the handler and all its resources and DOM nodes. */ destroy(): void; }