Skip to content

Commit

Permalink
Update FastImageSequence.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
reindernijhoff authored May 28, 2024
1 parent 6daf87a commit 9daa5b1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/FastImageSequence.ts
Original file line number Diff line number Diff line change
Expand Up @@ -493,7 +493,7 @@ export class FastImageSequence {

private logDebugStatus(output: HTMLDivElement) {
const formatPercentage = (n: number) => `${Math.abs(n * 100).toFixed(1).padStart(5, ' ')}%`;
let debugInfo = `${this.options.name} - frames: ${this.frames.length}, wrap: ${this.options.loop}, objectFit: ${this.options.objectFit}\n loadProgress ${formatPercentage(this.loadProgress)}, last frame drawn ${this.lastFrameDrawn}/${this.index}\n`;
let debugInfo = `${this.options.name} - frames: ${this.frames.length}, loop: ${this.options.loop}, objectFit: ${this.options.objectFit}\n loadProgress ${formatPercentage(this.loadProgress)}, last frame drawn ${this.lastFrameDrawn}/${this.index}\n`;

for (const source of this.sources) {
const {progress, numLoading, numLoaded, maxLoaded} = source.getLoadStatus();
Expand Down

0 comments on commit 9daa5b1

Please sign in to comment.