UNPKG

es-drager

Version:

A draggable, resizable, rotatable component based on vue3

14 lines (13 loc) 522 B
import { Ref, ExtractPropTypes } from 'vue'; import { DragerProps, DragData } from '../drager'; type UtilFN = { getBoundary: Function; fixBoundary: Function; checkDragerCollision: Function; emit: Function; }; export declare function useKeyEvent(props: ExtractPropTypes<typeof DragerProps>, dragData: Ref<DragData>, selected: Ref<boolean>, { getBoundary, fixBoundary, checkDragerCollision, emit }: UtilFN): { onKeydown: (e: KeyboardEvent) => void; onKeyup: (e: KeyboardEvent) => void; }; export {};