From e6706fbf05d64680a2ba0897d97f66d9d1fb0019 Mon Sep 17 00:00:00 2001 From: fundon Date: Thu, 19 Dec 2024 04:31:02 +0000 Subject: [PATCH] chore(playground): bump pdf-viewer v0.1.1 (#9020) --- packages/playground/apps/_common/components/pdf/worker.ts | 2 +- packages/playground/package.json | 2 +- yarn.lock | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/packages/playground/apps/_common/components/pdf/worker.ts b/packages/playground/apps/_common/components/pdf/worker.ts index daaa292fc1a1..64337799220a 100644 --- a/packages/playground/apps/_common/components/pdf/worker.ts +++ b/packages/playground/apps/_common/components/pdf/worker.ts @@ -37,7 +37,7 @@ function renderToImageData(index: number, scale: number) { page.render(bitmap, 0, 0, width, height, 0, flags); // @ts-ignore - const data = new Uint8ClampedArray(bitmap.toBytes()); + const data = new Uint8ClampedArray(bitmap.toUint8Array()); bitmap.close(); page.close(); diff --git a/packages/playground/package.json b/packages/playground/package.json index 96acc00b6514..c463d24f96fe 100644 --- a/packages/playground/package.json +++ b/packages/playground/package.json @@ -23,7 +23,7 @@ "@blocksuite/sync": "workspace:*", "@preact/signals-core": "^1.8.0", "@shoelace-style/shoelace": "2.19.0", - "@toeverything/pdf-viewer": "^0.1.0", + "@toeverything/pdf-viewer": "^0.1.1", "@toeverything/y-indexeddb": "0.10.0-canary.9", "@types/katex": "^0.16.7", "browser-fs-access": "^0.35.0", diff --git a/yarn.lock b/yarn.lock index 8dc13ec51be8..46fe984bcb08 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1824,7 +1824,7 @@ __metadata: "@blocksuite/sync": "workspace:*" "@preact/signals-core": "npm:^1.8.0" "@shoelace-style/shoelace": "npm:2.19.0" - "@toeverything/pdf-viewer": "npm:^0.1.0" + "@toeverything/pdf-viewer": "npm:^0.1.1" "@toeverything/y-indexeddb": "npm:0.10.0-canary.9" "@tweakpane/core": "npm:^2.0.4" "@types/katex": "npm:^0.16.7" @@ -4546,7 +4546,7 @@ __metadata: languageName: node linkType: hard -"@toeverything/pdf-viewer@npm:^0.1.0": +"@toeverything/pdf-viewer@npm:^0.1.1": version: 0.1.1 resolution: "@toeverything/pdf-viewer@npm:0.1.1" dependencies: