Sin descripción

ProgressEvent.js 650B

123456789101112131415161718192021222324252627282930313233
  1. // Copyright 2016 wkh237@github. All rights reserved.
  2. // Use of this source code is governed by a MIT-style license that can be
  3. // found in the LICENSE file.
  4. import Event from './Event'
  5. export default class ProgressEvent extends Event {
  6. _lengthComputable : boolean = false;
  7. _loaded : number = -1;
  8. _total : numver = -1;
  9. constructor(lengthComputable, loaded, total) {
  10. super()
  11. this._lengthComputable = lengthComputable;
  12. this._loaded = loaded
  13. this._total = total
  14. }
  15. get lengthComputable() {
  16. return this._lengthComputable
  17. }
  18. get loaded() {
  19. return this._loaded
  20. }
  21. get total() {
  22. return this._total
  23. }
  24. }