版博士V2.0程序
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

UIEvent.d.ts 1.1 KiB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. import IWindow from '../window/IWindow';
  2. import Event from './Event';
  3. import IUIEventInit from './IUIEventInit';
  4. /**
  5. *
  6. */
  7. export default class UIEvent extends Event {
  8. static NONE: number;
  9. static CAPTURING_PHASE: number;
  10. static AT_TARGET: number;
  11. static BUBBLING_PHASE: number;
  12. readonly detail: number;
  13. readonly layerX: number;
  14. readonly layerY: number;
  15. readonly pageX: number;
  16. readonly pageY: number;
  17. readonly view: IWindow;
  18. /**
  19. * Constructor.
  20. *
  21. * @param type Event type.
  22. * @param [eventInit] Event init.
  23. */
  24. constructor(type: string, eventInit?: IUIEventInit);
  25. /**
  26. * Init event.
  27. *
  28. * @deprecated
  29. * @param type Type.
  30. * @param [bubbles=false] "true" if it bubbles.
  31. * @param [cancelable=false] "true" if it cancelable.
  32. */
  33. initEvent(type: string, bubbles?: boolean, cancelable?: boolean): void;
  34. /**
  35. * Prevents default.
  36. */
  37. preventDefault(): void;
  38. /**
  39. * Stops immediate propagation.
  40. */
  41. stopImmediatePropagation(): void;
  42. /**
  43. * Stops propagation.
  44. */
  45. stopPropagation(): void;
  46. }