@progress/kendo-pdfviewer-common 0.3.0-dev.202409251459 → 0.3.0-dev.202410100645
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 +139 -0
- package/dist/es/annotations/annotation-editor-layer.js +780 -0
- package/dist/es/annotations/annotation-editor-ui-manager.js +1690 -0
- package/dist/es/annotations/annotation-layer-builder.js +217 -0
- package/dist/es/annotations/annotation-layer.js +2793 -0
- package/dist/es/annotations/draw-layer-builder.js +65 -0
- package/dist/es/annotations/draw-layer.js +220 -0
- package/dist/es/annotations/editors/annotation-editor.js +1519 -0
- package/dist/es/annotations/editors/free-text-editor.js +783 -0
- package/dist/es/annotations/editors/highlight-editor.js +717 -0
- package/dist/es/annotations/editors/outliner.js +747 -0
- package/dist/es/annotations/helpers/annotation-storage.js +294 -0
- package/dist/es/annotations/helpers/color-manager.js +72 -0
- package/dist/es/annotations/helpers/command-manager.js +133 -0
- package/dist/es/annotations/helpers/id-manager.js +34 -0
- package/dist/es/annotations/helpers/image-manager.js +176 -0
- package/dist/es/annotations/helpers/text-accessibility-manager.js +212 -0
- package/dist/es/annotations/helpers/tools.js +19 -0
- package/dist/es/annotations/shared/display_utils.js +1024 -0
- package/dist/es/annotations/shared/event_utils.js +213 -0
- package/dist/es/annotations/shared/murmurhash3.js +126 -0
- package/dist/es/annotations/shared/scripting_utils.js +90 -0
- package/dist/es/annotations/shared/ui_utils.js +823 -0
- package/dist/es/annotations/shared/utils.js +909 -0
- package/dist/es/common/component.js +33 -0
- package/dist/es/common/core.js +91 -0
- package/dist/es/common/dom.js +11 -0
- package/dist/es/common/main.js +4 -0
- package/dist/es/common/math.js +1 -0
- package/dist/es/enums/PdfViewerInteractionMode.js +6 -0
- package/dist/es/links/link-service.js +505 -0
- package/dist/es/main.js +2 -0
- package/dist/es/scroller.js +29 -30
- package/dist/es/text/text-layer-builder.js +288 -0
- package/dist/es/utils.js +5 -5
- package/dist/es/widget/page.js +762 -0
- package/dist/es/widget/pdfviewer.js +1659 -0
- package/dist/es2015/annotations/annotation-editor-layer-builder.js +139 -0
- package/dist/es2015/annotations/annotation-editor-layer.js +780 -0
- package/dist/es2015/annotations/annotation-editor-ui-manager.js +1690 -0
- package/dist/es2015/annotations/annotation-layer-builder.js +217 -0
- package/dist/es2015/annotations/annotation-layer.js +2793 -0
- package/dist/es2015/annotations/draw-layer-builder.js +65 -0
- package/dist/es2015/annotations/draw-layer.js +220 -0
- package/dist/es2015/annotations/editors/annotation-editor.js +1519 -0
- package/dist/es2015/annotations/editors/free-text-editor.js +783 -0
- package/dist/es2015/annotations/editors/highlight-editor.js +717 -0
- package/dist/es2015/annotations/editors/outliner.js +747 -0
- package/dist/es2015/annotations/helpers/annotation-storage.js +294 -0
- package/dist/es2015/annotations/helpers/color-manager.js +72 -0
- package/dist/es2015/annotations/helpers/command-manager.js +133 -0
- package/dist/es2015/annotations/helpers/id-manager.js +34 -0
- package/dist/es2015/annotations/helpers/image-manager.js +176 -0
- package/dist/es2015/annotations/helpers/text-accessibility-manager.js +212 -0
- package/dist/es2015/annotations/helpers/tools.js +19 -0
- package/dist/es2015/annotations/shared/display_utils.js +1024 -0
- package/dist/es2015/annotations/shared/event_utils.js +213 -0
- package/dist/es2015/annotations/shared/murmurhash3.js +126 -0
- package/dist/es2015/annotations/shared/scripting_utils.js +90 -0
- package/dist/es2015/annotations/shared/ui_utils.js +823 -0
- package/dist/es2015/annotations/shared/utils.js +909 -0
- package/dist/es2015/common/component.js +33 -0
- package/dist/es2015/common/core.js +91 -0
- package/dist/es2015/common/dom.js +11 -0
- package/dist/es2015/common/main.js +4 -0
- package/dist/es2015/common/math.js +1 -0
- package/dist/es2015/enums/PdfViewerInteractionMode.js +6 -0
- package/dist/es2015/links/link-service.js +505 -0
- package/dist/es2015/main.js +2 -0
- package/dist/es2015/scroller.js +29 -30
- package/dist/es2015/text/text-layer-builder.js +288 -0
- package/dist/es2015/utils.js +5 -5
- package/dist/es2015/widget/page.js +762 -0
- package/dist/es2015/widget/pdfviewer.js +1659 -0
- package/dist/npm/annotations/annotation-editor-layer-builder.d.ts +39 -0
- package/dist/npm/annotations/annotation-editor-layer-builder.js +142 -0
- package/dist/npm/annotations/annotation-editor-layer.d.ts +196 -0
- package/dist/npm/annotations/annotation-editor-layer.js +783 -0
- package/dist/npm/annotations/annotation-editor-ui-manager.d.ts +281 -0
- package/dist/npm/annotations/annotation-editor-ui-manager.js +1694 -0
- package/dist/npm/annotations/annotation-layer-builder.d.ts +58 -0
- package/dist/npm/annotations/annotation-layer-builder.js +220 -0
- package/dist/npm/annotations/annotation-layer.d.ts +134 -0
- package/dist/npm/annotations/annotation-layer.js +2794 -0
- package/dist/npm/annotations/draw-layer-builder.d.ts +21 -0
- package/dist/npm/annotations/draw-layer-builder.js +68 -0
- package/dist/npm/annotations/draw-layer.d.ts +33 -0
- package/dist/npm/annotations/draw-layer.js +223 -0
- package/dist/npm/annotations/editors/annotation-editor.d.ts +349 -0
- package/dist/npm/annotations/editors/annotation-editor.js +1523 -0
- package/dist/npm/annotations/editors/free-text-editor.d.ts +108 -0
- package/dist/npm/annotations/editors/free-text-editor.js +786 -0
- package/dist/npm/annotations/editors/highlight-editor.d.ts +114 -0
- package/dist/npm/annotations/editors/highlight-editor.js +717 -0
- package/dist/npm/annotations/editors/outliner.d.ts +51 -0
- package/dist/npm/annotations/editors/outliner.js +750 -0
- package/dist/npm/annotations/helpers/annotation-storage.d.ts +98 -0
- package/dist/npm/annotations/helpers/annotation-storage.js +299 -0
- package/dist/npm/annotations/helpers/color-manager.d.ts +6 -0
- package/dist/npm/annotations/helpers/color-manager.js +76 -0
- package/dist/npm/annotations/helpers/command-manager.d.ts +42 -0
- package/dist/npm/annotations/helpers/command-manager.js +137 -0
- package/dist/npm/annotations/helpers/id-manager.d.ts +6 -0
- package/dist/npm/annotations/helpers/id-manager.js +38 -0
- package/dist/npm/annotations/helpers/image-manager.d.ts +18 -0
- package/dist/npm/annotations/helpers/image-manager.js +180 -0
- package/dist/npm/annotations/helpers/text-accessibility-manager.d.ts +36 -0
- package/dist/npm/annotations/helpers/text-accessibility-manager.js +215 -0
- package/dist/npm/annotations/helpers/tools.d.ts +1 -0
- package/dist/npm/annotations/helpers/tools.js +23 -0
- package/dist/npm/annotations/shared/display_utils.d.ts +6 -0
- package/dist/npm/annotations/shared/display_utils.js +1030 -0
- package/dist/npm/annotations/shared/event_utils.d.ts +33 -0
- package/dist/npm/annotations/shared/event_utils.js +165 -0
- package/dist/npm/annotations/shared/murmurhash3.d.ts +8 -0
- package/dist/npm/annotations/shared/murmurhash3.js +129 -0
- package/dist/npm/annotations/shared/scripting_utils.d.ts +17 -0
- package/dist/npm/annotations/shared/scripting_utils.js +93 -0
- package/dist/npm/annotations/shared/ui_utils.d.ts +54 -0
- package/dist/npm/annotations/shared/ui_utils.js +250 -0
- package/dist/npm/annotations/shared/utils.d.ts +148 -0
- package/dist/npm/annotations/shared/utils.js +872 -0
- package/dist/npm/common/component.d.ts +9 -0
- package/dist/npm/common/component.js +37 -0
- package/dist/npm/common/core.d.ts +18 -0
- package/dist/npm/common/core.js +112 -0
- package/dist/npm/common/dom.d.ts +3 -0
- package/dist/npm/common/dom.js +17 -0
- package/dist/npm/common/main.d.ts +4 -0
- package/dist/npm/common/main.js +7 -0
- package/dist/npm/common/math.d.ts +1 -0
- package/dist/npm/common/math.js +5 -0
- package/dist/npm/enums/PdfViewerInteractionMode.d.ts +4 -0
- package/dist/npm/enums/PdfViewerInteractionMode.js +9 -0
- package/dist/npm/links/link-service.d.ts +116 -0
- package/dist/npm/links/link-service.js +501 -0
- package/dist/npm/main.d.ts +2 -0
- package/dist/npm/main.js +2 -0
- package/dist/npm/scroller.d.ts +7 -3
- package/dist/npm/scroller.js +32 -32
- package/dist/npm/text/text-layer-builder.d.ts +30 -0
- package/dist/npm/text/text-layer-builder.js +291 -0
- package/dist/npm/utils.d.ts +20 -2
- package/dist/npm/utils.js +11 -8
- package/dist/npm/widget/page.d.ts +75 -0
- package/dist/npm/widget/page.js +763 -0
- package/dist/npm/widget/pdfviewer.d.ts +222 -0
- package/dist/npm/widget/pdfviewer.js +1663 -0
- package/package.json +13 -9
|
@@ -0,0 +1,281 @@
|
|
|
1
|
+
import { PdfViewer } from "../main";
|
|
2
|
+
export declare class AnnotationEditorUIManager {
|
|
3
|
+
#private;
|
|
4
|
+
pdfViewer: PdfViewer;
|
|
5
|
+
annotationEditorMode: number;
|
|
6
|
+
viewParameters: {};
|
|
7
|
+
_signal: AbortSignal;
|
|
8
|
+
isShiftKeyDown: boolean;
|
|
9
|
+
_eventBus: any;
|
|
10
|
+
static TRANSLATE_SMALL: number;
|
|
11
|
+
static TRANSLATE_BIG: number;
|
|
12
|
+
constructor({ container, viewer, pdfViewer, eventBus, pdfDocument, highlightColors, }: {
|
|
13
|
+
container?: any;
|
|
14
|
+
viewer: any;
|
|
15
|
+
pdfViewer: any;
|
|
16
|
+
eventBus: any;
|
|
17
|
+
pdfDocument: any;
|
|
18
|
+
highlightColors?: string;
|
|
19
|
+
});
|
|
20
|
+
destroy(): void;
|
|
21
|
+
getTextLayerForAnchor(anchorElement: any): any;
|
|
22
|
+
combinedSignal(abortSignal: any): any;
|
|
23
|
+
get direction(): any;
|
|
24
|
+
get highlightColors(): any;
|
|
25
|
+
get highlightColorNames(): any;
|
|
26
|
+
switchToMode(mode: any, callback: any): void;
|
|
27
|
+
setPreference(name: any, value: any): void;
|
|
28
|
+
onSetPreference({ name }: {
|
|
29
|
+
name: any;
|
|
30
|
+
}): void;
|
|
31
|
+
onPageChanging({ pageNumber }: {
|
|
32
|
+
pageNumber: any;
|
|
33
|
+
}): void;
|
|
34
|
+
focusMainContainer(): void;
|
|
35
|
+
findParent(x: any, y: any): any;
|
|
36
|
+
disableUserSelect(value?: boolean): void;
|
|
37
|
+
addShouldRescale(editor: any): void;
|
|
38
|
+
removeShouldRescale(editor: any): void;
|
|
39
|
+
onScaleChanging({ scale }: {
|
|
40
|
+
scale: any;
|
|
41
|
+
}): void;
|
|
42
|
+
onRotationChanging({ pagesRotation }: {
|
|
43
|
+
pagesRotation: any;
|
|
44
|
+
}): void;
|
|
45
|
+
highlightSelection(methodOfCreation?: string): void;
|
|
46
|
+
showEditorToolBar(anchor: any): void;
|
|
47
|
+
hideEditorToolBar(): void;
|
|
48
|
+
/**
|
|
49
|
+
* Add an editor in the annotation storage.
|
|
50
|
+
* @param {AnnotationEditor} editor
|
|
51
|
+
*/
|
|
52
|
+
addToAnnotationStorage(editor: any): void;
|
|
53
|
+
blur(): void;
|
|
54
|
+
focus(): void;
|
|
55
|
+
addEditListeners(): void;
|
|
56
|
+
removeEditListeners(): void;
|
|
57
|
+
dragOver(event: any): void;
|
|
58
|
+
/**
|
|
59
|
+
* Drop callback.
|
|
60
|
+
* @param {DragEvent} event
|
|
61
|
+
*/
|
|
62
|
+
drop(event: any): void;
|
|
63
|
+
/**
|
|
64
|
+
* Copy callback.
|
|
65
|
+
* @param {ClipboardEvent} event
|
|
66
|
+
*/
|
|
67
|
+
copy(event: any): void;
|
|
68
|
+
/**
|
|
69
|
+
* Cut callback.
|
|
70
|
+
* @param {ClipboardEvent} event
|
|
71
|
+
*/
|
|
72
|
+
cut(event: any): void;
|
|
73
|
+
/**
|
|
74
|
+
* Paste callback.
|
|
75
|
+
* @param {ClipboardEvent} event
|
|
76
|
+
*/
|
|
77
|
+
paste(event: any): void;
|
|
78
|
+
/**
|
|
79
|
+
* Execute an action for a given name.
|
|
80
|
+
* For example, the user can click on the "Undo" entry in the context menu
|
|
81
|
+
* and it'll trigger the undo action.
|
|
82
|
+
*/
|
|
83
|
+
onEditingAction({ name }: {
|
|
84
|
+
name: any;
|
|
85
|
+
}): void;
|
|
86
|
+
/**
|
|
87
|
+
* Set the editing state.
|
|
88
|
+
* It can be useful to temporarily disable it when the user is editing a
|
|
89
|
+
* FreeText annotation.
|
|
90
|
+
* @param {boolean} isEditing
|
|
91
|
+
*/
|
|
92
|
+
setEditingState(isEditing: any): void;
|
|
93
|
+
registerEditorTypes(types: any): void;
|
|
94
|
+
/**
|
|
95
|
+
* Get an id.
|
|
96
|
+
* @returns {string}
|
|
97
|
+
*/
|
|
98
|
+
getId(): string;
|
|
99
|
+
get currentLayer(): any;
|
|
100
|
+
getLayer(pageIndex: any): any;
|
|
101
|
+
get currentPageIndex(): number;
|
|
102
|
+
/**
|
|
103
|
+
* Add a new layer for a page which will contains the editors.
|
|
104
|
+
* @param {AnnotationEditorLayer} layer
|
|
105
|
+
*/
|
|
106
|
+
addLayer(layer: any): void;
|
|
107
|
+
/**
|
|
108
|
+
* Remove a layer.
|
|
109
|
+
* @param {AnnotationEditorLayer} layer
|
|
110
|
+
*/
|
|
111
|
+
removeLayer(layer: any): void;
|
|
112
|
+
/**
|
|
113
|
+
* Change the editor mode (None, FreeText, Ink, ...)
|
|
114
|
+
* @param {number} mode
|
|
115
|
+
* @param {string|null} editId
|
|
116
|
+
* @param {boolean} [isFromKeyboard] - true if the mode change is due to a
|
|
117
|
+
* keyboard action.
|
|
118
|
+
*/
|
|
119
|
+
updateMode(mode: any, editId?: any, isFromKeyboard?: boolean): void;
|
|
120
|
+
addNewEditorFromKeyboard(): void;
|
|
121
|
+
/**
|
|
122
|
+
* Update the toolbar if it's required to reflect the tool currently used.
|
|
123
|
+
* @param {number} mode
|
|
124
|
+
* @returns {undefined}
|
|
125
|
+
*/
|
|
126
|
+
updateToolbar(mode: any): void;
|
|
127
|
+
/**
|
|
128
|
+
* Update a parameter in the current editor or globally.
|
|
129
|
+
* @param {number} type
|
|
130
|
+
* @param {*} value
|
|
131
|
+
*/
|
|
132
|
+
updateParams(type: any, value: any): void;
|
|
133
|
+
showAllEditors(type: any, visible: any): void;
|
|
134
|
+
enableWaiting(mustWait?: boolean): void;
|
|
135
|
+
/**
|
|
136
|
+
* Get all the editors belonging to a given page.
|
|
137
|
+
* @param {number} pageIndex
|
|
138
|
+
* @returns {Array<AnnotationEditor>}
|
|
139
|
+
*/
|
|
140
|
+
getEditors(pageIndex: any): any[];
|
|
141
|
+
/**
|
|
142
|
+
* Get an editor with the given id.
|
|
143
|
+
* @param {string} id
|
|
144
|
+
* @returns {AnnotationEditor}
|
|
145
|
+
*/
|
|
146
|
+
getEditor(id: any): any;
|
|
147
|
+
/**
|
|
148
|
+
* Add a new editor.
|
|
149
|
+
* @param {AnnotationEditor} editor
|
|
150
|
+
*/
|
|
151
|
+
addEditor(editor: any): void;
|
|
152
|
+
/**
|
|
153
|
+
* Remove an editor.
|
|
154
|
+
* @param {AnnotationEditor} editor
|
|
155
|
+
*/
|
|
156
|
+
removeEditor(editor: any): void;
|
|
157
|
+
/**
|
|
158
|
+
* The annotation element with the given id has been deleted.
|
|
159
|
+
* @param {AnnotationEditor} editor
|
|
160
|
+
*/
|
|
161
|
+
addDeletedAnnotationElement(editor: any): void;
|
|
162
|
+
/**
|
|
163
|
+
* Check if the annotation element with the given id has been deleted.
|
|
164
|
+
* @param {string} annotationElementId
|
|
165
|
+
* @returns {boolean}
|
|
166
|
+
*/
|
|
167
|
+
isDeletedAnnotationElement(annotationElementId: any): boolean;
|
|
168
|
+
/**
|
|
169
|
+
* The annotation element with the given id have been restored.
|
|
170
|
+
* @param {AnnotationEditor} editor
|
|
171
|
+
*/
|
|
172
|
+
removeDeletedAnnotationElement(editor: any): void;
|
|
173
|
+
/**
|
|
174
|
+
* Set the given editor as the active one.
|
|
175
|
+
* @param {AnnotationEditor} editor
|
|
176
|
+
*/
|
|
177
|
+
setActiveEditor(editor: any): void;
|
|
178
|
+
/**
|
|
179
|
+
* Update the UI of the active editor.
|
|
180
|
+
* @param {AnnotationEditor} editor
|
|
181
|
+
*/
|
|
182
|
+
updateUI(editor: any): void;
|
|
183
|
+
/**
|
|
184
|
+
* Add or remove an editor the current selection.
|
|
185
|
+
* @param {AnnotationEditor} editor
|
|
186
|
+
*/
|
|
187
|
+
toggleSelected(editor: any): void;
|
|
188
|
+
/**
|
|
189
|
+
* Set the last selected editor.
|
|
190
|
+
* @param {AnnotationEditor} editor
|
|
191
|
+
*/
|
|
192
|
+
setSelected(editor: any): void;
|
|
193
|
+
/**
|
|
194
|
+
* Check if the editor is selected.
|
|
195
|
+
* @param {AnnotationEditor} editor
|
|
196
|
+
*/
|
|
197
|
+
isSelected(editor: any): boolean;
|
|
198
|
+
get firstSelectedEditor(): any;
|
|
199
|
+
/**
|
|
200
|
+
* Unselect an editor.
|
|
201
|
+
* @param {AnnotationEditor} editor
|
|
202
|
+
*/
|
|
203
|
+
unselect(editor: any): void;
|
|
204
|
+
get hasSelection(): boolean;
|
|
205
|
+
get isEnterHandled(): any;
|
|
206
|
+
/**
|
|
207
|
+
* Undo the last command.
|
|
208
|
+
*/
|
|
209
|
+
undo(): void;
|
|
210
|
+
/**
|
|
211
|
+
* Redo the last undoed command.
|
|
212
|
+
*/
|
|
213
|
+
redo(): void;
|
|
214
|
+
/**
|
|
215
|
+
* Add a command to execute (cmd) and another one to undo it.
|
|
216
|
+
* @param {Object} params
|
|
217
|
+
*/
|
|
218
|
+
addCommands(params: any): void;
|
|
219
|
+
/**
|
|
220
|
+
* Delete the current editor or all.
|
|
221
|
+
*/
|
|
222
|
+
delete(): void;
|
|
223
|
+
commitOrRemove(): void;
|
|
224
|
+
hasSomethingToControl(): any;
|
|
225
|
+
/**
|
|
226
|
+
* Select all the editors.
|
|
227
|
+
*/
|
|
228
|
+
selectAll(): void;
|
|
229
|
+
/**
|
|
230
|
+
* Unselect all the selected editors.
|
|
231
|
+
*/
|
|
232
|
+
unselectAll(): void;
|
|
233
|
+
translateSelectedEditors(x: any, y: any, noCommit?: boolean): void;
|
|
234
|
+
/**
|
|
235
|
+
* Set up the drag session for moving the selected editors.
|
|
236
|
+
*/
|
|
237
|
+
setUpDragSession(): void;
|
|
238
|
+
/**
|
|
239
|
+
* Ends the drag session.
|
|
240
|
+
* @returns {boolean} true if at least one editor has been moved.
|
|
241
|
+
*/
|
|
242
|
+
endDragSession(): boolean;
|
|
243
|
+
/**
|
|
244
|
+
* Drag the set of selected editors.
|
|
245
|
+
* @param {number} tx
|
|
246
|
+
* @param {number} ty
|
|
247
|
+
*/
|
|
248
|
+
dragSelectedEditors(tx: any, ty: any): void;
|
|
249
|
+
/**
|
|
250
|
+
* Rebuild the editor (usually on undo/redo actions) on a potentially
|
|
251
|
+
* non-rendered page.
|
|
252
|
+
* @param {AnnotationEditor} editor
|
|
253
|
+
*/
|
|
254
|
+
rebuild(editor: any): void;
|
|
255
|
+
/**
|
|
256
|
+
* Is the current editor the one passed as argument?
|
|
257
|
+
* @param {AnnotationEditor} editor
|
|
258
|
+
* @returns
|
|
259
|
+
*/
|
|
260
|
+
isActive(editor: any): boolean;
|
|
261
|
+
/**
|
|
262
|
+
* Get the current active editor.
|
|
263
|
+
* @returns {AnnotationEditor|null}
|
|
264
|
+
*/
|
|
265
|
+
getActive(): any;
|
|
266
|
+
getActiveEditor(): any;
|
|
267
|
+
/**
|
|
268
|
+
* Get the current editor mode.
|
|
269
|
+
* @returns {number}
|
|
270
|
+
*/
|
|
271
|
+
getMode(): number;
|
|
272
|
+
getSelectionBoxes(textLayer: any): any[];
|
|
273
|
+
addChangedExistingAnnotation({ annotationElementId, id }: {
|
|
274
|
+
annotationElementId: any;
|
|
275
|
+
id: any;
|
|
276
|
+
}): void;
|
|
277
|
+
removeChangedExistingAnnotation({ annotationElementId }: {
|
|
278
|
+
annotationElementId: any;
|
|
279
|
+
}): void;
|
|
280
|
+
renderAnnotationElement(annotation: any): void;
|
|
281
|
+
}
|