@embedpdf/plugin-annotation 2.7.0 → 2.8.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 (128) hide show
  1. package/dist/index.cjs +1 -1
  2. package/dist/index.cjs.map +1 -1
  3. package/dist/index.js +335 -82
  4. package/dist/index.js.map +1 -1
  5. package/dist/lib/annotation-plugin.d.ts +2 -0
  6. package/dist/lib/handlers/index.d.ts +4 -0
  7. package/dist/lib/handlers/insert-text.handler.d.ts +8 -0
  8. package/dist/lib/handlers/replace-text.handler.d.ts +9 -0
  9. package/dist/lib/handlers/selection-utils.d.ts +7 -0
  10. package/dist/lib/handlers/text-markup.handler.d.ts +7 -0
  11. package/dist/lib/handlers/text.handler.d.ts +3 -0
  12. package/dist/lib/handlers/types.d.ts +12 -0
  13. package/dist/lib/helpers.d.ts +2 -1
  14. package/dist/lib/selectors.d.ts +6 -1
  15. package/dist/lib/tools/default-tools.d.ts +151 -6
  16. package/dist/lib/tools/tools-utils.d.ts +2 -0
  17. package/dist/lib/tools/types.d.ts +2 -0
  18. package/dist/lib/types.d.ts +1 -0
  19. package/dist/preact/index.cjs +1 -1
  20. package/dist/preact/index.cjs.map +1 -1
  21. package/dist/preact/index.js +277 -43
  22. package/dist/preact/index.js.map +1 -1
  23. package/dist/react/index.cjs +1 -1
  24. package/dist/react/index.cjs.map +1 -1
  25. package/dist/react/index.js +277 -43
  26. package/dist/react/index.js.map +1 -1
  27. package/dist/shared/annotation-bounds.d.ts +14 -0
  28. package/dist/shared/components/annotations/caret.d.ts +24 -0
  29. package/dist/shared/components/annotations/circle.d.ts +2 -2
  30. package/dist/shared/components/annotations/free-text.d.ts +2 -2
  31. package/dist/shared/components/annotations/ink.d.ts +2 -2
  32. package/dist/shared/components/annotations/line.d.ts +2 -2
  33. package/dist/shared/components/annotations/link.d.ts +2 -2
  34. package/dist/shared/components/annotations/polygon.d.ts +2 -2
  35. package/dist/shared/components/annotations/polyline.d.ts +8 -4
  36. package/dist/shared/components/annotations/square.d.ts +2 -2
  37. package/dist/shared/components/annotations/stamp.d.ts +2 -2
  38. package/dist/shared/components/annotations/text.d.ts +14 -0
  39. package/dist/shared/components/text-markup/highlight.d.ts +2 -2
  40. package/dist/shared/components/text-markup/squiggly.d.ts +2 -2
  41. package/dist/shared/components/text-markup/strikeout.d.ts +2 -2
  42. package/dist/shared/components/text-markup/underline.d.ts +2 -2
  43. package/dist/shared/components/types.d.ts +2 -2
  44. package/dist/shared-preact/annotation-bounds.d.ts +14 -0
  45. package/dist/shared-preact/components/annotations/caret.d.ts +24 -0
  46. package/dist/shared-preact/components/annotations/circle.d.ts +2 -2
  47. package/dist/shared-preact/components/annotations/free-text.d.ts +2 -2
  48. package/dist/shared-preact/components/annotations/ink.d.ts +2 -2
  49. package/dist/shared-preact/components/annotations/line.d.ts +2 -2
  50. package/dist/shared-preact/components/annotations/link.d.ts +2 -2
  51. package/dist/shared-preact/components/annotations/polygon.d.ts +2 -2
  52. package/dist/shared-preact/components/annotations/polyline.d.ts +8 -4
  53. package/dist/shared-preact/components/annotations/square.d.ts +2 -2
  54. package/dist/shared-preact/components/annotations/stamp.d.ts +2 -2
  55. package/dist/shared-preact/components/annotations/text.d.ts +14 -0
  56. package/dist/shared-preact/components/text-markup/highlight.d.ts +2 -2
  57. package/dist/shared-preact/components/text-markup/squiggly.d.ts +2 -2
  58. package/dist/shared-preact/components/text-markup/strikeout.d.ts +2 -2
  59. package/dist/shared-preact/components/text-markup/underline.d.ts +2 -2
  60. package/dist/shared-preact/components/types.d.ts +2 -2
  61. package/dist/shared-react/annotation-bounds.d.ts +14 -0
  62. package/dist/shared-react/components/annotations/caret.d.ts +24 -0
  63. package/dist/shared-react/components/annotations/circle.d.ts +2 -2
  64. package/dist/shared-react/components/annotations/free-text.d.ts +2 -2
  65. package/dist/shared-react/components/annotations/ink.d.ts +2 -2
  66. package/dist/shared-react/components/annotations/line.d.ts +2 -2
  67. package/dist/shared-react/components/annotations/link.d.ts +2 -2
  68. package/dist/shared-react/components/annotations/polygon.d.ts +2 -2
  69. package/dist/shared-react/components/annotations/polyline.d.ts +8 -4
  70. package/dist/shared-react/components/annotations/square.d.ts +2 -2
  71. package/dist/shared-react/components/annotations/stamp.d.ts +2 -2
  72. package/dist/shared-react/components/annotations/text.d.ts +14 -0
  73. package/dist/shared-react/components/text-markup/highlight.d.ts +2 -2
  74. package/dist/shared-react/components/text-markup/squiggly.d.ts +2 -2
  75. package/dist/shared-react/components/text-markup/strikeout.d.ts +2 -2
  76. package/dist/shared-react/components/text-markup/underline.d.ts +2 -2
  77. package/dist/shared-react/components/types.d.ts +2 -2
  78. package/dist/shared-vue/annotation-bounds.d.ts +14 -0
  79. package/dist/svelte/components/annotations/Caret.svelte.d.ts +13 -0
  80. package/dist/svelte/components/annotations/Circle.svelte.d.ts +1 -1
  81. package/dist/svelte/components/annotations/FreeText.svelte.d.ts +1 -1
  82. package/dist/svelte/components/annotations/Ink.svelte.d.ts +1 -1
  83. package/dist/svelte/components/annotations/Line.svelte.d.ts +1 -1
  84. package/dist/svelte/components/annotations/Link.svelte.d.ts +1 -1
  85. package/dist/svelte/components/annotations/Polygon.svelte.d.ts +1 -1
  86. package/dist/svelte/components/annotations/Polyline.svelte.d.ts +4 -2
  87. package/dist/svelte/components/annotations/Square.svelte.d.ts +1 -1
  88. package/dist/svelte/components/annotations/Stamp.svelte.d.ts +1 -1
  89. package/dist/svelte/components/annotations/Text.svelte.d.ts +10 -0
  90. package/dist/svelte/components/annotations/index.d.ts +1 -0
  91. package/dist/svelte/components/renderers/CaretRenderer.svelte.d.ts +5 -0
  92. package/dist/svelte/components/renderers/TextRenderer.svelte.d.ts +5 -0
  93. package/dist/svelte/components/text-markup/Highlight.svelte.d.ts +1 -1
  94. package/dist/svelte/components/text-markup/Squiggly.svelte.d.ts +1 -1
  95. package/dist/svelte/components/text-markup/Strikeout.svelte.d.ts +1 -1
  96. package/dist/svelte/components/text-markup/Underline.svelte.d.ts +1 -1
  97. package/dist/svelte/context/types.d.ts +1 -1
  98. package/dist/svelte/index.cjs +1 -1
  99. package/dist/svelte/index.cjs.map +1 -1
  100. package/dist/svelte/index.js +350 -147
  101. package/dist/svelte/index.js.map +1 -1
  102. package/dist/vue/components/annotation-container.vue.d.ts +2 -2
  103. package/dist/vue/components/annotation-layer.vue.d.ts +1 -1
  104. package/dist/vue/components/annotations/caret.vue.d.ts +24 -0
  105. package/dist/vue/components/annotations/circle.vue.d.ts +2 -2
  106. package/dist/vue/components/annotations/free-text.vue.d.ts +2 -2
  107. package/dist/vue/components/annotations/index.d.ts +1 -0
  108. package/dist/vue/components/annotations/ink.vue.d.ts +2 -2
  109. package/dist/vue/components/annotations/line.vue.d.ts +2 -2
  110. package/dist/vue/components/annotations/link.vue.d.ts +2 -2
  111. package/dist/vue/components/annotations/polygon.vue.d.ts +2 -2
  112. package/dist/vue/components/annotations/polyline.vue.d.ts +8 -3
  113. package/dist/vue/components/annotations/square.vue.d.ts +2 -2
  114. package/dist/vue/components/annotations/stamp.vue.d.ts +2 -2
  115. package/dist/vue/components/annotations/text.vue.d.ts +14 -0
  116. package/dist/vue/components/annotations.vue.d.ts +1 -1
  117. package/dist/vue/components/renderers/caret-renderer.vue.d.ts +6 -0
  118. package/dist/vue/components/renderers/text-renderer.vue.d.ts +6 -0
  119. package/dist/vue/components/text-markup/highlight.vue.d.ts +2 -2
  120. package/dist/vue/components/text-markup/squiggly.vue.d.ts +2 -2
  121. package/dist/vue/components/text-markup/strikeout.vue.d.ts +2 -2
  122. package/dist/vue/components/text-markup/underline.vue.d.ts +2 -2
  123. package/dist/vue/context/types.d.ts +1 -1
  124. package/dist/vue/index.cjs +1 -1
  125. package/dist/vue/index.cjs.map +1 -1
  126. package/dist/vue/index.js +535 -249
  127. package/dist/vue/index.js.map +1 -1
  128. package/package.json +10 -10
@@ -28,8 +28,8 @@ declare const __VLS_export: <T extends PdfAnnotationObject>(__VLS_props: NonNull
28
28
  selectionMenu?: AnnotationSelectionMenuRenderFn;
29
29
  /** @deprecated Use `selectionOutline.offset` instead */
30
30
  outlineOffset?: number;
31
- onDoubleClick?: (event: PointerEvent | MouseEvent | TouchEvent) => void;
32
- onSelect: (event: PointerEvent | MouseEvent | TouchEvent) => void;
31
+ onDoubleClick?: (event: PointerEvent | MouseEvent) => void;
32
+ onSelect: (event: PointerEvent | MouseEvent) => void;
33
33
  /** Pre-rendered appearance stream images for AP mode rendering */
34
34
  appearance?: AnnotationAppearances<Blob> | null;
35
35
  zIndex?: number;
@@ -42,7 +42,7 @@ declare var __VLS_8: {
42
42
  height: number;
43
43
  };
44
44
  };
45
- placement: import('@embedpdf/utils/vue').SelectionMenuPlacement;
45
+ placement: import('@embedpdf/utils').SelectionMenuPlacement;
46
46
  menuWrapperProps: {
47
47
  style: import('vue').CSSProperties;
48
48
  onPointerdown: (e: PointerEvent) => void;
@@ -0,0 +1,24 @@
1
+ import { Rect } from '@embedpdf/models';
2
+ declare const _default: typeof __VLS_export;
3
+ export default _default;
4
+ declare const __VLS_export: import('vue').DefineComponent<{
5
+ isSelected: boolean;
6
+ strokeColor?: string;
7
+ opacity?: number;
8
+ rect: Rect;
9
+ scale: number;
10
+ onClick?: (e: PointerEvent) => void;
11
+ appearanceActive?: boolean;
12
+ }, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{
13
+ isSelected: boolean;
14
+ strokeColor?: string;
15
+ opacity?: number;
16
+ rect: Rect;
17
+ scale: number;
18
+ onClick?: (e: PointerEvent) => void;
19
+ appearanceActive?: boolean;
20
+ }> & Readonly<{}>, {
21
+ strokeColor: string;
22
+ opacity: number;
23
+ appearanceActive: boolean;
24
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
@@ -11,7 +11,7 @@ declare const __VLS_export: import('vue').DefineComponent<{
11
11
  strokeDashArray?: number[];
12
12
  rect: Rect;
13
13
  scale: number;
14
- onClick?: (e: PointerEvent | TouchEvent) => void;
14
+ onClick?: (e: PointerEvent) => void;
15
15
  appearanceActive?: boolean;
16
16
  }, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{
17
17
  isSelected: boolean;
@@ -23,7 +23,7 @@ declare const __VLS_export: import('vue').DefineComponent<{
23
23
  strokeDashArray?: number[];
24
24
  rect: Rect;
25
25
  scale: number;
26
- onClick?: (e: PointerEvent | TouchEvent) => void;
26
+ onClick?: (e: PointerEvent) => void;
27
27
  appearanceActive?: boolean;
28
28
  }> & Readonly<{}>, {
29
29
  color: string;
@@ -9,7 +9,7 @@ declare const __VLS_export: import('vue').DefineComponent<{
9
9
  annotation: TrackedAnnotation<PdfFreeTextAnnoObject>;
10
10
  pageIndex: number;
11
11
  scale: number;
12
- onClick?: (e: PointerEvent | TouchEvent) => void;
12
+ onClick?: (e: PointerEvent) => void;
13
13
  appearanceActive?: boolean;
14
14
  }, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{
15
15
  documentId: string;
@@ -18,7 +18,7 @@ declare const __VLS_export: import('vue').DefineComponent<{
18
18
  annotation: TrackedAnnotation<PdfFreeTextAnnoObject>;
19
19
  pageIndex: number;
20
20
  scale: number;
21
- onClick?: (e: PointerEvent | TouchEvent) => void;
21
+ onClick?: (e: PointerEvent) => void;
22
22
  appearanceActive?: boolean;
23
23
  }> & Readonly<{}>, {
24
24
  appearanceActive: boolean;
@@ -7,3 +7,4 @@ export { default as Polygon } from './polygon.vue';
7
7
  export { default as Polyline } from './polyline.vue';
8
8
  export { default as Square } from './square.vue';
9
9
  export { default as Stamp } from './stamp.vue';
10
+ export { default as Text } from './text.vue';
@@ -9,7 +9,7 @@ declare const __VLS_export: import('vue').DefineComponent<{
9
9
  inkList: PdfInkListObject[];
10
10
  rect: Rect;
11
11
  scale: number;
12
- onClick?: (e: PointerEvent | TouchEvent) => void;
12
+ onClick?: (e: PointerEvent) => void;
13
13
  appearanceActive?: boolean;
14
14
  }, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{
15
15
  isSelected: boolean;
@@ -19,7 +19,7 @@ declare const __VLS_export: import('vue').DefineComponent<{
19
19
  inkList: PdfInkListObject[];
20
20
  rect: Rect;
21
21
  scale: number;
22
- onClick?: (e: PointerEvent | TouchEvent) => void;
22
+ onClick?: (e: PointerEvent) => void;
23
23
  appearanceActive?: boolean;
24
24
  }> & Readonly<{}>, {
25
25
  opacity: number;
@@ -12,7 +12,7 @@ declare const __VLS_export: import('vue').DefineComponent<{
12
12
  linePoints: LinePoints;
13
13
  lineEndings?: LineEndings;
14
14
  scale: number;
15
- onClick?: (e: PointerEvent | TouchEvent) => void;
15
+ onClick?: (e: PointerEvent) => void;
16
16
  isSelected: boolean;
17
17
  appearanceActive?: boolean;
18
18
  }, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{
@@ -26,7 +26,7 @@ declare const __VLS_export: import('vue').DefineComponent<{
26
26
  linePoints: LinePoints;
27
27
  lineEndings?: LineEndings;
28
28
  scale: number;
29
- onClick?: (e: PointerEvent | TouchEvent) => void;
29
+ onClick?: (e: PointerEvent) => void;
30
30
  isSelected: boolean;
31
31
  appearanceActive?: boolean;
32
32
  }> & Readonly<{}>, {
@@ -17,7 +17,7 @@ declare const __VLS_export: import('vue').DefineComponent<{
17
17
  /** Current page zoom factor */
18
18
  scale: number;
19
19
  /** Click handler (used for selection) */
20
- onClick?: (e: PointerEvent | MouseEvent | TouchEvent) => void;
20
+ onClick?: (e: PointerEvent | MouseEvent) => void;
21
21
  /** Whether this link has an IRT (In Reply To) reference - disables direct interaction */
22
22
  hasIRT?: boolean;
23
23
  }, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{
@@ -36,7 +36,7 @@ declare const __VLS_export: import('vue').DefineComponent<{
36
36
  /** Current page zoom factor */
37
37
  scale: number;
38
38
  /** Click handler (used for selection) */
39
- onClick?: (e: PointerEvent | MouseEvent | TouchEvent) => void;
39
+ onClick?: (e: PointerEvent | MouseEvent) => void;
40
40
  /** Whether this link has an IRT (In Reply To) reference - disables direct interaction */
41
41
  hasIRT?: boolean;
42
42
  }> & Readonly<{}>, {
@@ -12,7 +12,7 @@ declare const __VLS_export: import('vue').DefineComponent<{
12
12
  strokeDashArray?: number[];
13
13
  scale: number;
14
14
  isSelected: boolean;
15
- onClick?: (e: PointerEvent | TouchEvent) => void;
15
+ onClick?: (e: PointerEvent) => void;
16
16
  currentVertex?: Position;
17
17
  handleSize?: number;
18
18
  appearanceActive?: boolean;
@@ -27,7 +27,7 @@ declare const __VLS_export: import('vue').DefineComponent<{
27
27
  strokeDashArray?: number[];
28
28
  scale: number;
29
29
  isSelected: boolean;
30
- onClick?: (e: PointerEvent | TouchEvent) => void;
30
+ onClick?: (e: PointerEvent) => void;
31
31
  currentVertex?: Position;
32
32
  handleSize?: number;
33
33
  appearanceActive?: boolean;
@@ -1,4 +1,4 @@
1
- import { Rect, Position, LineEndings } from '@embedpdf/models';
1
+ import { Rect, Position, LineEndings, PdfAnnotationBorderStyle } from '@embedpdf/models';
2
2
  declare const _default: typeof __VLS_export;
3
3
  export default _default;
4
4
  declare const __VLS_export: import('vue').DefineComponent<{
@@ -8,9 +8,11 @@ declare const __VLS_export: import('vue').DefineComponent<{
8
8
  strokeColor?: string;
9
9
  opacity?: number;
10
10
  strokeWidth: number;
11
+ strokeStyle?: PdfAnnotationBorderStyle;
12
+ strokeDashArray?: number[];
11
13
  scale: number;
12
14
  isSelected: boolean;
13
- onClick?: (e: PointerEvent | TouchEvent) => void;
15
+ onClick?: (e: PointerEvent) => void;
14
16
  lineEndings?: LineEndings;
15
17
  appearanceActive?: boolean;
16
18
  }, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{
@@ -20,14 +22,17 @@ declare const __VLS_export: import('vue').DefineComponent<{
20
22
  strokeColor?: string;
21
23
  opacity?: number;
22
24
  strokeWidth: number;
25
+ strokeStyle?: PdfAnnotationBorderStyle;
26
+ strokeDashArray?: number[];
23
27
  scale: number;
24
28
  isSelected: boolean;
25
- onClick?: (e: PointerEvent | TouchEvent) => void;
29
+ onClick?: (e: PointerEvent) => void;
26
30
  lineEndings?: LineEndings;
27
31
  appearanceActive?: boolean;
28
32
  }> & Readonly<{}>, {
29
33
  strokeColor: string;
30
34
  color: string;
31
35
  opacity: number;
36
+ strokeStyle: PdfAnnotationBorderStyle;
32
37
  appearanceActive: boolean;
33
38
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
@@ -11,7 +11,7 @@ declare const __VLS_export: import('vue').DefineComponent<{
11
11
  strokeDashArray?: number[];
12
12
  rect: Rect;
13
13
  scale: number;
14
- onClick?: (e: PointerEvent | TouchEvent) => void;
14
+ onClick?: (e: PointerEvent) => void;
15
15
  appearanceActive?: boolean;
16
16
  }, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{
17
17
  isSelected: boolean;
@@ -23,7 +23,7 @@ declare const __VLS_export: import('vue').DefineComponent<{
23
23
  strokeDashArray?: number[];
24
24
  rect: Rect;
25
25
  scale: number;
26
- onClick?: (e: PointerEvent | TouchEvent) => void;
26
+ onClick?: (e: PointerEvent) => void;
27
27
  appearanceActive?: boolean;
28
28
  }> & Readonly<{}>, {
29
29
  color: string;
@@ -8,12 +8,12 @@ declare const __VLS_export: import('vue').DefineComponent<{
8
8
  documentId: string;
9
9
  pageIndex: number;
10
10
  scale: number;
11
- onClick: (e: PointerEvent | TouchEvent) => void;
11
+ onClick: (e: PointerEvent) => void;
12
12
  }, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{
13
13
  isSelected: boolean;
14
14
  annotation: TrackedAnnotation<PdfStampAnnoObject>;
15
15
  documentId: string;
16
16
  pageIndex: number;
17
17
  scale: number;
18
- onClick: (e: PointerEvent | TouchEvent) => void;
18
+ onClick: (e: PointerEvent) => void;
19
19
  }> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
@@ -0,0 +1,14 @@
1
+ type __VLS_Props = {
2
+ isSelected: boolean;
3
+ color?: string;
4
+ opacity?: number;
5
+ onClick?: (e: PointerEvent) => void;
6
+ appearanceActive?: boolean;
7
+ };
8
+ declare const __VLS_export: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
9
+ color: string;
10
+ opacity: number;
11
+ appearanceActive: boolean;
12
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
13
+ declare const _default: typeof __VLS_export;
14
+ export default _default;
@@ -31,7 +31,7 @@ declare var __VLS_14: {
31
31
  height: number;
32
32
  };
33
33
  };
34
- placement: import('@embedpdf/utils/vue').SelectionMenuPlacement;
34
+ placement: import('@embedpdf/utils').SelectionMenuPlacement;
35
35
  menuWrapperProps: {
36
36
  style: CSSProperties;
37
37
  onPointerdown: (e: PointerEvent) => void;
@@ -0,0 +1,6 @@
1
+ import { PdfCaretAnnoObject } from '@embedpdf/models';
2
+ import { AnnotationRendererProps } from '../../context/types';
3
+ type __VLS_Props = AnnotationRendererProps<PdfCaretAnnoObject>;
4
+ declare const __VLS_export: 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>;
5
+ declare const _default: typeof __VLS_export;
6
+ export default _default;
@@ -0,0 +1,6 @@
1
+ import { PdfTextAnnoObject } from '@embedpdf/models';
2
+ import { AnnotationRendererProps } from '../../context/types';
3
+ type __VLS_Props = AnnotationRendererProps<PdfTextAnnoObject>;
4
+ declare const __VLS_export: 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>;
5
+ declare const _default: typeof __VLS_export;
6
+ export default _default;
@@ -8,7 +8,7 @@ declare const __VLS_export: import('vue').DefineComponent<{
8
8
  segmentRects: Rect[];
9
9
  rect?: Rect;
10
10
  scale: number;
11
- onClick?: (e: PointerEvent | TouchEvent) => void;
11
+ onClick?: (e: PointerEvent) => void;
12
12
  /** When true, AP image provides the visual; only render hit area */
13
13
  appearanceActive?: boolean;
14
14
  }, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{
@@ -18,7 +18,7 @@ declare const __VLS_export: import('vue').DefineComponent<{
18
18
  segmentRects: Rect[];
19
19
  rect?: Rect;
20
20
  scale: number;
21
- onClick?: (e: PointerEvent | TouchEvent) => void;
21
+ onClick?: (e: PointerEvent) => void;
22
22
  /** When true, AP image provides the visual; only render hit area */
23
23
  appearanceActive?: boolean;
24
24
  }> & Readonly<{}>, {
@@ -8,7 +8,7 @@ declare const __VLS_export: import('vue').DefineComponent<{
8
8
  segmentRects: Rect[];
9
9
  rect?: Rect;
10
10
  scale: number;
11
- onClick?: (e: PointerEvent | TouchEvent) => void;
11
+ onClick?: (e: PointerEvent) => void;
12
12
  /** When true, AP image provides the visual; only render hit area */
13
13
  appearanceActive?: boolean;
14
14
  }, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{
@@ -18,7 +18,7 @@ declare const __VLS_export: import('vue').DefineComponent<{
18
18
  segmentRects: Rect[];
19
19
  rect?: Rect;
20
20
  scale: number;
21
- onClick?: (e: PointerEvent | TouchEvent) => void;
21
+ onClick?: (e: PointerEvent) => void;
22
22
  /** When true, AP image provides the visual; only render hit area */
23
23
  appearanceActive?: boolean;
24
24
  }> & Readonly<{}>, {
@@ -8,7 +8,7 @@ declare const __VLS_export: import('vue').DefineComponent<{
8
8
  segmentRects: Rect[];
9
9
  rect?: Rect;
10
10
  scale: number;
11
- onClick?: (e: PointerEvent | TouchEvent) => void;
11
+ onClick?: (e: PointerEvent) => void;
12
12
  /** When true, AP image provides the visual; only render hit area */
13
13
  appearanceActive?: boolean;
14
14
  }, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{
@@ -18,7 +18,7 @@ declare const __VLS_export: import('vue').DefineComponent<{
18
18
  segmentRects: Rect[];
19
19
  rect?: Rect;
20
20
  scale: number;
21
- onClick?: (e: PointerEvent | TouchEvent) => void;
21
+ onClick?: (e: PointerEvent) => void;
22
22
  /** When true, AP image provides the visual; only render hit area */
23
23
  appearanceActive?: boolean;
24
24
  }> & Readonly<{}>, {
@@ -8,7 +8,7 @@ declare const __VLS_export: import('vue').DefineComponent<{
8
8
  segmentRects: Rect[];
9
9
  rect?: Rect;
10
10
  scale: number;
11
- onClick?: (e: PointerEvent | TouchEvent) => void;
11
+ onClick?: (e: PointerEvent) => void;
12
12
  /** When true, AP image provides the visual; only render hit area */
13
13
  appearanceActive?: boolean;
14
14
  }, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{
@@ -18,7 +18,7 @@ declare const __VLS_export: import('vue').DefineComponent<{
18
18
  segmentRects: Rect[];
19
19
  rect?: Rect;
20
20
  scale: number;
21
- onClick?: (e: PointerEvent | TouchEvent) => void;
21
+ onClick?: (e: PointerEvent) => void;
22
22
  /** When true, AP image provides the visual; only render hit area */
23
23
  appearanceActive?: boolean;
24
24
  }> & Readonly<{}>, {
@@ -5,7 +5,7 @@ import { VertexConfig } from '../../shared-vue/types';
5
5
  /**
6
6
  * Properly typed event for annotation interactions (click, select, etc.)
7
7
  */
8
- export type AnnotationInteractionEvent = PointerEvent | MouseEvent | TouchEvent;
8
+ export type AnnotationInteractionEvent = PointerEvent | MouseEvent;
9
9
  /**
10
10
  * Props passed to custom annotation renderer components
11
11
  */