import Camera from "../Camera"; import { SigmaLibrary } from "../../../interfaces"; declare const _default: (sigma: SigmaLibrary) => { new (target: HTMLElement, camera: Camera, settings: any): { startCameraX: number; startCameraY: number; lastCameraX: number; lastCameraY: number; startMouseX: number; startMouseY: number; isMouseDown: boolean; isMoving: boolean; hasDragged: boolean; downStartTime: number; movingTimeoutId: number | null; target: HTMLElement; camera: Camera; settings: any; /** * The handler listening to the 'move' mouse event. It will effectively * drag the graph. * * @param {event} e A mouse event. */ moveHandler: (e: MouseEvent) => false | undefined; /** * The handler listening to the 'up' mouse event. It will stop dragging the * graph. * * @param {event} e A mouse event. */ upHandler: (e: MouseEvent) => void; /** * The handler listening to the 'down' mouse event. It will start observing * the mouse position for dragging the graph. * * @param {event} e A mouse event. */ downHandler: (e: MouseEvent) => void; /** * The handler listening to the 'out' mouse event. It will just redispatch * the event. * * @param {event} e A mouse event. */ outHandler: () => void; /** * The handler listening to the 'click' mouse event. It will redispatch the * click event, but with normalized X and Y coordinates. * * @param {event} e A mouse event. */ clickHandler: (e: MouseEvent) => boolean; /** * The handler listening to the double click custom event. It will * basically zoom into the graph. * * @param {event} e A mouse event. */ doubleClickHandler: (e: MouseEvent) => false | undefined; /** * The handler listening to the 'wheel' mouse event. It will basically zoom * in or not into the graph. * * @param {event} e A mouse event. */ wheelHandler: (e: MouseEvent) => false | undefined; /** * This method unbinds every handlers that makes the captor work. */ kill: () => void; handlers: import("../../../interfaces").Keyed; bind(events: string | string[] | import("../../../interfaces").Keyed, handler?: Function | undefined): any; unbind(events?: string | string[] | undefined, handler?: Function | undefined): any; dispatchEvent(events: string | string[], data?: any): any; getEvent: (event: string, data?: any) => { type: string; data: any; target: any; }; }; extend(target: any): void; }; export default _default;