@progress/kendo-pdfviewer-common 0.4.0-develop.1 → 0.4.1-develop.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/es/annotations/annotation-layer-builder.js +4 -3
- package/dist/es/annotations/annotation-layer.js +350 -353
- package/dist/es/annotations/editors/annotation-editor.js +4 -4
- package/dist/es/widget/page.js +1 -1
- package/dist/es2015/annotations/annotation-layer-builder.js +4 -3
- package/dist/es2015/annotations/annotation-layer.js +350 -353
- package/dist/es2015/annotations/editors/annotation-editor.js +4 -4
- package/dist/es2015/widget/page.js +1 -1
- package/dist/npm/annotations/annotation-layer-builder.d.ts +3 -1
- package/dist/npm/annotations/annotation-layer-builder.js +4 -3
- package/dist/npm/annotations/annotation-layer.js +350 -353
- package/dist/npm/annotations/editors/annotation-editor.js +4 -4
- package/dist/npm/widget/page.js +1 -1
- package/package.json +3 -12
|
@@ -1377,18 +1377,18 @@ export class AnnotationEditor {
|
|
|
1377
1377
|
*/
|
|
1378
1378
|
renderAnnotationElement(annotation) {
|
|
1379
1379
|
let content = annotation.container.querySelector(".annotationContent") ||
|
|
1380
|
-
annotation.container.querySelector(".k-annotation-content
|
|
1380
|
+
annotation.container.querySelector(".k-annotation-content");
|
|
1381
1381
|
if (!content) {
|
|
1382
1382
|
content = document.createElement("div");
|
|
1383
1383
|
// content.classList.add("annotationContent", this.editorType);
|
|
1384
|
-
content.classList.add("k-annotation-content
|
|
1384
|
+
content.classList.add("k-annotation-content", this.editorType);
|
|
1385
1385
|
annotation.container.prepend(content);
|
|
1386
1386
|
}
|
|
1387
1387
|
else if (content.nodeName === "CANVAS") {
|
|
1388
1388
|
const canvas = content;
|
|
1389
1389
|
content = document.createElement("div");
|
|
1390
1390
|
// content.classList.add("annotationContent", this.editorType);
|
|
1391
|
-
content.classList.add("k-annotation-content
|
|
1391
|
+
content.classList.add("k-annotation-content", this.editorType);
|
|
1392
1392
|
canvas.before(content);
|
|
1393
1393
|
}
|
|
1394
1394
|
return content;
|
|
@@ -1397,7 +1397,7 @@ export class AnnotationEditor {
|
|
|
1397
1397
|
const { firstChild } = annotation.container;
|
|
1398
1398
|
if (firstChild.nodeName === "DIV" &&
|
|
1399
1399
|
(firstChild.classList.contains("annotationContent") ||
|
|
1400
|
-
firstChild.classList.contains("k-annotation-content
|
|
1400
|
+
firstChild.classList.contains("k-annotation-content"))) {
|
|
1401
1401
|
firstChild.remove();
|
|
1402
1402
|
}
|
|
1403
1403
|
}
|
package/dist/es/widget/page.js
CHANGED
|
@@ -464,7 +464,7 @@ export class Page extends Component {
|
|
|
464
464
|
eventBus: this.eventBus || this.pdfViewer.eventBus,
|
|
465
465
|
annotationStorage,
|
|
466
466
|
// imageResourcesPath: this.imageResourcesPath,
|
|
467
|
-
|
|
467
|
+
renderForms: __classPrivateFieldGet(this, _Page_annotationMode, "f") === AnnotationMode.ENABLE_FORMS,
|
|
468
468
|
linkService,
|
|
469
469
|
// downloadManager,
|
|
470
470
|
// enableScripting,
|
|
@@ -51,7 +51,7 @@ class AnnotationLayerBuilder {
|
|
|
51
51
|
// downloadManager,
|
|
52
52
|
annotationStorage = null,
|
|
53
53
|
// imageResourcesPath = "",
|
|
54
|
-
|
|
54
|
+
renderForms = true,
|
|
55
55
|
// enableScripting = false,
|
|
56
56
|
// hasJSActionsPromise = null,
|
|
57
57
|
// fieldObjectsPromise = null,
|
|
@@ -71,11 +71,12 @@ class AnnotationLayerBuilder {
|
|
|
71
71
|
// todo: props ported from pdf.js
|
|
72
72
|
_AnnotationLayerBuilder_onAppend.set(this, null);
|
|
73
73
|
_AnnotationLayerBuilder_eventAbortController.set(this, null);
|
|
74
|
+
this.renderForms = null;
|
|
74
75
|
this.pdfPage = pdfPage;
|
|
75
76
|
this.linkService = linkService;
|
|
76
77
|
// this.downloadManager = downloadManager;
|
|
77
78
|
// this.imageResourcesPath = imageResourcesPath;
|
|
78
|
-
|
|
79
|
+
this.renderForms = renderForms;
|
|
79
80
|
this.annotationStorage = annotationStorage;
|
|
80
81
|
// this.enableScripting = enableScripting;
|
|
81
82
|
// this._hasJSActionsPromise = hasJSActionsPromise || Promise.resolve(false);
|
|
@@ -152,7 +153,7 @@ class AnnotationLayerBuilder {
|
|
|
152
153
|
yield this.annotationLayer.render({
|
|
153
154
|
annotations,
|
|
154
155
|
// imageResourcesPath: this.imageResourcesPath,
|
|
155
|
-
|
|
156
|
+
renderForms: this.renderForms,
|
|
156
157
|
linkService: this.linkService
|
|
157
158
|
// downloadManager: this.downloadManager,
|
|
158
159
|
// annotationStorage: this.annotationStorage,
|