UNPKG

@opensig/opendesign

Version:

<p align="center"><img src="../docs/public/opendesign-logo-light.png"/></p> <h1 align="center">opendesign</h1> <p align="center">一个 Vue 3 组件库</p> <p align="center"><b>皮肤可定制,使用 TypeScript</b></p>

21 lines (20 loc) 544 B
import { PointT, PointMoveT } from './types'; interface TouchOptionsT { onStart?: (pos: PointT, e: TouchEvent) => void; onMove?: (pos: PointMoveT, e: TouchEvent) => void; onEnd?: (pos: PointMoveT, e: TouchEvent) => void; } export declare class OPointer { private el; private x1; private y1; private onStart; private onMove; private onEnd; private removeListener; constructor(el: HTMLElement, options: TouchOptionsT); private bind; private onPointerMove; private onPointerUp; } export {};