Skip to content

Commit

Permalink
chore(playground): bump pdf-viewer v0.1.1 (#9020)
Browse files Browse the repository at this point in the history
  • Loading branch information
fundon committed Dec 19, 2024
1 parent c64d99f commit e6706fb
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion packages/playground/apps/_common/components/pdf/worker.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down
2 changes: 1 addition & 1 deletion packages/playground/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
4 changes: 2 additions & 2 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -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:
Expand Down

0 comments on commit e6706fb

Please sign in to comment.