mirror of
https://github.com/zen-browser/pdf.js.git
synced 2025-07-08 09:20:06 +02:00
Account for formatting changes in Prettier version 2.3.0
With the exception of one tweaked `eslint-disable` comment, in `web/generic_scripting.js`, this patch was generated automatically using `gulp lint --fix`. Please find additional information at: - https://github.com/prettier/prettier/releases/tag/2.3.0 - https://prettier.io/blog/2021/05/09/2.3.0.html
This commit is contained in:
parent
30908451b4
commit
8943bcd3c3
28 changed files with 127 additions and 192 deletions
|
@ -313,9 +313,8 @@ class PDFThumbnailView {
|
|||
// the `draw` and `setImage` methods (fixes issue 8233).
|
||||
// NOTE: To primarily avoid increasing memory usage too much, but also to
|
||||
// reduce downsizing overhead, we purposely limit the up-scaling factor.
|
||||
const { ctx, canvas, transform } = this._getPageDrawContext(
|
||||
DRAW_UPSCALE_FACTOR
|
||||
);
|
||||
const { ctx, canvas, transform } =
|
||||
this._getPageDrawContext(DRAW_UPSCALE_FACTOR);
|
||||
const drawViewport = this.viewport.clone({
|
||||
scale: DRAW_UPSCALE_FACTOR * this.scale,
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue