UNPKG

@hydroperx/tiles

Version:
21 lines (20 loc) 451 B
import type { Tiles } from "./Tiles"; /** * Drag-n-drop behavior for tiles. */ export declare class TileDraggableBehavior { private $; private id; private _startX; private _startY; private _startState; private _gridSnap; private _ghostTile; constructor($: Tiles, id: string); install(): void; uninstall(): void; private _dragStart; private _drag; private _dragEnd; private _revertGhostTile; }