mirror of
https://github.com/bookorbit/bookorbit.git
synced 2026-11-03 00:11:37 -06:00
chore(deps): update minor and patch dependencies
Bump every direct dependency to its newest same-major release, moving the embedpdf patches and packageExtensions to 2.15.1 and deduping the lockfile. Hold jsdom at 30.0 because 30.1 breaks vitest's URL.createObjectURL shim, and skip releases still inside pnpm's minimum release age.
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
diff --git a/dist/index.js b/dist/index.js
|
||||
index f33d50ed18a00f00cba6b102f5e7ab18f141364e..bb9085c18a295b7ac1e621423e94652803a647fc 100644
|
||||
--- a/dist/index.js
|
||||
+++ b/dist/index.js
|
||||
@@ -609,6 +609,10 @@ const _ZoomPlugin = class _ZoomPlugin extends BasePlugin {
|
||||
recalcAuto(documentId, focus) {
|
||||
const docState = this.getDocumentState(documentId);
|
||||
if (!docState) return;
|
||||
+ if (typeof docState.zoomLevel === "number") {
|
||||
+ if (this.viewport.hasGate("zoom", documentId)) this.handleRequest({ level: docState.zoomLevel, focus }, documentId);
|
||||
+ return;
|
||||
+ }
|
||||
if (docState.zoomLevel === ZoomMode.Automatic || docState.zoomLevel === ZoomMode.FitPage || docState.zoomLevel === ZoomMode.FitWidth) {
|
||||
this.handleRequest({ level: docState.zoomLevel, focus }, documentId);
|
||||
}
|
||||
Reference in New Issue
Block a user