@libresign/pdf-elements 0.1.0 → 0.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/pdf-elements.common.js +196 -4
- package/dist/pdf-elements.common.js.map +1 -1
- package/dist/pdf-elements.umd.js +196 -4
- package/dist/pdf-elements.umd.js.map +1 -1
- package/dist/pdf-elements.umd.min.js +1 -22
- package/dist/pdf-elements.umd.min.js.map +1 -1
- package/package.json +2 -2
- package/src/utils/asyncReader.js +2 -2
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@libresign/pdf-elements",
|
|
3
3
|
"description": "PDF viewer with draggable and resizable element overlays for Vue 2",
|
|
4
|
-
"version": "0.1.
|
|
4
|
+
"version": "0.1.1",
|
|
5
5
|
"author": "LibreCode <contact@librecode.coop>",
|
|
6
6
|
"private": false,
|
|
7
7
|
"main": "dist/pdf-elements.umd.js",
|
|
@@ -44,7 +44,7 @@
|
|
|
44
44
|
"@vue/cli-plugin-eslint": "^5.0.9",
|
|
45
45
|
"@vue/cli-service": "^5.0.9",
|
|
46
46
|
"eslint": "^8.57.1",
|
|
47
|
-
"eslint-plugin-vue": "^
|
|
47
|
+
"eslint-plugin-vue": "^9.24.0",
|
|
48
48
|
"postcss": "^8.5.6",
|
|
49
49
|
"vue-template-compiler": "^2.7.16"
|
|
50
50
|
},
|
package/src/utils/asyncReader.js
CHANGED
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
// SPDX-License-Identifier: AGPL-3.0-or-later
|
|
3
3
|
|
|
4
4
|
import { getDocument, GlobalWorkerOptions } from 'pdfjs-dist'
|
|
5
|
-
import pdfWorkerCode from 'pdfjs-dist/build/pdf.worker.min.mjs'
|
|
6
5
|
|
|
7
|
-
|
|
6
|
+
const workerUrl = new URL('pdfjs-dist/build/pdf.worker.min.mjs', import.meta.url).href
|
|
7
|
+
GlobalWorkerOptions.workerSrc = workerUrl
|
|
8
8
|
|
|
9
9
|
export function readAsArrayBuffer(file) {
|
|
10
10
|
return new Promise((resolve, reject) => {
|