@embedpdf/plugin-annotation 2.2.0 → 2.4.0

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 (119) hide show
  1. package/dist/index.cjs +1 -1
  2. package/dist/index.cjs.map +1 -1
  3. package/dist/index.js +1232 -101
  4. package/dist/index.js.map +1 -1
  5. package/dist/lib/actions.d.ts +33 -3
  6. package/dist/lib/annotation-plugin.d.ts +178 -2
  7. package/dist/lib/handlers/types.d.ts +1 -1
  8. package/dist/lib/helpers.d.ts +8 -2
  9. package/dist/lib/selectors.d.ts +97 -8
  10. package/dist/lib/tools/default-tools.d.ts +39 -11
  11. package/dist/lib/tools/types.d.ts +22 -4
  12. package/dist/lib/types.d.ts +278 -1
  13. package/dist/preact/adapter.d.ts +3 -3
  14. package/dist/preact/index.cjs +1 -1
  15. package/dist/preact/index.cjs.map +1 -1
  16. package/dist/preact/index.js +1133 -403
  17. package/dist/preact/index.js.map +1 -1
  18. package/dist/react/adapter.d.ts +1 -1
  19. package/dist/react/index.cjs +1 -1
  20. package/dist/react/index.cjs.map +1 -1
  21. package/dist/react/index.js +1132 -402
  22. package/dist/react/index.js.map +1 -1
  23. package/dist/shared/components/annotation-container.d.ts +13 -2
  24. package/dist/shared/components/annotation-layer.d.ts +6 -2
  25. package/dist/shared/components/annotations/ink.d.ts +3 -3
  26. package/dist/shared/components/annotations/link.d.ts +28 -0
  27. package/dist/shared/components/annotations.d.ts +4 -1
  28. package/dist/shared/components/group-selection-box.d.ts +32 -0
  29. package/dist/shared/components/index.d.ts +1 -0
  30. package/dist/shared/components/text-markup/highlight.d.ts +3 -2
  31. package/dist/shared/components/text-markup/squiggly.d.ts +3 -2
  32. package/dist/shared/components/text-markup/strikeout.d.ts +3 -2
  33. package/dist/shared/components/text-markup/underline.d.ts +3 -2
  34. package/dist/shared/components/types.d.ts +50 -1
  35. package/dist/shared/context/index.d.ts +1 -0
  36. package/dist/shared/context/renderer-registry.d.ts +21 -0
  37. package/dist/shared/index.d.ts +2 -0
  38. package/dist/shared-preact/components/annotation-container.d.ts +13 -2
  39. package/dist/shared-preact/components/annotation-layer.d.ts +6 -2
  40. package/dist/shared-preact/components/annotations/ink.d.ts +3 -3
  41. package/dist/shared-preact/components/annotations/link.d.ts +28 -0
  42. package/dist/shared-preact/components/annotations.d.ts +4 -1
  43. package/dist/shared-preact/components/group-selection-box.d.ts +32 -0
  44. package/dist/shared-preact/components/index.d.ts +1 -0
  45. package/dist/shared-preact/components/text-markup/highlight.d.ts +3 -2
  46. package/dist/shared-preact/components/text-markup/squiggly.d.ts +3 -2
  47. package/dist/shared-preact/components/text-markup/strikeout.d.ts +3 -2
  48. package/dist/shared-preact/components/text-markup/underline.d.ts +3 -2
  49. package/dist/shared-preact/components/types.d.ts +50 -1
  50. package/dist/shared-preact/context/index.d.ts +1 -0
  51. package/dist/shared-preact/context/renderer-registry.d.ts +21 -0
  52. package/dist/shared-preact/index.d.ts +2 -0
  53. package/dist/shared-react/components/annotation-container.d.ts +13 -2
  54. package/dist/shared-react/components/annotation-layer.d.ts +6 -2
  55. package/dist/shared-react/components/annotations/ink.d.ts +3 -3
  56. package/dist/shared-react/components/annotations/link.d.ts +28 -0
  57. package/dist/shared-react/components/annotations.d.ts +4 -1
  58. package/dist/shared-react/components/group-selection-box.d.ts +32 -0
  59. package/dist/shared-react/components/index.d.ts +1 -0
  60. package/dist/shared-react/components/text-markup/highlight.d.ts +3 -2
  61. package/dist/shared-react/components/text-markup/squiggly.d.ts +3 -2
  62. package/dist/shared-react/components/text-markup/strikeout.d.ts +3 -2
  63. package/dist/shared-react/components/text-markup/underline.d.ts +3 -2
  64. package/dist/shared-react/components/types.d.ts +50 -1
  65. package/dist/shared-react/context/index.d.ts +1 -0
  66. package/dist/shared-react/context/renderer-registry.d.ts +21 -0
  67. package/dist/shared-react/index.d.ts +2 -0
  68. package/dist/svelte/components/AnnotationLayer.svelte.d.ts +8 -1
  69. package/dist/svelte/components/Annotations.svelte.d.ts +8 -1
  70. package/dist/svelte/components/GroupSelectionBox.svelte.d.ts +32 -0
  71. package/dist/svelte/components/RendererRegistryProvider.svelte.d.ts +7 -0
  72. package/dist/svelte/components/annotations/Ink.svelte.d.ts +2 -1
  73. package/dist/svelte/components/annotations/Link.svelte.d.ts +24 -0
  74. package/dist/svelte/components/annotations/index.d.ts +1 -0
  75. package/dist/svelte/components/index.d.ts +2 -0
  76. package/dist/svelte/components/text-markup/Highlight.svelte.d.ts +2 -1
  77. package/dist/svelte/components/text-markup/Squiggly.svelte.d.ts +2 -1
  78. package/dist/svelte/components/text-markup/Strikeout.svelte.d.ts +2 -1
  79. package/dist/svelte/components/text-markup/Underline.svelte.d.ts +2 -1
  80. package/dist/svelte/components/types.d.ts +2 -0
  81. package/dist/svelte/context/index.d.ts +2 -0
  82. package/dist/svelte/context/renderer-registry.svelte.d.ts +20 -0
  83. package/dist/svelte/context/types.d.ts +33 -0
  84. package/dist/svelte/index.cjs +1 -1
  85. package/dist/svelte/index.cjs.map +1 -1
  86. package/dist/svelte/index.d.ts +2 -0
  87. package/dist/svelte/index.js +1215 -394
  88. package/dist/svelte/index.js.map +1 -1
  89. package/dist/svelte/types.d.ts +7 -0
  90. package/dist/vue/components/annotation-container.vue.d.ts +3 -1
  91. package/dist/vue/components/annotation-layer.vue.d.ts +31 -5
  92. package/dist/vue/components/annotations/free-text.vue.d.ts +1 -1
  93. package/dist/vue/components/annotations/index.d.ts +1 -0
  94. package/dist/vue/components/annotations/ink.vue.d.ts +2 -2
  95. package/dist/vue/components/annotations/line.vue.d.ts +1 -1
  96. package/dist/vue/components/annotations/link.vue.d.ts +29 -0
  97. package/dist/vue/components/annotations/polygon.vue.d.ts +1 -1
  98. package/dist/vue/components/annotations/polyline.vue.d.ts +1 -1
  99. package/dist/vue/components/annotations/stamp.vue.d.ts +1 -1
  100. package/dist/vue/components/annotations.vue.d.ts +151 -53
  101. package/dist/vue/components/group-selection-box.vue.d.ts +73 -0
  102. package/dist/vue/components/index.d.ts +2 -0
  103. package/dist/vue/components/preview-renderer.vue.d.ts +1 -1
  104. package/dist/vue/components/renderer-registry-provider.vue.d.ts +13 -0
  105. package/dist/vue/components/text-markup/highlight.vue.d.ts +2 -2
  106. package/dist/vue/components/text-markup/squiggly.vue.d.ts +2 -2
  107. package/dist/vue/components/text-markup/strikeout.vue.d.ts +2 -2
  108. package/dist/vue/components/text-markup/underline.vue.d.ts +2 -2
  109. package/dist/vue/context/index.d.ts +2 -0
  110. package/dist/vue/context/renderer-registry.d.ts +26 -0
  111. package/dist/vue/context/types.d.ts +33 -0
  112. package/dist/vue/hooks/use-annotation.d.ts +7 -5
  113. package/dist/vue/index.cjs +1 -1
  114. package/dist/vue/index.cjs.map +1 -1
  115. package/dist/vue/index.d.ts +3 -1
  116. package/dist/vue/index.js +1124 -459
  117. package/dist/vue/index.js.map +1 -1
  118. package/dist/vue/types.d.ts +8 -1
  119. package/package.json +10 -10
@@ -8,8 +8,15 @@ export interface AnnotationSelectionContext {
8
8
  annotation: TrackedAnnotation;
9
9
  pageIndex: number;
10
10
  }
11
+ export interface GroupSelectionContext {
12
+ type: 'group';
13
+ annotations: TrackedAnnotation[];
14
+ pageIndex: number;
15
+ }
11
16
  export type AnnotationSelectionMenuProps = SelectionMenuPropsBase<AnnotationSelectionContext>;
12
17
  export type AnnotationSelectionMenuRenderFn = SelectionMenuRenderFn<AnnotationSelectionContext>;
18
+ export type GroupSelectionMenuProps = SelectionMenuPropsBase<GroupSelectionContext>;
19
+ export type GroupSelectionMenuRenderFn = SelectionMenuRenderFn<GroupSelectionContext>;
13
20
  export interface HandleProps {
14
21
  backgroundColor?: string;
15
22
  [key: string]: any;
@@ -1,6 +1,6 @@
1
1
  import { PdfAnnotationObject } from '@embedpdf/models';
2
2
  import { SelectionMenuPlacement } from '@embedpdf/utils/vue';
3
- import { TrackedAnnotation } from '../../lib/index.ts';
3
+ import { TrackedAnnotation } from '../../lib';
4
4
  import { VertexConfig } from '../../shared-vue/types';
5
5
  import { AnnotationSelectionContext, AnnotationSelectionMenuRenderFn } from '../types';
6
6
  declare const _default: typeof __VLS_export;
@@ -15,6 +15,8 @@ declare const __VLS_export: <T extends PdfAnnotationObject>(__VLS_props: NonNull
15
15
  pageHeight: number;
16
16
  trackedAnnotation: TrackedAnnotation<T>;
17
17
  isSelected: boolean;
18
+ /** Whether multiple annotations are selected (container becomes passive) */
19
+ isMultiSelected?: boolean;
18
20
  isDraggable: boolean;
19
21
  isResizable: boolean;
20
22
  lockAspectRatio?: boolean;
@@ -1,4 +1,5 @@
1
- import { AnnotationSelectionMenuRenderFn, ResizeHandleUI, VertexHandleUI } from '../types';
1
+ import { AnnotationSelectionMenuRenderFn, GroupSelectionMenuRenderFn, ResizeHandleUI, VertexHandleUI } from '../types';
2
+ import { BoxedAnnotationRenderer } from '../context';
2
3
  type __VLS_Props = {
3
4
  /** The ID of the document that this layer displays annotations for */
4
5
  documentId: string;
@@ -13,6 +14,10 @@ type __VLS_Props = {
13
14
  selectionOutlineColor?: string;
14
15
  /** Customize selection menu */
15
16
  selectionMenu?: AnnotationSelectionMenuRenderFn;
17
+ /** Customize group selection menu */
18
+ groupSelectionMenu?: GroupSelectionMenuRenderFn;
19
+ /** Custom renderers for specific annotation types (provided by external plugins) */
20
+ annotationRenderers?: BoxedAnnotationRenderer[];
16
21
  };
17
22
  declare var __VLS_8: {
18
23
  context: import('..').AnnotationSelectionContext;
@@ -34,14 +39,33 @@ declare var __VLS_8: {
34
39
  onTouchstart: (e: TouchEvent) => void;
35
40
  };
36
41
  }, __VLS_11: {
37
- backgroundColor: "#007ACC";
42
+ context: import('..').GroupSelectionContext;
43
+ selected: boolean;
44
+ rect: {
45
+ origin: {
46
+ x: number;
47
+ y: number;
48
+ };
49
+ size: {
50
+ width: number;
51
+ height: number;
52
+ };
53
+ };
54
+ placement: import('@embedpdf/utils/vue').SelectionMenuPlacement;
55
+ menuWrapperProps: {
56
+ style: import('vue').CSSProperties;
57
+ onPointerdown: (e: PointerEvent) => void;
58
+ onTouchstart: (e: TouchEvent) => void;
59
+ };
60
+ }, __VLS_14: {
61
+ backgroundColor: string;
38
62
  onPointerdown: (e: PointerEvent) => void;
39
63
  onPointermove: (e: PointerEvent) => void;
40
64
  onPointerup: (e: PointerEvent) => void;
41
65
  onPointercancel: (e: PointerEvent) => void;
42
66
  key: string | number;
43
67
  style: import('vue').CSSProperties;
44
- }, __VLS_14: {
68
+ }, __VLS_17: {
45
69
  backgroundColor: "#007ACC";
46
70
  onPointerdown: (e: PointerEvent) => void;
47
71
  onPointermove: (e: PointerEvent) => void;
@@ -53,9 +77,11 @@ declare var __VLS_8: {
53
77
  type __VLS_Slots = {} & {
54
78
  'selection-menu'?: (props: typeof __VLS_8) => any;
55
79
  } & {
56
- 'resize-handle'?: (props: typeof __VLS_11) => any;
80
+ 'group-selection-menu'?: (props: typeof __VLS_11) => any;
81
+ } & {
82
+ 'resize-handle'?: (props: typeof __VLS_14) => any;
57
83
  } & {
58
- 'vertex-handle'?: (props: typeof __VLS_14) => any;
84
+ 'vertex-handle'?: (props: typeof __VLS_17) => any;
59
85
  };
60
86
  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>;
61
87
  declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
@@ -1,5 +1,5 @@
1
1
  import { PdfFreeTextAnnoObject } from '@embedpdf/models';
2
- import { TrackedAnnotation } from '../../../lib/index.ts';
2
+ import { TrackedAnnotation } from '../../../lib';
3
3
  type __VLS_Props = {
4
4
  isSelected: boolean;
5
5
  isEditing: boolean;
@@ -2,6 +2,7 @@ export { default as Circle } from './circle.vue';
2
2
  export { default as FreeText } from './free-text.vue';
3
3
  export { default as Ink } from './ink.vue';
4
4
  export { default as Line } from './line.vue';
5
+ export { default as Link } from './link.vue';
5
6
  export { default as Polygon } from './polygon.vue';
6
7
  export { default as Polyline } from './polyline.vue';
7
8
  export { default as Square } from './square.vue';
@@ -1,7 +1,8 @@
1
1
  import { PdfInkListObject, Rect } from '@embedpdf/models';
2
2
  type __VLS_Props = {
3
3
  isSelected: boolean;
4
- color?: string;
4
+ /** Stroke color */
5
+ strokeColor?: string;
5
6
  opacity?: number;
6
7
  strokeWidth: number;
7
8
  inkList: PdfInkListObject[];
@@ -10,7 +11,6 @@ type __VLS_Props = {
10
11
  onClick?: (e: PointerEvent | TouchEvent) => void;
11
12
  };
12
13
  declare const __VLS_export: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
13
- color: string;
14
14
  opacity: number;
15
15
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
16
16
  declare const _default: typeof __VLS_export;
@@ -14,9 +14,9 @@ type __VLS_Props = {
14
14
  isSelected: boolean;
15
15
  };
16
16
  declare const __VLS_export: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
17
+ strokeColor: string;
17
18
  color: string;
18
19
  opacity: number;
19
- strokeColor: string;
20
20
  strokeStyle: PdfAnnotationBorderStyle;
21
21
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
22
22
  declare const _default: typeof __VLS_export;
@@ -0,0 +1,29 @@
1
+ import { PdfAnnotationBorderStyle, Rect } from '@embedpdf/models';
2
+ type __VLS_Props = {
3
+ /** Whether the annotation is selected */
4
+ isSelected: boolean;
5
+ /** Stroke colour – defaults to blue when omitted */
6
+ strokeColor?: string;
7
+ /** Stroke width in PDF units */
8
+ strokeWidth?: number;
9
+ /** Stroke type – defaults to underline when omitted */
10
+ strokeStyle?: PdfAnnotationBorderStyle;
11
+ /** Stroke dash array – for dashed style */
12
+ strokeDashArray?: number[];
13
+ /** Bounding box of the annotation (PDF units) */
14
+ rect: Rect;
15
+ /** Current page zoom factor */
16
+ scale: number;
17
+ /** Click handler (used for selection) */
18
+ onClick?: (e: MouseEvent | TouchEvent) => void;
19
+ /** Whether this link has an IRT (In Reply To) reference - disables direct interaction */
20
+ hasIRT?: boolean;
21
+ };
22
+ declare const __VLS_export: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
23
+ strokeColor: string;
24
+ strokeWidth: number;
25
+ strokeStyle: PdfAnnotationBorderStyle;
26
+ hasIRT: boolean;
27
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
28
+ declare const _default: typeof __VLS_export;
29
+ export default _default;
@@ -15,9 +15,9 @@ type __VLS_Props = {
15
15
  handleSize?: number;
16
16
  };
17
17
  declare const __VLS_export: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
18
+ strokeColor: string;
18
19
  color: string;
19
20
  opacity: number;
20
- strokeColor: string;
21
21
  strokeStyle: PdfAnnotationBorderStyle;
22
22
  handleSize: number;
23
23
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
@@ -12,9 +12,9 @@ type __VLS_Props = {
12
12
  lineEndings?: LineEndings;
13
13
  };
14
14
  declare const __VLS_export: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
15
+ strokeColor: string;
15
16
  color: string;
16
17
  opacity: number;
17
- strokeColor: string;
18
18
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
19
19
  declare const _default: typeof __VLS_export;
20
20
  export default _default;
@@ -1,5 +1,5 @@
1
1
  import { PdfStampAnnoObject } from '@embedpdf/models';
2
- import { TrackedAnnotation } from '../../../lib/index.ts';
2
+ import { TrackedAnnotation } from '../../../lib';
3
3
  type __VLS_Props = {
4
4
  isSelected: boolean;
5
5
  annotation: TrackedAnnotation<PdfStampAnnoObject>;
@@ -1,4 +1,5 @@
1
- import { AnnotationSelectionMenuRenderFn, ResizeHandleUI, VertexHandleUI } from '../types';
1
+ import { AnnotationSelectionMenuRenderFn, GroupSelectionMenuRenderFn, ResizeHandleUI, VertexHandleUI } from '../types';
2
+ import { BoxedAnnotationRenderer } from '../context';
2
3
  type __VLS_Props = {
3
4
  documentId: string;
4
5
  pageIndex: number;
@@ -11,6 +12,10 @@ type __VLS_Props = {
11
12
  selectionOutlineColor?: string;
12
13
  /** Render function for selection menu (schema-driven approach) */
13
14
  selectionMenu?: AnnotationSelectionMenuRenderFn;
15
+ /** Render function for group selection menu (schema-driven approach) */
16
+ groupSelectionMenu?: GroupSelectionMenuRenderFn;
17
+ /** Custom renderers for specific annotation types (provided by external plugins) */
18
+ annotationRenderers?: BoxedAnnotationRenderer[];
14
19
  };
15
20
  declare var __VLS_14: {
16
21
  context: import('..').AnnotationSelectionContext;
@@ -39,7 +44,26 @@ declare var __VLS_14: {
39
44
  onPointercancel: (e: PointerEvent) => void;
40
45
  key: string | number;
41
46
  style: import('vue').CSSProperties;
42
- }, __VLS_20: {
47
+ }, __VLS_32: {
48
+ context: import('..').AnnotationSelectionContext;
49
+ selected: boolean;
50
+ rect: {
51
+ origin: {
52
+ x: number;
53
+ y: number;
54
+ };
55
+ size: {
56
+ width: number;
57
+ height: number;
58
+ };
59
+ };
60
+ placement: import('@embedpdf/utils/vue').SelectionMenuPlacement;
61
+ menuWrapperProps: {
62
+ style: import('vue').CSSProperties;
63
+ onPointerdown: (e: PointerEvent) => void;
64
+ onTouchstart: (e: TouchEvent) => void;
65
+ };
66
+ }, __VLS_35: {
43
67
  backgroundColor: "#007ACC";
44
68
  onPointerdown: (e: PointerEvent) => void;
45
69
  onPointermove: (e: PointerEvent) => void;
@@ -47,7 +71,15 @@ declare var __VLS_14: {
47
71
  onPointercancel: (e: PointerEvent) => void;
48
72
  key: string | number;
49
73
  style: import('vue').CSSProperties;
50
- }, __VLS_35: {
74
+ }, __VLS_38: {
75
+ backgroundColor: "#007ACC";
76
+ onPointerdown: (e: PointerEvent) => void;
77
+ onPointermove: (e: PointerEvent) => void;
78
+ onPointerup: (e: PointerEvent) => void;
79
+ onPointercancel: (e: PointerEvent) => void;
80
+ key: string | number;
81
+ style: import('vue').CSSProperties;
82
+ }, __VLS_53: {
51
83
  context: import('..').AnnotationSelectionContext;
52
84
  selected: boolean;
53
85
  rect: {
@@ -66,7 +98,7 @@ declare var __VLS_14: {
66
98
  onPointerdown: (e: PointerEvent) => void;
67
99
  onTouchstart: (e: TouchEvent) => void;
68
100
  };
69
- }, __VLS_38: {
101
+ }, __VLS_56: {
70
102
  backgroundColor: "#007ACC";
71
103
  onPointerdown: (e: PointerEvent) => void;
72
104
  onPointermove: (e: PointerEvent) => void;
@@ -74,7 +106,7 @@ declare var __VLS_14: {
74
106
  onPointercancel: (e: PointerEvent) => void;
75
107
  key: string | number;
76
108
  style: import('vue').CSSProperties;
77
- }, __VLS_41: {
109
+ }, __VLS_59: {
78
110
  backgroundColor: "#007ACC";
79
111
  onPointerdown: (e: PointerEvent) => void;
80
112
  onPointermove: (e: PointerEvent) => void;
@@ -82,7 +114,7 @@ declare var __VLS_14: {
82
114
  onPointercancel: (e: PointerEvent) => void;
83
115
  key: string | number;
84
116
  style: import('vue').CSSProperties;
85
- }, __VLS_56: {
117
+ }, __VLS_74: {
86
118
  context: import('..').AnnotationSelectionContext;
87
119
  selected: boolean;
88
120
  rect: {
@@ -101,7 +133,7 @@ declare var __VLS_14: {
101
133
  onPointerdown: (e: PointerEvent) => void;
102
134
  onTouchstart: (e: TouchEvent) => void;
103
135
  };
104
- }, __VLS_59: {
136
+ }, __VLS_77: {
105
137
  backgroundColor: "#007ACC";
106
138
  onPointerdown: (e: PointerEvent) => void;
107
139
  onPointermove: (e: PointerEvent) => void;
@@ -109,7 +141,7 @@ declare var __VLS_14: {
109
141
  onPointercancel: (e: PointerEvent) => void;
110
142
  key: string | number;
111
143
  style: import('vue').CSSProperties;
112
- }, __VLS_62: {
144
+ }, __VLS_80: {
113
145
  backgroundColor: "#007ACC";
114
146
  onPointerdown: (e: PointerEvent) => void;
115
147
  onPointermove: (e: PointerEvent) => void;
@@ -117,7 +149,7 @@ declare var __VLS_14: {
117
149
  onPointercancel: (e: PointerEvent) => void;
118
150
  key: string | number;
119
151
  style: import('vue').CSSProperties;
120
- }, __VLS_77: {
152
+ }, __VLS_95: {
121
153
  context: import('..').AnnotationSelectionContext;
122
154
  selected: boolean;
123
155
  rect: {
@@ -136,7 +168,7 @@ declare var __VLS_14: {
136
168
  onPointerdown: (e: PointerEvent) => void;
137
169
  onTouchstart: (e: TouchEvent) => void;
138
170
  };
139
- }, __VLS_80: {
171
+ }, __VLS_98: {
140
172
  backgroundColor: "#007ACC";
141
173
  onPointerdown: (e: PointerEvent) => void;
142
174
  onPointermove: (e: PointerEvent) => void;
@@ -144,7 +176,7 @@ declare var __VLS_14: {
144
176
  onPointercancel: (e: PointerEvent) => void;
145
177
  key: string | number;
146
178
  style: import('vue').CSSProperties;
147
- }, __VLS_83: {
179
+ }, __VLS_101: {
148
180
  backgroundColor: "#007ACC";
149
181
  onPointerdown: (e: PointerEvent) => void;
150
182
  onPointermove: (e: PointerEvent) => void;
@@ -152,7 +184,7 @@ declare var __VLS_14: {
152
184
  onPointercancel: (e: PointerEvent) => void;
153
185
  key: string | number;
154
186
  style: import('vue').CSSProperties;
155
- }, __VLS_98: {
187
+ }, __VLS_116: {
156
188
  context: import('..').AnnotationSelectionContext;
157
189
  selected: boolean;
158
190
  rect: {
@@ -171,7 +203,7 @@ declare var __VLS_14: {
171
203
  onPointerdown: (e: PointerEvent) => void;
172
204
  onTouchstart: (e: TouchEvent) => void;
173
205
  };
174
- }, __VLS_101: {
206
+ }, __VLS_119: {
175
207
  backgroundColor: "#007ACC";
176
208
  onPointerdown: (e: PointerEvent) => void;
177
209
  onPointermove: (e: PointerEvent) => void;
@@ -179,7 +211,7 @@ declare var __VLS_14: {
179
211
  onPointercancel: (e: PointerEvent) => void;
180
212
  key: string | number;
181
213
  style: import('vue').CSSProperties;
182
- }, __VLS_104: {
214
+ }, __VLS_122: {
183
215
  backgroundColor: "#007ACC";
184
216
  onPointerdown: (e: PointerEvent) => void;
185
217
  onPointermove: (e: PointerEvent) => void;
@@ -187,7 +219,7 @@ declare var __VLS_14: {
187
219
  onPointercancel: (e: PointerEvent) => void;
188
220
  key: string | number;
189
221
  style: import('vue').CSSProperties;
190
- }, __VLS_119: {
222
+ }, __VLS_137: {
191
223
  context: import('..').AnnotationSelectionContext;
192
224
  selected: boolean;
193
225
  rect: {
@@ -206,7 +238,7 @@ declare var __VLS_14: {
206
238
  onPointerdown: (e: PointerEvent) => void;
207
239
  onTouchstart: (e: TouchEvent) => void;
208
240
  };
209
- }, __VLS_122: {
241
+ }, __VLS_140: {
210
242
  backgroundColor: "#007ACC";
211
243
  onPointerdown: (e: PointerEvent) => void;
212
244
  onPointermove: (e: PointerEvent) => void;
@@ -214,7 +246,7 @@ declare var __VLS_14: {
214
246
  onPointercancel: (e: PointerEvent) => void;
215
247
  key: string | number;
216
248
  style: import('vue').CSSProperties;
217
- }, __VLS_125: {
249
+ }, __VLS_143: {
218
250
  backgroundColor: "#007ACC";
219
251
  onPointerdown: (e: PointerEvent) => void;
220
252
  onPointermove: (e: PointerEvent) => void;
@@ -222,7 +254,7 @@ declare var __VLS_14: {
222
254
  onPointercancel: (e: PointerEvent) => void;
223
255
  key: string | number;
224
256
  style: import('vue').CSSProperties;
225
- }, __VLS_140: {
257
+ }, __VLS_158: {
226
258
  context: import('..').AnnotationSelectionContext;
227
259
  selected: boolean;
228
260
  rect: {
@@ -241,7 +273,7 @@ declare var __VLS_14: {
241
273
  onPointerdown: (e: PointerEvent) => void;
242
274
  onTouchstart: (e: TouchEvent) => void;
243
275
  };
244
- }, __VLS_143: {
276
+ }, __VLS_161: {
245
277
  backgroundColor: "#007ACC";
246
278
  onPointerdown: (e: PointerEvent) => void;
247
279
  onPointermove: (e: PointerEvent) => void;
@@ -249,7 +281,7 @@ declare var __VLS_14: {
249
281
  onPointercancel: (e: PointerEvent) => void;
250
282
  key: string | number;
251
283
  style: import('vue').CSSProperties;
252
- }, __VLS_146: {
284
+ }, __VLS_164: {
253
285
  backgroundColor: "#007ACC";
254
286
  onPointerdown: (e: PointerEvent) => void;
255
287
  onPointermove: (e: PointerEvent) => void;
@@ -257,7 +289,7 @@ declare var __VLS_14: {
257
289
  onPointercancel: (e: PointerEvent) => void;
258
290
  key: string | number;
259
291
  style: import('vue').CSSProperties;
260
- }, __VLS_161: {
292
+ }, __VLS_179: {
261
293
  context: import('..').AnnotationSelectionContext;
262
294
  selected: boolean;
263
295
  rect: {
@@ -276,7 +308,7 @@ declare var __VLS_14: {
276
308
  onPointerdown: (e: PointerEvent) => void;
277
309
  onTouchstart: (e: TouchEvent) => void;
278
310
  };
279
- }, __VLS_164: {
311
+ }, __VLS_182: {
280
312
  backgroundColor: "#007ACC";
281
313
  onPointerdown: (e: PointerEvent) => void;
282
314
  onPointermove: (e: PointerEvent) => void;
@@ -284,7 +316,7 @@ declare var __VLS_14: {
284
316
  onPointercancel: (e: PointerEvent) => void;
285
317
  key: string | number;
286
318
  style: import('vue').CSSProperties;
287
- }, __VLS_167: {
319
+ }, __VLS_185: {
288
320
  backgroundColor: "#007ACC";
289
321
  onPointerdown: (e: PointerEvent) => void;
290
322
  onPointermove: (e: PointerEvent) => void;
@@ -292,7 +324,7 @@ declare var __VLS_14: {
292
324
  onPointercancel: (e: PointerEvent) => void;
293
325
  key: string | number;
294
326
  style: import('vue').CSSProperties;
295
- }, __VLS_182: {
327
+ }, __VLS_200: {
296
328
  context: import('..').AnnotationSelectionContext;
297
329
  selected: boolean;
298
330
  rect: {
@@ -311,7 +343,7 @@ declare var __VLS_14: {
311
343
  onPointerdown: (e: PointerEvent) => void;
312
344
  onTouchstart: (e: TouchEvent) => void;
313
345
  };
314
- }, __VLS_197: {
346
+ }, __VLS_215: {
315
347
  context: import('..').AnnotationSelectionContext;
316
348
  selected: boolean;
317
349
  rect: {
@@ -330,7 +362,7 @@ declare var __VLS_14: {
330
362
  onPointerdown: (e: PointerEvent) => void;
331
363
  onTouchstart: (e: TouchEvent) => void;
332
364
  };
333
- }, __VLS_212: {
365
+ }, __VLS_230: {
334
366
  context: import('..').AnnotationSelectionContext;
335
367
  selected: boolean;
336
368
  rect: {
@@ -349,7 +381,7 @@ declare var __VLS_14: {
349
381
  onPointerdown: (e: PointerEvent) => void;
350
382
  onTouchstart: (e: TouchEvent) => void;
351
383
  };
352
- }, __VLS_227: {
384
+ }, __VLS_245: {
353
385
  context: import('..').AnnotationSelectionContext;
354
386
  selected: boolean;
355
387
  rect: {
@@ -368,63 +400,129 @@ declare var __VLS_14: {
368
400
  onPointerdown: (e: PointerEvent) => void;
369
401
  onTouchstart: (e: TouchEvent) => void;
370
402
  };
403
+ }, __VLS_260: {
404
+ context: import('..').AnnotationSelectionContext;
405
+ selected: boolean;
406
+ rect: {
407
+ origin: {
408
+ x: number;
409
+ y: number;
410
+ };
411
+ size: {
412
+ width: number;
413
+ height: number;
414
+ };
415
+ };
416
+ placement: import('@embedpdf/utils/vue').SelectionMenuPlacement;
417
+ menuWrapperProps: {
418
+ style: import('vue').CSSProperties;
419
+ onPointerdown: (e: PointerEvent) => void;
420
+ onTouchstart: (e: TouchEvent) => void;
421
+ };
422
+ }, __VLS_263: {
423
+ backgroundColor: "#007ACC";
424
+ onPointerdown: (e: PointerEvent) => void;
425
+ onPointermove: (e: PointerEvent) => void;
426
+ onPointerup: (e: PointerEvent) => void;
427
+ onPointercancel: (e: PointerEvent) => void;
428
+ key: string | number;
429
+ style: import('vue').CSSProperties;
430
+ }, __VLS_272: {
431
+ context: import('..').GroupSelectionContext;
432
+ selected: boolean;
433
+ rect: {
434
+ origin: {
435
+ x: number;
436
+ y: number;
437
+ };
438
+ size: {
439
+ width: number;
440
+ height: number;
441
+ };
442
+ };
443
+ placement: import('@embedpdf/utils/vue').SelectionMenuPlacement;
444
+ menuWrapperProps: {
445
+ style: import('vue').CSSProperties;
446
+ onPointerdown: (e: PointerEvent) => void;
447
+ onTouchstart: (e: TouchEvent) => void;
448
+ };
449
+ }, __VLS_275: {
450
+ backgroundColor: string;
451
+ onPointerdown: (e: PointerEvent) => void;
452
+ onPointermove: (e: PointerEvent) => void;
453
+ onPointerup: (e: PointerEvent) => void;
454
+ onPointercancel: (e: PointerEvent) => void;
455
+ key: string | number;
456
+ style: import('vue').CSSProperties;
371
457
  };
372
458
  type __VLS_Slots = {} & {
373
459
  'selection-menu'?: (props: typeof __VLS_14) => any;
374
460
  } & {
375
461
  'resize-handle'?: (props: typeof __VLS_17) => any;
376
462
  } & {
377
- 'vertex-handle'?: (props: typeof __VLS_20) => any;
463
+ 'selection-menu'?: (props: typeof __VLS_32) => any;
464
+ } & {
465
+ 'resize-handle'?: (props: typeof __VLS_35) => any;
466
+ } & {
467
+ 'vertex-handle'?: (props: typeof __VLS_38) => any;
468
+ } & {
469
+ 'selection-menu'?: (props: typeof __VLS_53) => any;
470
+ } & {
471
+ 'resize-handle'?: (props: typeof __VLS_56) => any;
472
+ } & {
473
+ 'vertex-handle'?: (props: typeof __VLS_59) => any;
474
+ } & {
475
+ 'selection-menu'?: (props: typeof __VLS_74) => any;
378
476
  } & {
379
- 'selection-menu'?: (props: typeof __VLS_35) => any;
477
+ 'resize-handle'?: (props: typeof __VLS_77) => any;
380
478
  } & {
381
- 'resize-handle'?: (props: typeof __VLS_38) => any;
479
+ 'vertex-handle'?: (props: typeof __VLS_80) => any;
382
480
  } & {
383
- 'vertex-handle'?: (props: typeof __VLS_41) => any;
481
+ 'selection-menu'?: (props: typeof __VLS_95) => any;
384
482
  } & {
385
- 'selection-menu'?: (props: typeof __VLS_56) => any;
483
+ 'resize-handle'?: (props: typeof __VLS_98) => any;
386
484
  } & {
387
- 'resize-handle'?: (props: typeof __VLS_59) => any;
485
+ 'vertex-handle'?: (props: typeof __VLS_101) => any;
388
486
  } & {
389
- 'vertex-handle'?: (props: typeof __VLS_62) => any;
487
+ 'selection-menu'?: (props: typeof __VLS_116) => any;
390
488
  } & {
391
- 'selection-menu'?: (props: typeof __VLS_77) => any;
489
+ 'resize-handle'?: (props: typeof __VLS_119) => any;
392
490
  } & {
393
- 'resize-handle'?: (props: typeof __VLS_80) => any;
491
+ 'vertex-handle'?: (props: typeof __VLS_122) => any;
394
492
  } & {
395
- 'vertex-handle'?: (props: typeof __VLS_83) => any;
493
+ 'selection-menu'?: (props: typeof __VLS_137) => any;
396
494
  } & {
397
- 'selection-menu'?: (props: typeof __VLS_98) => any;
495
+ 'resize-handle'?: (props: typeof __VLS_140) => any;
398
496
  } & {
399
- 'resize-handle'?: (props: typeof __VLS_101) => any;
497
+ 'vertex-handle'?: (props: typeof __VLS_143) => any;
400
498
  } & {
401
- 'vertex-handle'?: (props: typeof __VLS_104) => any;
499
+ 'selection-menu'?: (props: typeof __VLS_158) => any;
402
500
  } & {
403
- 'selection-menu'?: (props: typeof __VLS_119) => any;
501
+ 'resize-handle'?: (props: typeof __VLS_161) => any;
404
502
  } & {
405
- 'resize-handle'?: (props: typeof __VLS_122) => any;
503
+ 'vertex-handle'?: (props: typeof __VLS_164) => any;
406
504
  } & {
407
- 'vertex-handle'?: (props: typeof __VLS_125) => any;
505
+ 'selection-menu'?: (props: typeof __VLS_179) => any;
408
506
  } & {
409
- 'selection-menu'?: (props: typeof __VLS_140) => any;
507
+ 'resize-handle'?: (props: typeof __VLS_182) => any;
410
508
  } & {
411
- 'resize-handle'?: (props: typeof __VLS_143) => any;
509
+ 'vertex-handle'?: (props: typeof __VLS_185) => any;
412
510
  } & {
413
- 'vertex-handle'?: (props: typeof __VLS_146) => any;
511
+ 'selection-menu'?: (props: typeof __VLS_200) => any;
414
512
  } & {
415
- 'selection-menu'?: (props: typeof __VLS_161) => any;
513
+ 'selection-menu'?: (props: typeof __VLS_215) => any;
416
514
  } & {
417
- 'resize-handle'?: (props: typeof __VLS_164) => any;
515
+ 'selection-menu'?: (props: typeof __VLS_230) => any;
418
516
  } & {
419
- 'vertex-handle'?: (props: typeof __VLS_167) => any;
517
+ 'selection-menu'?: (props: typeof __VLS_245) => any;
420
518
  } & {
421
- 'selection-menu'?: (props: typeof __VLS_182) => any;
519
+ 'selection-menu'?: (props: typeof __VLS_260) => any;
422
520
  } & {
423
- 'selection-menu'?: (props: typeof __VLS_197) => any;
521
+ 'resize-handle'?: (props: typeof __VLS_263) => any;
424
522
  } & {
425
- 'selection-menu'?: (props: typeof __VLS_212) => any;
523
+ 'group-selection-menu'?: (props: typeof __VLS_272) => any;
426
524
  } & {
427
- 'selection-menu'?: (props: typeof __VLS_227) => any;
525
+ 'resize-handle'?: (props: typeof __VLS_275) => any;
428
526
  };
429
527
  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>;
430
528
  declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;