EventPlugin.d.ts 869 B

123456789101112131415161718192021222324252627
  1. import type { RenderingPlugin, RenderingPluginContext } from '../services';
  2. /**
  3. * support mouse & touch events
  4. * @see https://github.com/pixijs/pixi.js/blob/dev/packages/interaction/README.md
  5. *
  6. * also provide some extra events such as `drag`
  7. */
  8. export declare class EventPlugin implements RenderingPlugin {
  9. static tag: string;
  10. private autoPreventDefault;
  11. private rootPointerEvent;
  12. private rootWheelEvent;
  13. private context;
  14. apply(context: RenderingPluginContext): void;
  15. private onPointerMove;
  16. private onClick;
  17. private getViewportXY;
  18. private bootstrapEvent;
  19. private normalizeWheelEvent;
  20. /**
  21. * Transfers base & mouse event data from the nativeEvent to the federated event.
  22. */
  23. private transferMouseData;
  24. private setCursor;
  25. private normalizeToPointerEvent;
  26. }
  27. //# sourceMappingURL=EventPlugin.d.ts.map