版博士V2.0程序
Non puoi selezionare più di 25 argomenti Gli argomenti devono iniziare con una lettera o un numero, possono includere trattini ('-') e possono essere lunghi fino a 35 caratteri.

InputEvent.js 977 B

1234567891011121314151617181920212223242526272829303132
  1. "use strict";
  2. var __importDefault = (this && this.__importDefault) || function (mod) {
  3. return (mod && mod.__esModule) ? mod : { "default": mod };
  4. };
  5. Object.defineProperty(exports, "__esModule", { value: true });
  6. const UIEvent_1 = __importDefault(require("../UIEvent"));
  7. /**
  8. *
  9. */
  10. class InputEvent extends UIEvent_1.default {
  11. /**
  12. * Constructor.
  13. *
  14. * @param type Event type.
  15. * @param [eventInit] Event init.
  16. */
  17. constructor(type, eventInit = null) {
  18. super(type, eventInit);
  19. this.data = '';
  20. this.dataTransfer = null;
  21. this.inputType = '';
  22. this.isComposing = false;
  23. if (eventInit) {
  24. this.data = eventInit.data || '';
  25. this.dataTransfer = eventInit.dataTransfer || null;
  26. this.inputType = eventInit.inputType || '';
  27. this.isComposing = eventInit.isComposing || false;
  28. }
  29. }
  30. }
  31. exports.default = InputEvent;
  32. //# sourceMappingURL=InputEvent.js.map