@progress/kendo-pdfviewer-common 0.3.4-dev.202410281223 → 0.3.4-dev.202501060756
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-editor-layer-builder.js +1 -1
- package/dist/es/annotations/annotation-layer-builder.js +2 -1
- package/dist/es/annotations/annotation-layer.js +1 -1
- package/dist/es/annotations/editors/highlight-editor.js +5 -5
- package/dist/es2015/annotations/annotation-editor-layer-builder.js +1 -1
- package/dist/es2015/annotations/annotation-layer-builder.js +2 -1
- package/dist/es2015/annotations/annotation-layer.js +1 -1
- package/dist/es2015/annotations/editors/highlight-editor.js +5 -5
- package/dist/npm/annotations/annotation-editor-layer-builder.js +1 -1
- package/dist/npm/annotations/annotation-layer-builder.js +2 -1
- package/dist/npm/annotations/annotation-layer.js +1 -1
- package/dist/npm/annotations/editors/highlight-editor.js +5 -5
- package/package.json +1 -1
|
@@ -90,7 +90,7 @@ class AnnotationEditorLayerBuilder {
|
|
|
90
90
|
}
|
|
91
91
|
// Create an AnnotationEditor layer div
|
|
92
92
|
const div = (this.div = document.createElement("div"));
|
|
93
|
-
div.className = "k-annotation-editor-layer
|
|
93
|
+
div.className = "k-annotation-editor-layer";
|
|
94
94
|
div.hidden = true;
|
|
95
95
|
div.dir = __classPrivateFieldGet(this, _AnnotationEditorLayerBuilder_uiManager, "f").direction;
|
|
96
96
|
(_a = __classPrivateFieldGet(this, _AnnotationEditorLayerBuilder_onAppend, "f")) === null || _a === void 0 ? void 0 : _a.call(this, div);
|
|
@@ -136,7 +136,8 @@ class AnnotationLayerBuilder {
|
|
|
136
136
|
const pageWidthAnnotationLayer = (pageView[2] || 0) + "px";
|
|
137
137
|
const pageHeightAnnotationLayer = (pageView[3] || 0) + "px";
|
|
138
138
|
const div = convertToHtml(`
|
|
139
|
-
<div class="k-annotation-layer
|
|
139
|
+
<div class="k-annotation-layer"
|
|
140
|
+
data-main-rotation="0"
|
|
140
141
|
style="width: round(var(--scale-factor) * ${pageWidthAnnotationLayer}, 1px);
|
|
141
142
|
height: round(var(--scale-factor) * ${pageHeightAnnotationLayer}, 1px);">
|
|
142
143
|
</div>
|
|
@@ -692,7 +692,7 @@ class LinkAnnotationElement extends AnnotationElement {
|
|
|
692
692
|
}
|
|
693
693
|
// todo: do not render the class as the rendering is yet to be determined
|
|
694
694
|
// this.container.classList.add("linkAnnotation");
|
|
695
|
-
|
|
695
|
+
this.container.classList.add("k-link-annotation");
|
|
696
696
|
if (isBound) {
|
|
697
697
|
this.container.append(link);
|
|
698
698
|
}
|
|
@@ -43,7 +43,7 @@ class HighlightEditor extends AnnotationEditor {
|
|
|
43
43
|
// );
|
|
44
44
|
// }
|
|
45
45
|
constructor(params) {
|
|
46
|
-
super(Object.assign(Object.assign({}, params), { name: "k-highlight-editor
|
|
46
|
+
super(Object.assign(Object.assign({}, params), { name: "k-highlight-editor" }));
|
|
47
47
|
_HighlightEditor_instances.add(this);
|
|
48
48
|
// todo: props
|
|
49
49
|
this.color = "";
|
|
@@ -195,14 +195,14 @@ class HighlightEditor extends AnnotationEditor {
|
|
|
195
195
|
/** @inheritdoc */
|
|
196
196
|
disableEditing() {
|
|
197
197
|
super.disableEditing();
|
|
198
|
-
this.div.classList.toggle("disabled", true);
|
|
199
|
-
|
|
198
|
+
// this.div.classList.toggle("disabled", true);
|
|
199
|
+
this.div.classList.toggle("k-highlight-editor-disabled", true);
|
|
200
200
|
}
|
|
201
201
|
/** @inheritdoc */
|
|
202
202
|
enableEditing() {
|
|
203
203
|
super.enableEditing();
|
|
204
|
-
this.div.classList.toggle("disabled", false);
|
|
205
|
-
|
|
204
|
+
// this.div.classList.toggle("disabled", false);
|
|
205
|
+
this.div.classList.toggle("k-highlight-editor-disabled", false);
|
|
206
206
|
}
|
|
207
207
|
/** @inheritdoc */
|
|
208
208
|
fixAndSetPosition() {
|
|
@@ -90,7 +90,7 @@ class AnnotationEditorLayerBuilder {
|
|
|
90
90
|
}
|
|
91
91
|
// Create an AnnotationEditor layer div
|
|
92
92
|
const div = (this.div = document.createElement("div"));
|
|
93
|
-
div.className = "k-annotation-editor-layer
|
|
93
|
+
div.className = "k-annotation-editor-layer";
|
|
94
94
|
div.hidden = true;
|
|
95
95
|
div.dir = __classPrivateFieldGet(this, _AnnotationEditorLayerBuilder_uiManager, "f").direction;
|
|
96
96
|
(_a = __classPrivateFieldGet(this, _AnnotationEditorLayerBuilder_onAppend, "f")) === null || _a === void 0 ? void 0 : _a.call(this, div);
|
|
@@ -136,7 +136,8 @@ class AnnotationLayerBuilder {
|
|
|
136
136
|
const pageWidthAnnotationLayer = (pageView[2] || 0) + "px";
|
|
137
137
|
const pageHeightAnnotationLayer = (pageView[3] || 0) + "px";
|
|
138
138
|
const div = convertToHtml(`
|
|
139
|
-
<div class="k-annotation-layer
|
|
139
|
+
<div class="k-annotation-layer"
|
|
140
|
+
data-main-rotation="0"
|
|
140
141
|
style="width: round(var(--scale-factor) * ${pageWidthAnnotationLayer}, 1px);
|
|
141
142
|
height: round(var(--scale-factor) * ${pageHeightAnnotationLayer}, 1px);">
|
|
142
143
|
</div>
|
|
@@ -692,7 +692,7 @@ class LinkAnnotationElement extends AnnotationElement {
|
|
|
692
692
|
}
|
|
693
693
|
// todo: do not render the class as the rendering is yet to be determined
|
|
694
694
|
// this.container.classList.add("linkAnnotation");
|
|
695
|
-
|
|
695
|
+
this.container.classList.add("k-link-annotation");
|
|
696
696
|
if (isBound) {
|
|
697
697
|
this.container.append(link);
|
|
698
698
|
}
|
|
@@ -43,7 +43,7 @@ class HighlightEditor extends AnnotationEditor {
|
|
|
43
43
|
// );
|
|
44
44
|
// }
|
|
45
45
|
constructor(params) {
|
|
46
|
-
super(Object.assign(Object.assign({}, params), { name: "k-highlight-editor
|
|
46
|
+
super(Object.assign(Object.assign({}, params), { name: "k-highlight-editor" }));
|
|
47
47
|
_HighlightEditor_instances.add(this);
|
|
48
48
|
// todo: props
|
|
49
49
|
this.color = "";
|
|
@@ -195,14 +195,14 @@ class HighlightEditor extends AnnotationEditor {
|
|
|
195
195
|
/** @inheritdoc */
|
|
196
196
|
disableEditing() {
|
|
197
197
|
super.disableEditing();
|
|
198
|
-
this.div.classList.toggle("disabled", true);
|
|
199
|
-
|
|
198
|
+
// this.div.classList.toggle("disabled", true);
|
|
199
|
+
this.div.classList.toggle("k-highlight-editor-disabled", true);
|
|
200
200
|
}
|
|
201
201
|
/** @inheritdoc */
|
|
202
202
|
enableEditing() {
|
|
203
203
|
super.enableEditing();
|
|
204
|
-
this.div.classList.toggle("disabled", false);
|
|
205
|
-
|
|
204
|
+
// this.div.classList.toggle("disabled", false);
|
|
205
|
+
this.div.classList.toggle("k-highlight-editor-disabled", false);
|
|
206
206
|
}
|
|
207
207
|
/** @inheritdoc */
|
|
208
208
|
fixAndSetPosition() {
|
|
@@ -93,7 +93,7 @@ class AnnotationEditorLayerBuilder {
|
|
|
93
93
|
}
|
|
94
94
|
// Create an AnnotationEditor layer div
|
|
95
95
|
const div = (this.div = document.createElement("div"));
|
|
96
|
-
div.className = "k-annotation-editor-layer
|
|
96
|
+
div.className = "k-annotation-editor-layer";
|
|
97
97
|
div.hidden = true;
|
|
98
98
|
div.dir = tslib_1.__classPrivateFieldGet(this, _AnnotationEditorLayerBuilder_uiManager, "f").direction;
|
|
99
99
|
(_a = tslib_1.__classPrivateFieldGet(this, _AnnotationEditorLayerBuilder_onAppend, "f")) === null || _a === void 0 ? void 0 : _a.call(this, div);
|
|
@@ -139,7 +139,8 @@ class AnnotationLayerBuilder {
|
|
|
139
139
|
const pageWidthAnnotationLayer = (pageView[2] || 0) + "px";
|
|
140
140
|
const pageHeightAnnotationLayer = (pageView[3] || 0) + "px";
|
|
141
141
|
const div = (0, core_1.convertToHtml)(`
|
|
142
|
-
<div class="k-annotation-layer
|
|
142
|
+
<div class="k-annotation-layer"
|
|
143
|
+
data-main-rotation="0"
|
|
143
144
|
style="width: round(var(--scale-factor) * ${pageWidthAnnotationLayer}, 1px);
|
|
144
145
|
height: round(var(--scale-factor) * ${pageHeightAnnotationLayer}, 1px);">
|
|
145
146
|
</div>
|
|
@@ -695,7 +695,7 @@ class LinkAnnotationElement extends AnnotationElement {
|
|
|
695
695
|
}
|
|
696
696
|
// todo: do not render the class as the rendering is yet to be determined
|
|
697
697
|
// this.container.classList.add("linkAnnotation");
|
|
698
|
-
|
|
698
|
+
this.container.classList.add("k-link-annotation");
|
|
699
699
|
if (isBound) {
|
|
700
700
|
this.container.append(link);
|
|
701
701
|
}
|
|
@@ -43,7 +43,7 @@ class HighlightEditor extends annotation_editor_1.AnnotationEditor {
|
|
|
43
43
|
// );
|
|
44
44
|
// }
|
|
45
45
|
constructor(params) {
|
|
46
|
-
super(Object.assign(Object.assign({}, params), { name: "k-highlight-editor
|
|
46
|
+
super(Object.assign(Object.assign({}, params), { name: "k-highlight-editor" }));
|
|
47
47
|
_HighlightEditor_instances.add(this);
|
|
48
48
|
// todo: props
|
|
49
49
|
this.color = "";
|
|
@@ -195,14 +195,14 @@ class HighlightEditor extends annotation_editor_1.AnnotationEditor {
|
|
|
195
195
|
/** @inheritdoc */
|
|
196
196
|
disableEditing() {
|
|
197
197
|
super.disableEditing();
|
|
198
|
-
this.div.classList.toggle("disabled", true);
|
|
199
|
-
|
|
198
|
+
// this.div.classList.toggle("disabled", true);
|
|
199
|
+
this.div.classList.toggle("k-highlight-editor-disabled", true);
|
|
200
200
|
}
|
|
201
201
|
/** @inheritdoc */
|
|
202
202
|
enableEditing() {
|
|
203
203
|
super.enableEditing();
|
|
204
|
-
this.div.classList.toggle("disabled", false);
|
|
205
|
-
|
|
204
|
+
// this.div.classList.toggle("disabled", false);
|
|
205
|
+
this.div.classList.toggle("k-highlight-editor-disabled", false);
|
|
206
206
|
}
|
|
207
207
|
/** @inheritdoc */
|
|
208
208
|
fixAndSetPosition() {
|
package/package.json
CHANGED