Skip to content

Commit e4b0533

Browse files
committed
Upgrade pdfjs-dist to 4.3.136
1 parent 89aedc5 commit e4b0533

File tree

11 files changed

+28534
-831
lines changed

11 files changed

+28534
-831
lines changed

.github/workflows/github-actions.yml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,10 @@ jobs:
2424
restore-keys: |
2525
${{ runner.os }}-node-
2626
27-
- name: install latest npm
28-
run: |
29-
npm install -g npm &&
30-
npm --version
27+
# - name: install latest npm
28+
# run: |
29+
# npm install -g npm &&
30+
# npm --version
3131

3232
- run: npm ci
3333
- run: npm run lint
@@ -51,10 +51,10 @@ jobs:
5151
restore-keys: |
5252
${{ runner.os }}-node-
5353
54-
- name: install latest npm
55-
run: |
56-
npm install -g npm &&
57-
npm --version
54+
# - name: install latest npm
55+
# run: |
56+
# npm install -g npm &&
57+
# npm --version
5858

5959
- run: npm ci
6060
- run: npm run coverage

frontend/DocumentEditor.vue

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -271,12 +271,12 @@ export default defineComponent({
271271
},
272272
zoomIn() {
273273
const viewer = this.viewer as PDFViewer;
274-
viewer.increaseScale({scaleFactor: 1.1});
274+
viewer.updateScale({scaleFactor: 1.1});
275275
this.currentZoom = viewer.currentScale.toString();
276276
},
277277
zoomOut() {
278278
const viewer = this.viewer as PDFViewer;
279-
viewer.decreaseScale({scaleFactor: 1.1});
279+
viewer.updateScale({scaleFactor: 0.9});
280280
this.currentZoom = viewer.currentScale.toString();
281281
},
282282
setScale(scale: string) {
@@ -298,7 +298,7 @@ export default defineComponent({
298298
this.highlightingColor = color;
299299
if (color) {
300300
this.startWatchingAnnotations();
301-
viewer.annotationEditorMode = AnnotationEditorType.INK;
301+
viewer.annotationEditorMode = {mode: AnnotationEditorType.INK};
302302
viewer.annotationEditorParams = {
303303
type: AnnotationEditorParamsType.INK_THICKNESS,
304304
value: 10,
@@ -313,7 +313,7 @@ export default defineComponent({
313313
};
314314
} else {
315315
this.stopWatchingAnnotations();
316-
viewer.annotationEditorMode = AnnotationEditorType.NONE;
316+
viewer.annotationEditorMode = {mode: AnnotationEditorType.NONE};
317317
}
318318
},
319319
setCommenting(color: string) {
@@ -322,7 +322,7 @@ export default defineComponent({
322322
this.commentingColor = color;
323323
if (color) {
324324
this.startWatchingAnnotations();
325-
viewer.annotationEditorMode = AnnotationEditorType.FREETEXT;
325+
viewer.annotationEditorMode = {mode: AnnotationEditorType.FREETEXT};
326326
viewer.annotationEditorParams = {
327327
type: AnnotationEditorParamsType.FREETEXT_SIZE,
328328
value: 10,
@@ -333,7 +333,7 @@ export default defineComponent({
333333
};
334334
} else {
335335
this.stopWatchingAnnotations();
336-
viewer.annotationEditorMode = AnnotationEditorType.NONE;
336+
viewer.annotationEditorMode = {mode: AnnotationEditorType.NONE};
337337
}
338338
},
339339
updateNeedsToBeSaved() {

osis_document/static/osis_document/osis-document-editor.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

osis_document/static/osis_document/osis-document-editor.umd.min.js

Lines changed: 290 additions & 11 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

osis_document/static/osis_document/osis-document-editor.umd.min.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

osis_document/static/osis_document/osis-document.umd.min.js

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

osis_document/static/osis_document/osis-document.umd.min.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

osis_document/static/pdfjs/pdf.worker.min.js

Lines changed: 1 addition & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)