UNPKG

shogiground

Version:
28 lines 991 B
import type { State } from './state.js'; import type * as sg from './types.js'; export interface DragCurrent { piece: sg.Piece; pos: sg.NumberPair; origPos: sg.NumberPair; started: boolean; spare: boolean; touch: boolean; originTarget: EventTarget | null; fromBoard?: { orig: sg.Key; previouslySelected?: sg.Key; keyHasChanged: boolean; }; fromOutside?: { originBounds: DOMRect | undefined; leftOrigin: boolean; previouslySelectedPiece?: sg.Piece; }; } export declare function start(s: State, e: sg.MouchEvent): void; export declare function dragNewPiece(s: State, piece: sg.Piece, e: sg.MouchEvent, spare?: boolean): void; export declare function move(s: State, e: sg.MouchEvent): void; export declare function end(s: State, e: sg.MouchEvent): void; export declare function cancel(s: State): void; export declare function unwantedEvent(e: sg.MouchEvent): boolean; //# sourceMappingURL=drag.d.ts.map