HandlerProxy.d.ts 760 B

12345678910111213141516171819202122
  1. import Eventful from '../core/Eventful';
  2. import { VectorArray } from '../core/vector';
  3. import Handler from '../Handler';
  4. export default class HandlerDomProxy extends Eventful {
  5. dom: HTMLElement;
  6. painterRoot: HTMLElement;
  7. handler: Handler;
  8. private _localHandlerScope;
  9. private _globalHandlerScope;
  10. __lastTouchMoment: Date;
  11. __pointerCapturing: boolean;
  12. __mayPointerCapture: VectorArray;
  13. constructor(dom: HTMLElement, painterRoot: HTMLElement);
  14. dispose(): void;
  15. setCursor(cursorStyle: string): void;
  16. __togglePointerCapture(isPointerCapturing?: boolean): void;
  17. }
  18. export interface HandlerProxyInterface extends Eventful {
  19. handler: Handler;
  20. dispose: () => void;
  21. setCursor: (cursorStyle?: string) => void;
  22. }