Skip to content

Commit

Permalink
Merge pull request #111 from TaTo30/update-pdfjs-dist
Browse files Browse the repository at this point in the history
Update pdfjs-dist to 4.2.67
  • Loading branch information
TaTo30 authored May 26, 2024
2 parents 61b5651 + ac913c6 commit 02ad0b3
Show file tree
Hide file tree
Showing 6 changed files with 28 additions and 15 deletions.
24 changes: 12 additions & 12 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@
"vue": "^3.2.33"
},
"dependencies": {
"pdfjs-dist": "3.11.174"
"pdfjs-dist": "4.2.67"
},
"devDependencies": {
"@antfu/eslint-config": "^0.38.5",
Expand Down
2 changes: 1 addition & 1 deletion src/components/layers/AnnotationLayer.vue
Original file line number Diff line number Diff line change
Expand Up @@ -98,9 +98,9 @@ async function render() {
accessibilityManager: undefined,
annotationCanvasMap: canvasMap,
div: layer.value!,
l10n: null,
page: page!,
viewport: viewport!.clone({ dontFlip: true }),
annotationEditorUIManager: null,
}
const renderParameters: AnnotationLayerParameters = {
Expand Down
1 change: 0 additions & 1 deletion src/components/layers/TextLayer.vue
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,6 @@ function render() {
textContentSource: textStream!,
viewport: viewport!,
container: layer.value!,
isOffscreenCanvasSupported: true,
textDivs,
textDivProperties: new WeakMap(),
}
Expand Down
7 changes: 7 additions & 0 deletions vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,13 @@ export default defineConfig({
headless: true,
},
},
optimizeDeps: {
esbuildOptions: {
supported: {
'top-level-await': true,
},
},
},
build: {
lib: {
entry: resolve(__dirname, './src/index.ts'),
Expand Down
7 changes: 7 additions & 0 deletions vite.playground.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,13 @@ import vue from '@vitejs/plugin-vue'
import { defineConfig } from 'vite'

export default defineConfig({
optimizeDeps: {
esbuildOptions: {
supported: {
'top-level-await': true,
},
},
},
plugins: [
vue(),
],
Expand Down

0 comments on commit 02ad0b3

Please sign in to comment.