/* This Source Code Form is subject to the terms of the Mozilla Public *License,v.2.0.IfacopyoftheMPLwasnotdistributedwiththis
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
onProgressForWalker(walker, progress) { this.combinedProgress.set(walker, progress); // We did not get all initial progress events from all frames, do not // relay them to the client until we can calculate combined total below. if (this.combinedProgress.size < this.totalFrames) { return;
}
let combinedTotal = 0;
let combinedCompleted = 0;
for (const { completed, total } of this.combinedProgress.values()) {
combinedTotal += total;
combinedCompleted += completed;
} this.onProgress({
total: combinedTotal,
percentage: Math.round((combinedCompleted / combinedTotal) * 100),
});
}
}
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.