@embedpdf/plugin-annotation 2.5.0 → 2.6.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.
Files changed (71) hide show
  1. package/dist/index.cjs +1 -1
  2. package/dist/index.cjs.map +1 -1
  3. package/dist/index.js +1061 -430
  4. package/dist/index.js.map +1 -1
  5. package/dist/lib/annotation-plugin.d.ts +24 -6
  6. package/dist/lib/geometry/index.d.ts +1 -0
  7. package/dist/lib/geometry/rotation.d.ts +32 -0
  8. package/dist/lib/handlers/types.d.ts +3 -1
  9. package/dist/lib/index.d.ts +1 -0
  10. package/dist/lib/patching/base-patch.d.ts +87 -0
  11. package/dist/lib/patching/index.d.ts +1 -0
  12. package/dist/lib/patching/insert-upright.d.ts +20 -0
  13. package/dist/lib/patching/patch-registry.d.ts +14 -1
  14. package/dist/lib/patching/patch-utils.d.ts +54 -1
  15. package/dist/lib/patching/patches/circle.patch.d.ts +3 -0
  16. package/dist/lib/patching/patches/freetext.patch.d.ts +3 -0
  17. package/dist/lib/patching/patches/index.d.ts +4 -0
  18. package/dist/lib/patching/patches/square.patch.d.ts +3 -0
  19. package/dist/lib/patching/patches/stamp.patch.d.ts +3 -0
  20. package/dist/lib/tools/default-tools.d.ts +32 -0
  21. package/dist/lib/tools/types.d.ts +20 -1
  22. package/dist/lib/types.d.ts +67 -3
  23. package/dist/preact/adapter.d.ts +3 -0
  24. package/dist/preact/index.cjs +1 -1
  25. package/dist/preact/index.cjs.map +1 -1
  26. package/dist/preact/index.js +793 -126
  27. package/dist/preact/index.js.map +1 -1
  28. package/dist/react/adapter.d.ts +2 -1
  29. package/dist/react/index.cjs +1 -1
  30. package/dist/react/index.cjs.map +1 -1
  31. package/dist/react/index.js +793 -126
  32. package/dist/react/index.js.map +1 -1
  33. package/dist/shared/components/annotation-container.d.ts +10 -2
  34. package/dist/shared/components/annotation-layer.d.ts +9 -3
  35. package/dist/shared/components/annotations.d.ts +4 -1
  36. package/dist/shared/components/group-selection-box.d.ts +12 -4
  37. package/dist/shared/components/render-annotation.d.ts +2 -1
  38. package/dist/shared/components/types.d.ts +51 -1
  39. package/dist/shared-preact/components/annotation-container.d.ts +10 -2
  40. package/dist/shared-preact/components/annotation-layer.d.ts +9 -3
  41. package/dist/shared-preact/components/annotations.d.ts +4 -1
  42. package/dist/shared-preact/components/group-selection-box.d.ts +12 -4
  43. package/dist/shared-preact/components/render-annotation.d.ts +2 -1
  44. package/dist/shared-preact/components/types.d.ts +51 -1
  45. package/dist/shared-react/components/annotation-container.d.ts +10 -2
  46. package/dist/shared-react/components/annotation-layer.d.ts +9 -3
  47. package/dist/shared-react/components/annotations.d.ts +4 -1
  48. package/dist/shared-react/components/group-selection-box.d.ts +12 -4
  49. package/dist/shared-react/components/render-annotation.d.ts +2 -1
  50. package/dist/shared-react/components/types.d.ts +51 -1
  51. package/dist/svelte/components/AnnotationLayer.svelte.d.ts +8 -2
  52. package/dist/svelte/components/Annotations.svelte.d.ts +7 -1
  53. package/dist/svelte/components/GroupSelectionBox.svelte.d.ts +11 -3
  54. package/dist/svelte/components/RenderAnnotation.svelte.d.ts +1 -0
  55. package/dist/svelte/components/types.d.ts +14 -1
  56. package/dist/svelte/index.cjs +1 -1
  57. package/dist/svelte/index.cjs.map +1 -1
  58. package/dist/svelte/index.js +1166 -330
  59. package/dist/svelte/index.js.map +1 -1
  60. package/dist/svelte/types.d.ts +53 -0
  61. package/dist/vue/components/annotation-container.vue.d.ts +35 -9
  62. package/dist/vue/components/annotation-layer.vue.d.ts +29 -5
  63. package/dist/vue/components/annotations.vue.d.ts +278 -134
  64. package/dist/vue/components/group-selection-box.vue.d.ts +35 -10
  65. package/dist/vue/components/render-annotation.vue.d.ts +2 -0
  66. package/dist/vue/index.cjs +1 -1
  67. package/dist/vue/index.cjs.map +1 -1
  68. package/dist/vue/index.js +945 -161
  69. package/dist/vue/index.js.map +1 -1
  70. package/dist/vue/types.d.ts +52 -0
  71. package/package.json +11 -10
@@ -1,4 +1,5 @@
1
- import { AnnotationSelectionMenuRenderFn, GroupSelectionMenuRenderFn, ResizeHandleUI, VertexHandleUI } from '../types';
1
+ import { CSSProperties } from 'vue';
2
+ import { AnnotationSelectionMenuRenderFn, GroupSelectionMenuRenderFn, ResizeHandleUI, VertexHandleUI, RotationHandleUI, SelectionOutline } from '../types';
2
3
  import { BoxedAnnotationRenderer } from '../context';
3
4
  type __VLS_Props = {
4
5
  documentId: string;
@@ -7,9 +8,12 @@ type __VLS_Props = {
7
8
  rotation: number;
8
9
  pageWidth: number;
9
10
  pageHeight: number;
10
- resizeUI?: ResizeHandleUI;
11
- vertexUI?: VertexHandleUI;
11
+ resizeUi?: ResizeHandleUI;
12
+ vertexUi?: VertexHandleUI;
13
+ rotationUi?: RotationHandleUI;
12
14
  selectionOutlineColor?: string;
15
+ selectionOutline?: SelectionOutline;
16
+ groupSelectionOutline?: SelectionOutline;
13
17
  /** Render function for selection menu (schema-driven approach) */
14
18
  selectionMenu?: AnnotationSelectionMenuRenderFn;
15
19
  /** Render function for group selection menu (schema-driven approach) */
@@ -32,19 +36,31 @@ declare var __VLS_14: {
32
36
  };
33
37
  placement: import('@embedpdf/utils/vue').SelectionMenuPlacement;
34
38
  menuWrapperProps: {
35
- style: import('vue').CSSProperties;
39
+ style: CSSProperties;
36
40
  onPointerdown: (e: PointerEvent) => void;
37
41
  onTouchstart: (e: TouchEvent) => void;
38
42
  };
39
43
  }, __VLS_17: {
40
- backgroundColor: "#007ACC";
44
+ backgroundColor: string;
41
45
  onPointerdown: (e: PointerEvent) => void;
42
46
  onPointermove: (e: PointerEvent) => void;
43
47
  onPointerup: (e: PointerEvent) => void;
44
48
  onPointercancel: (e: PointerEvent) => void;
45
- key: string | number;
46
- style: import('vue').CSSProperties;
47
- }, __VLS_32: {
49
+ key: string | number | undefined;
50
+ style: CSSProperties;
51
+ }, __VLS_20: {
52
+ [key: string]: any;
53
+ key?: string | number;
54
+ style: CSSProperties;
55
+ backgroundColor: string;
56
+ iconColor: string;
57
+ connectorStyle: CSSProperties;
58
+ showConnector: boolean;
59
+ opacity: number;
60
+ border: import('..').RotationHandleBorder;
61
+ } | {
62
+ [x: string]: never;
63
+ }, __VLS_35: {
48
64
  context: import('..').AnnotationSelectionContext;
49
65
  selected: boolean;
50
66
  rect: {
@@ -59,27 +75,39 @@ declare var __VLS_14: {
59
75
  };
60
76
  placement: import('@embedpdf/utils/vue').SelectionMenuPlacement;
61
77
  menuWrapperProps: {
62
- style: import('vue').CSSProperties;
78
+ style: CSSProperties;
63
79
  onPointerdown: (e: PointerEvent) => void;
64
80
  onTouchstart: (e: TouchEvent) => void;
65
81
  };
66
- }, __VLS_35: {
67
- backgroundColor: "#007ACC";
82
+ }, __VLS_38: {
83
+ backgroundColor: string;
68
84
  onPointerdown: (e: PointerEvent) => void;
69
85
  onPointermove: (e: PointerEvent) => void;
70
86
  onPointerup: (e: PointerEvent) => void;
71
87
  onPointercancel: (e: PointerEvent) => void;
72
- key: string | number;
73
- style: import('vue').CSSProperties;
74
- }, __VLS_38: {
75
- backgroundColor: "#007ACC";
88
+ key: string | number | undefined;
89
+ style: CSSProperties;
90
+ }, __VLS_41: {
91
+ backgroundColor: string;
76
92
  onPointerdown: (e: PointerEvent) => void;
77
93
  onPointermove: (e: PointerEvent) => void;
78
94
  onPointerup: (e: PointerEvent) => void;
79
95
  onPointercancel: (e: PointerEvent) => void;
80
- key: string | number;
81
- style: import('vue').CSSProperties;
82
- }, __VLS_53: {
96
+ key: string | number | undefined;
97
+ style: CSSProperties;
98
+ }, __VLS_44: {
99
+ [key: string]: any;
100
+ key?: string | number;
101
+ style: CSSProperties;
102
+ backgroundColor: string;
103
+ iconColor: string;
104
+ connectorStyle: CSSProperties;
105
+ showConnector: boolean;
106
+ opacity: number;
107
+ border: import('..').RotationHandleBorder;
108
+ } | {
109
+ [x: string]: never;
110
+ }, __VLS_59: {
83
111
  context: import('..').AnnotationSelectionContext;
84
112
  selected: boolean;
85
113
  rect: {
@@ -94,27 +122,39 @@ declare var __VLS_14: {
94
122
  };
95
123
  placement: import('@embedpdf/utils/vue').SelectionMenuPlacement;
96
124
  menuWrapperProps: {
97
- style: import('vue').CSSProperties;
125
+ style: CSSProperties;
98
126
  onPointerdown: (e: PointerEvent) => void;
99
127
  onTouchstart: (e: TouchEvent) => void;
100
128
  };
101
- }, __VLS_56: {
102
- backgroundColor: "#007ACC";
129
+ }, __VLS_62: {
130
+ backgroundColor: string;
103
131
  onPointerdown: (e: PointerEvent) => void;
104
132
  onPointermove: (e: PointerEvent) => void;
105
133
  onPointerup: (e: PointerEvent) => void;
106
134
  onPointercancel: (e: PointerEvent) => void;
107
- key: string | number;
108
- style: import('vue').CSSProperties;
109
- }, __VLS_59: {
110
- backgroundColor: "#007ACC";
135
+ key: string | number | undefined;
136
+ style: CSSProperties;
137
+ }, __VLS_65: {
138
+ backgroundColor: string;
111
139
  onPointerdown: (e: PointerEvent) => void;
112
140
  onPointermove: (e: PointerEvent) => void;
113
141
  onPointerup: (e: PointerEvent) => void;
114
142
  onPointercancel: (e: PointerEvent) => void;
115
- key: string | number;
116
- style: import('vue').CSSProperties;
117
- }, __VLS_74: {
143
+ key: string | number | undefined;
144
+ style: CSSProperties;
145
+ }, __VLS_68: {
146
+ [key: string]: any;
147
+ key?: string | number;
148
+ style: CSSProperties;
149
+ backgroundColor: string;
150
+ iconColor: string;
151
+ connectorStyle: CSSProperties;
152
+ showConnector: boolean;
153
+ opacity: number;
154
+ border: import('..').RotationHandleBorder;
155
+ } | {
156
+ [x: string]: never;
157
+ }, __VLS_83: {
118
158
  context: import('..').AnnotationSelectionContext;
119
159
  selected: boolean;
120
160
  rect: {
@@ -129,27 +169,39 @@ declare var __VLS_14: {
129
169
  };
130
170
  placement: import('@embedpdf/utils/vue').SelectionMenuPlacement;
131
171
  menuWrapperProps: {
132
- style: import('vue').CSSProperties;
172
+ style: CSSProperties;
133
173
  onPointerdown: (e: PointerEvent) => void;
134
174
  onTouchstart: (e: TouchEvent) => void;
135
175
  };
136
- }, __VLS_77: {
137
- backgroundColor: "#007ACC";
176
+ }, __VLS_86: {
177
+ backgroundColor: string;
138
178
  onPointerdown: (e: PointerEvent) => void;
139
179
  onPointermove: (e: PointerEvent) => void;
140
180
  onPointerup: (e: PointerEvent) => void;
141
181
  onPointercancel: (e: PointerEvent) => void;
142
- key: string | number;
143
- style: import('vue').CSSProperties;
144
- }, __VLS_80: {
145
- backgroundColor: "#007ACC";
182
+ key: string | number | undefined;
183
+ style: CSSProperties;
184
+ }, __VLS_89: {
185
+ backgroundColor: string;
146
186
  onPointerdown: (e: PointerEvent) => void;
147
187
  onPointermove: (e: PointerEvent) => void;
148
188
  onPointerup: (e: PointerEvent) => void;
149
189
  onPointercancel: (e: PointerEvent) => void;
150
- key: string | number;
151
- style: import('vue').CSSProperties;
152
- }, __VLS_95: {
190
+ key: string | number | undefined;
191
+ style: CSSProperties;
192
+ }, __VLS_92: {
193
+ [key: string]: any;
194
+ key?: string | number;
195
+ style: CSSProperties;
196
+ backgroundColor: string;
197
+ iconColor: string;
198
+ connectorStyle: CSSProperties;
199
+ showConnector: boolean;
200
+ opacity: number;
201
+ border: import('..').RotationHandleBorder;
202
+ } | {
203
+ [x: string]: never;
204
+ }, __VLS_107: {
153
205
  context: import('..').AnnotationSelectionContext;
154
206
  selected: boolean;
155
207
  rect: {
@@ -164,27 +216,39 @@ declare var __VLS_14: {
164
216
  };
165
217
  placement: import('@embedpdf/utils/vue').SelectionMenuPlacement;
166
218
  menuWrapperProps: {
167
- style: import('vue').CSSProperties;
219
+ style: CSSProperties;
168
220
  onPointerdown: (e: PointerEvent) => void;
169
221
  onTouchstart: (e: TouchEvent) => void;
170
222
  };
171
- }, __VLS_98: {
172
- backgroundColor: "#007ACC";
223
+ }, __VLS_110: {
224
+ backgroundColor: string;
173
225
  onPointerdown: (e: PointerEvent) => void;
174
226
  onPointermove: (e: PointerEvent) => void;
175
227
  onPointerup: (e: PointerEvent) => void;
176
228
  onPointercancel: (e: PointerEvent) => void;
177
- key: string | number;
178
- style: import('vue').CSSProperties;
179
- }, __VLS_101: {
180
- backgroundColor: "#007ACC";
229
+ key: string | number | undefined;
230
+ style: CSSProperties;
231
+ }, __VLS_113: {
232
+ backgroundColor: string;
181
233
  onPointerdown: (e: PointerEvent) => void;
182
234
  onPointermove: (e: PointerEvent) => void;
183
235
  onPointerup: (e: PointerEvent) => void;
184
236
  onPointercancel: (e: PointerEvent) => void;
185
- key: string | number;
186
- style: import('vue').CSSProperties;
237
+ key: string | number | undefined;
238
+ style: CSSProperties;
187
239
  }, __VLS_116: {
240
+ [key: string]: any;
241
+ key?: string | number;
242
+ style: CSSProperties;
243
+ backgroundColor: string;
244
+ iconColor: string;
245
+ connectorStyle: CSSProperties;
246
+ showConnector: boolean;
247
+ opacity: number;
248
+ border: import('..').RotationHandleBorder;
249
+ } | {
250
+ [x: string]: never;
251
+ }, __VLS_131: {
188
252
  context: import('..').AnnotationSelectionContext;
189
253
  selected: boolean;
190
254
  rect: {
@@ -199,27 +263,39 @@ declare var __VLS_14: {
199
263
  };
200
264
  placement: import('@embedpdf/utils/vue').SelectionMenuPlacement;
201
265
  menuWrapperProps: {
202
- style: import('vue').CSSProperties;
266
+ style: CSSProperties;
203
267
  onPointerdown: (e: PointerEvent) => void;
204
268
  onTouchstart: (e: TouchEvent) => void;
205
269
  };
206
- }, __VLS_119: {
207
- backgroundColor: "#007ACC";
270
+ }, __VLS_134: {
271
+ backgroundColor: string;
208
272
  onPointerdown: (e: PointerEvent) => void;
209
273
  onPointermove: (e: PointerEvent) => void;
210
274
  onPointerup: (e: PointerEvent) => void;
211
275
  onPointercancel: (e: PointerEvent) => void;
212
- key: string | number;
213
- style: import('vue').CSSProperties;
214
- }, __VLS_122: {
215
- backgroundColor: "#007ACC";
276
+ key: string | number | undefined;
277
+ style: CSSProperties;
278
+ }, __VLS_137: {
279
+ backgroundColor: string;
216
280
  onPointerdown: (e: PointerEvent) => void;
217
281
  onPointermove: (e: PointerEvent) => void;
218
282
  onPointerup: (e: PointerEvent) => void;
219
283
  onPointercancel: (e: PointerEvent) => void;
220
- key: string | number;
221
- style: import('vue').CSSProperties;
222
- }, __VLS_137: {
284
+ key: string | number | undefined;
285
+ style: CSSProperties;
286
+ }, __VLS_140: {
287
+ [key: string]: any;
288
+ key?: string | number;
289
+ style: CSSProperties;
290
+ backgroundColor: string;
291
+ iconColor: string;
292
+ connectorStyle: CSSProperties;
293
+ showConnector: boolean;
294
+ opacity: number;
295
+ border: import('..').RotationHandleBorder;
296
+ } | {
297
+ [x: string]: never;
298
+ }, __VLS_155: {
223
299
  context: import('..').AnnotationSelectionContext;
224
300
  selected: boolean;
225
301
  rect: {
@@ -234,27 +310,39 @@ declare var __VLS_14: {
234
310
  };
235
311
  placement: import('@embedpdf/utils/vue').SelectionMenuPlacement;
236
312
  menuWrapperProps: {
237
- style: import('vue').CSSProperties;
313
+ style: CSSProperties;
238
314
  onPointerdown: (e: PointerEvent) => void;
239
315
  onTouchstart: (e: TouchEvent) => void;
240
316
  };
241
- }, __VLS_140: {
242
- backgroundColor: "#007ACC";
317
+ }, __VLS_158: {
318
+ backgroundColor: string;
243
319
  onPointerdown: (e: PointerEvent) => void;
244
320
  onPointermove: (e: PointerEvent) => void;
245
321
  onPointerup: (e: PointerEvent) => void;
246
322
  onPointercancel: (e: PointerEvent) => void;
247
- key: string | number;
248
- style: import('vue').CSSProperties;
249
- }, __VLS_143: {
250
- backgroundColor: "#007ACC";
323
+ key: string | number | undefined;
324
+ style: CSSProperties;
325
+ }, __VLS_161: {
326
+ backgroundColor: string;
251
327
  onPointerdown: (e: PointerEvent) => void;
252
328
  onPointermove: (e: PointerEvent) => void;
253
329
  onPointerup: (e: PointerEvent) => void;
254
330
  onPointercancel: (e: PointerEvent) => void;
255
- key: string | number;
256
- style: import('vue').CSSProperties;
257
- }, __VLS_158: {
331
+ key: string | number | undefined;
332
+ style: CSSProperties;
333
+ }, __VLS_164: {
334
+ [key: string]: any;
335
+ key?: string | number;
336
+ style: CSSProperties;
337
+ backgroundColor: string;
338
+ iconColor: string;
339
+ connectorStyle: CSSProperties;
340
+ showConnector: boolean;
341
+ opacity: number;
342
+ border: import('..').RotationHandleBorder;
343
+ } | {
344
+ [x: string]: never;
345
+ }, __VLS_179: {
258
346
  context: import('..').AnnotationSelectionContext;
259
347
  selected: boolean;
260
348
  rect: {
@@ -269,27 +357,39 @@ declare var __VLS_14: {
269
357
  };
270
358
  placement: import('@embedpdf/utils/vue').SelectionMenuPlacement;
271
359
  menuWrapperProps: {
272
- style: import('vue').CSSProperties;
360
+ style: CSSProperties;
273
361
  onPointerdown: (e: PointerEvent) => void;
274
362
  onTouchstart: (e: TouchEvent) => void;
275
363
  };
276
- }, __VLS_161: {
277
- backgroundColor: "#007ACC";
364
+ }, __VLS_182: {
365
+ backgroundColor: string;
278
366
  onPointerdown: (e: PointerEvent) => void;
279
367
  onPointermove: (e: PointerEvent) => void;
280
368
  onPointerup: (e: PointerEvent) => void;
281
369
  onPointercancel: (e: PointerEvent) => void;
282
- key: string | number;
283
- style: import('vue').CSSProperties;
284
- }, __VLS_164: {
285
- backgroundColor: "#007ACC";
370
+ key: string | number | undefined;
371
+ style: CSSProperties;
372
+ }, __VLS_185: {
373
+ backgroundColor: string;
286
374
  onPointerdown: (e: PointerEvent) => void;
287
375
  onPointermove: (e: PointerEvent) => void;
288
376
  onPointerup: (e: PointerEvent) => void;
289
377
  onPointercancel: (e: PointerEvent) => void;
290
- key: string | number;
291
- style: import('vue').CSSProperties;
292
- }, __VLS_179: {
378
+ key: string | number | undefined;
379
+ style: CSSProperties;
380
+ }, __VLS_188: {
381
+ [key: string]: any;
382
+ key?: string | number;
383
+ style: CSSProperties;
384
+ backgroundColor: string;
385
+ iconColor: string;
386
+ connectorStyle: CSSProperties;
387
+ showConnector: boolean;
388
+ opacity: number;
389
+ border: import('..').RotationHandleBorder;
390
+ } | {
391
+ [x: string]: never;
392
+ }, __VLS_203: {
293
393
  context: import('..').AnnotationSelectionContext;
294
394
  selected: boolean;
295
395
  rect: {
@@ -304,27 +404,39 @@ declare var __VLS_14: {
304
404
  };
305
405
  placement: import('@embedpdf/utils/vue').SelectionMenuPlacement;
306
406
  menuWrapperProps: {
307
- style: import('vue').CSSProperties;
407
+ style: CSSProperties;
308
408
  onPointerdown: (e: PointerEvent) => void;
309
409
  onTouchstart: (e: TouchEvent) => void;
310
410
  };
311
- }, __VLS_182: {
312
- backgroundColor: "#007ACC";
411
+ }, __VLS_206: {
412
+ backgroundColor: string;
313
413
  onPointerdown: (e: PointerEvent) => void;
314
414
  onPointermove: (e: PointerEvent) => void;
315
415
  onPointerup: (e: PointerEvent) => void;
316
416
  onPointercancel: (e: PointerEvent) => void;
317
- key: string | number;
318
- style: import('vue').CSSProperties;
319
- }, __VLS_185: {
320
- backgroundColor: "#007ACC";
417
+ key: string | number | undefined;
418
+ style: CSSProperties;
419
+ }, __VLS_209: {
420
+ backgroundColor: string;
321
421
  onPointerdown: (e: PointerEvent) => void;
322
422
  onPointermove: (e: PointerEvent) => void;
323
423
  onPointerup: (e: PointerEvent) => void;
324
424
  onPointercancel: (e: PointerEvent) => void;
325
- key: string | number;
326
- style: import('vue').CSSProperties;
327
- }, __VLS_200: {
425
+ key: string | number | undefined;
426
+ style: CSSProperties;
427
+ }, __VLS_212: {
428
+ [key: string]: any;
429
+ key?: string | number;
430
+ style: CSSProperties;
431
+ backgroundColor: string;
432
+ iconColor: string;
433
+ connectorStyle: CSSProperties;
434
+ showConnector: boolean;
435
+ opacity: number;
436
+ border: import('..').RotationHandleBorder;
437
+ } | {
438
+ [x: string]: never;
439
+ }, __VLS_227: {
328
440
  context: import('..').AnnotationSelectionContext;
329
441
  selected: boolean;
330
442
  rect: {
@@ -339,11 +451,11 @@ declare var __VLS_14: {
339
451
  };
340
452
  placement: import('@embedpdf/utils/vue').SelectionMenuPlacement;
341
453
  menuWrapperProps: {
342
- style: import('vue').CSSProperties;
454
+ style: CSSProperties;
343
455
  onPointerdown: (e: PointerEvent) => void;
344
456
  onTouchstart: (e: TouchEvent) => void;
345
457
  };
346
- }, __VLS_215: {
458
+ }, __VLS_242: {
347
459
  context: import('..').AnnotationSelectionContext;
348
460
  selected: boolean;
349
461
  rect: {
@@ -358,11 +470,11 @@ declare var __VLS_14: {
358
470
  };
359
471
  placement: import('@embedpdf/utils/vue').SelectionMenuPlacement;
360
472
  menuWrapperProps: {
361
- style: import('vue').CSSProperties;
473
+ style: CSSProperties;
362
474
  onPointerdown: (e: PointerEvent) => void;
363
475
  onTouchstart: (e: TouchEvent) => void;
364
476
  };
365
- }, __VLS_230: {
477
+ }, __VLS_257: {
366
478
  context: import('..').AnnotationSelectionContext;
367
479
  selected: boolean;
368
480
  rect: {
@@ -377,11 +489,11 @@ declare var __VLS_14: {
377
489
  };
378
490
  placement: import('@embedpdf/utils/vue').SelectionMenuPlacement;
379
491
  menuWrapperProps: {
380
- style: import('vue').CSSProperties;
492
+ style: CSSProperties;
381
493
  onPointerdown: (e: PointerEvent) => void;
382
494
  onTouchstart: (e: TouchEvent) => void;
383
495
  };
384
- }, __VLS_245: {
496
+ }, __VLS_272: {
385
497
  context: import('..').AnnotationSelectionContext;
386
498
  selected: boolean;
387
499
  rect: {
@@ -396,11 +508,11 @@ declare var __VLS_14: {
396
508
  };
397
509
  placement: import('@embedpdf/utils/vue').SelectionMenuPlacement;
398
510
  menuWrapperProps: {
399
- style: import('vue').CSSProperties;
511
+ style: CSSProperties;
400
512
  onPointerdown: (e: PointerEvent) => void;
401
513
  onTouchstart: (e: TouchEvent) => void;
402
514
  };
403
- }, __VLS_260: {
515
+ }, __VLS_287: {
404
516
  context: import('..').AnnotationSelectionContext;
405
517
  selected: boolean;
406
518
  rect: {
@@ -415,19 +527,19 @@ declare var __VLS_14: {
415
527
  };
416
528
  placement: import('@embedpdf/utils/vue').SelectionMenuPlacement;
417
529
  menuWrapperProps: {
418
- style: import('vue').CSSProperties;
530
+ style: CSSProperties;
419
531
  onPointerdown: (e: PointerEvent) => void;
420
532
  onTouchstart: (e: TouchEvent) => void;
421
533
  };
422
- }, __VLS_263: {
423
- backgroundColor: "#007ACC";
534
+ }, __VLS_290: {
535
+ backgroundColor: string;
424
536
  onPointerdown: (e: PointerEvent) => void;
425
537
  onPointermove: (e: PointerEvent) => void;
426
538
  onPointerup: (e: PointerEvent) => void;
427
539
  onPointercancel: (e: PointerEvent) => void;
428
- key: string | number;
429
- style: import('vue').CSSProperties;
430
- }, __VLS_272: {
540
+ key: string | number | undefined;
541
+ style: CSSProperties;
542
+ }, __VLS_299: {
431
543
  context: import('..').GroupSelectionContext;
432
544
  selected: boolean;
433
545
  rect: {
@@ -442,65 +554,85 @@ declare var __VLS_14: {
442
554
  };
443
555
  placement: import('@embedpdf/utils/vue').SelectionMenuPlacement;
444
556
  menuWrapperProps: {
445
- style: import('vue').CSSProperties;
557
+ style: CSSProperties;
446
558
  onPointerdown: (e: PointerEvent) => void;
447
559
  onTouchstart: (e: TouchEvent) => void;
448
560
  };
449
- }, __VLS_275: {
561
+ }, __VLS_302: {
450
562
  backgroundColor: string;
451
563
  onPointerdown: (e: PointerEvent) => void;
452
564
  onPointermove: (e: PointerEvent) => void;
453
565
  onPointerup: (e: PointerEvent) => void;
454
566
  onPointercancel: (e: PointerEvent) => void;
455
- key: string | number;
456
- style: import('vue').CSSProperties;
567
+ key: string | number | undefined;
568
+ style: CSSProperties;
569
+ }, __VLS_305: {
570
+ [key: string]: any;
571
+ key?: string | number;
572
+ style: CSSProperties;
573
+ backgroundColor: string;
574
+ iconColor: string;
575
+ connectorStyle: CSSProperties;
576
+ showConnector: boolean;
577
+ opacity: number;
578
+ border: import('..').RotationHandleBorder;
579
+ } | {
580
+ [x: string]: never;
457
581
  };
458
582
  type __VLS_Slots = {} & {
459
583
  'selection-menu'?: (props: typeof __VLS_14) => any;
460
584
  } & {
461
585
  'resize-handle'?: (props: typeof __VLS_17) => any;
462
586
  } & {
463
- 'selection-menu'?: (props: typeof __VLS_32) => any;
587
+ 'rotation-handle'?: (props: typeof __VLS_20) => any;
588
+ } & {
589
+ 'selection-menu'?: (props: typeof __VLS_35) => any;
590
+ } & {
591
+ 'resize-handle'?: (props: typeof __VLS_38) => any;
592
+ } & {
593
+ 'vertex-handle'?: (props: typeof __VLS_41) => any;
464
594
  } & {
465
- 'resize-handle'?: (props: typeof __VLS_35) => any;
595
+ 'rotation-handle'?: (props: typeof __VLS_44) => any;
466
596
  } & {
467
- 'vertex-handle'?: (props: typeof __VLS_38) => any;
597
+ 'selection-menu'?: (props: typeof __VLS_59) => any;
468
598
  } & {
469
- 'selection-menu'?: (props: typeof __VLS_53) => any;
599
+ 'resize-handle'?: (props: typeof __VLS_62) => any;
470
600
  } & {
471
- 'resize-handle'?: (props: typeof __VLS_56) => any;
601
+ 'vertex-handle'?: (props: typeof __VLS_65) => any;
472
602
  } & {
473
- 'vertex-handle'?: (props: typeof __VLS_59) => any;
603
+ 'rotation-handle'?: (props: typeof __VLS_68) => any;
474
604
  } & {
475
- 'selection-menu'?: (props: typeof __VLS_74) => any;
605
+ 'selection-menu'?: (props: typeof __VLS_83) => any;
476
606
  } & {
477
- 'resize-handle'?: (props: typeof __VLS_77) => any;
607
+ 'resize-handle'?: (props: typeof __VLS_86) => any;
478
608
  } & {
479
- 'vertex-handle'?: (props: typeof __VLS_80) => any;
609
+ 'vertex-handle'?: (props: typeof __VLS_89) => any;
480
610
  } & {
481
- 'selection-menu'?: (props: typeof __VLS_95) => any;
611
+ 'rotation-handle'?: (props: typeof __VLS_92) => any;
482
612
  } & {
483
- 'resize-handle'?: (props: typeof __VLS_98) => any;
613
+ 'selection-menu'?: (props: typeof __VLS_107) => any;
484
614
  } & {
485
- 'vertex-handle'?: (props: typeof __VLS_101) => any;
615
+ 'resize-handle'?: (props: typeof __VLS_110) => any;
486
616
  } & {
487
- 'selection-menu'?: (props: typeof __VLS_116) => any;
617
+ 'vertex-handle'?: (props: typeof __VLS_113) => any;
488
618
  } & {
489
- 'resize-handle'?: (props: typeof __VLS_119) => any;
619
+ 'rotation-handle'?: (props: typeof __VLS_116) => any;
490
620
  } & {
491
- 'vertex-handle'?: (props: typeof __VLS_122) => any;
621
+ 'selection-menu'?: (props: typeof __VLS_131) => any;
492
622
  } & {
493
- 'selection-menu'?: (props: typeof __VLS_137) => any;
623
+ 'resize-handle'?: (props: typeof __VLS_134) => any;
494
624
  } & {
495
- 'resize-handle'?: (props: typeof __VLS_140) => any;
625
+ 'vertex-handle'?: (props: typeof __VLS_137) => any;
496
626
  } & {
497
- 'vertex-handle'?: (props: typeof __VLS_143) => any;
627
+ 'rotation-handle'?: (props: typeof __VLS_140) => any;
498
628
  } & {
499
- 'selection-menu'?: (props: typeof __VLS_158) => any;
629
+ 'selection-menu'?: (props: typeof __VLS_155) => any;
500
630
  } & {
501
- 'resize-handle'?: (props: typeof __VLS_161) => any;
631
+ 'resize-handle'?: (props: typeof __VLS_158) => any;
502
632
  } & {
503
- 'vertex-handle'?: (props: typeof __VLS_164) => any;
633
+ 'vertex-handle'?: (props: typeof __VLS_161) => any;
634
+ } & {
635
+ 'rotation-handle'?: (props: typeof __VLS_164) => any;
504
636
  } & {
505
637
  'selection-menu'?: (props: typeof __VLS_179) => any;
506
638
  } & {
@@ -508,21 +640,33 @@ type __VLS_Slots = {} & {
508
640
  } & {
509
641
  'vertex-handle'?: (props: typeof __VLS_185) => any;
510
642
  } & {
511
- 'selection-menu'?: (props: typeof __VLS_200) => any;
643
+ 'rotation-handle'?: (props: typeof __VLS_188) => any;
644
+ } & {
645
+ 'selection-menu'?: (props: typeof __VLS_203) => any;
646
+ } & {
647
+ 'resize-handle'?: (props: typeof __VLS_206) => any;
648
+ } & {
649
+ 'vertex-handle'?: (props: typeof __VLS_209) => any;
650
+ } & {
651
+ 'rotation-handle'?: (props: typeof __VLS_212) => any;
652
+ } & {
653
+ 'selection-menu'?: (props: typeof __VLS_227) => any;
654
+ } & {
655
+ 'selection-menu'?: (props: typeof __VLS_242) => any;
512
656
  } & {
513
- 'selection-menu'?: (props: typeof __VLS_215) => any;
657
+ 'selection-menu'?: (props: typeof __VLS_257) => any;
514
658
  } & {
515
- 'selection-menu'?: (props: typeof __VLS_230) => any;
659
+ 'selection-menu'?: (props: typeof __VLS_272) => any;
516
660
  } & {
517
- 'selection-menu'?: (props: typeof __VLS_245) => any;
661
+ 'selection-menu'?: (props: typeof __VLS_287) => any;
518
662
  } & {
519
- 'selection-menu'?: (props: typeof __VLS_260) => any;
663
+ 'resize-handle'?: (props: typeof __VLS_290) => any;
520
664
  } & {
521
- 'resize-handle'?: (props: typeof __VLS_263) => any;
665
+ 'group-selection-menu'?: (props: typeof __VLS_299) => any;
522
666
  } & {
523
- 'group-selection-menu'?: (props: typeof __VLS_272) => any;
667
+ 'resize-handle'?: (props: typeof __VLS_302) => any;
524
668
  } & {
525
- 'resize-handle'?: (props: typeof __VLS_275) => any;
669
+ 'rotation-handle'?: (props: typeof __VLS_305) => any;
526
670
  };
527
671
  declare const __VLS_base: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
528
672
  declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;