Skip to content

Commit

Permalink
browser: slideshow: fix prettier warnings
Browse files Browse the repository at this point in the history
.
Change-Id: Id87027caa8627c6d188c3ff699d4cc0b95ae17f6
Signed-off-by: Henry Castro <[email protected]>
  • Loading branch information
hcvcastro committed Oct 21, 2024
1 parent f8866be commit 1c5b93a
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 9 deletions.
12 changes: 7 additions & 5 deletions browser/src/slideshow/PresenterConsole.js
Original file line number Diff line number Diff line change
Expand Up @@ -100,8 +100,11 @@ class PresenterConsole {
);
this._proxyPresenter.document.close();

this._currentSlideCanvas = this._proxyPresenter.document.querySelector('#current-presentation');
this._currentSlideContext = this._currentSlideCanvas.getContext('bitmaprenderer');
this._currentSlideCanvas = this._proxyPresenter.document.querySelector(
'#current-presentation',
);
this._currentSlideContext =
this._currentSlideCanvas.getContext('bitmaprenderer');

this._proxyPresenter.addEventListener(
'resize',
Expand Down Expand Up @@ -342,9 +345,8 @@ class PresenterConsole {

_onNextFrame(e) {
const bitmap = e.frame;
if (!bitmap)
return;
createImageBitmap(bitmap).then((image)=> {
if (!bitmap) return;
createImageBitmap(bitmap).then((image) => {
this._currentSlideContext.transferFromImageBitmap(image);
});
}
Expand Down
2 changes: 1 addition & 1 deletion browser/src/slideshow/SlideRenderer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -362,7 +362,7 @@ class SlideRendererGl extends SlideRenderer {
this._renderedSlideIndex,
);
app.map.fire('newslideshowframe', {
frame: slideImage
frame: slideImage,
});
this.updateTexture(this._slideTexture, slideImage);
return this._slideTexture;
Expand Down
2 changes: 1 addition & 1 deletion browser/src/slideshow/Transition2d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ class Transition2d extends TransitionBase {
gl.drawArrays(gl.TRIANGLE_STRIP, 0, 4);

app.map.fire('newslideshowframe', {
frame: gl.canvas
frame: gl.canvas,
});
}
}
Expand Down
2 changes: 1 addition & 1 deletion browser/src/slideshow/Transition3d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -261,7 +261,7 @@ class Transition3d extends TransitionBase {
this.gl.drawArrays(this.gl.TRIANGLE_STRIP, 0, 4);

app.map.fire('newslideshowframe', {
frame: this.gl.canvas
frame: this.gl.canvas,
});
}

Expand Down
2 changes: 1 addition & 1 deletion browser/src/slideshow/transition3d/SimpleTransition.ts
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@ class SimpleTransition extends SlideShow.Transition3d {
this.gl.bindVertexArray(null);

app.map.fire('newslideshowframe', {
frame: this.gl.canvas
frame: this.gl.canvas,
});
}

Expand Down

0 comments on commit 1c5b93a

Please sign in to comment.