Touch.d.ts 655 B

12345678910111213141516171819202122232425
  1. export declare type TouchInteraction = {
  2. id: string;
  3. touch: Touch;
  4. x: number;
  5. y: number;
  6. deltaX: number;
  7. deltaY: number;
  8. };
  9. export declare class TouchController {
  10. private _startTouches;
  11. private _endTouches;
  12. private _touches;
  13. private _enabled;
  14. get startTouches(): TouchInteraction[];
  15. get endTouches(): TouchInteraction[];
  16. get touches(): TouchInteraction[];
  17. get enabled(): boolean;
  18. set enabled(value: boolean);
  19. init(): void;
  20. private onTouchStart;
  21. private onTouchEnd;
  22. private onTouchMove;
  23. private getCurrentTouchIndexById;
  24. private setTouchValues;
  25. }