handsontable
Version:
Handsontable is a JavaScript Data Grid available for React, Angular and Vue.
23 lines (17 loc) • 482 B
TypeScript
import Core from '../../core';
import { BasePlugin } from '../base';
interface DOMBoundaries {
left: number;
right: number;
top: number;
bottom: number;
}
export type Settings = boolean;
export class DragToScroll extends BasePlugin {
constructor(hotInstance: Core);
boundaries: DOMRect | undefined;
isEnabled(): boolean;
setBoundaries(boundaries: DOMRect | DOMBoundaries): void;
setCallback(callback: () => void): void;
check(x: number, y: number): void;
}