版博士V2.0程序
Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.
 
 
 
 

30 строки
939 B

  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 Event_1 = __importDefault(require("../Event"));
  7. /**
  8. *
  9. */
  10. class ProgressEvent extends Event_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);
  19. this.lengthComputable = false;
  20. this.loaded = 0;
  21. this.total = 0;
  22. if (eventInit) {
  23. this.lengthComputable = eventInit.lengthComputable || false;
  24. this.loaded = eventInit.loaded !== undefined ? eventInit.loaded : 0;
  25. this.total = eventInit.total !== undefined ? eventInit.total : 0;
  26. }
  27. }
  28. }
  29. exports.default = ProgressEvent;
  30. //# sourceMappingURL=ProgressEvent.js.map