@embedpdf/plugin-annotation 2.7.0 → 2.9.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 (134) hide show
  1. package/dist/index.cjs +1 -1
  2. package/dist/index.cjs.map +1 -1
  3. package/dist/index.js +1131 -203
  4. package/dist/index.js.map +1 -1
  5. package/dist/lib/annotation-plugin.d.ts +2 -0
  6. package/dist/lib/geometry/cloudy-border.d.ts +90 -0
  7. package/dist/lib/geometry/index.d.ts +1 -0
  8. package/dist/lib/handlers/index.d.ts +4 -0
  9. package/dist/lib/handlers/insert-text.handler.d.ts +8 -0
  10. package/dist/lib/handlers/replace-text.handler.d.ts +9 -0
  11. package/dist/lib/handlers/selection-utils.d.ts +7 -0
  12. package/dist/lib/handlers/text-markup.handler.d.ts +7 -0
  13. package/dist/lib/handlers/text.handler.d.ts +3 -0
  14. package/dist/lib/handlers/types.d.ts +14 -1
  15. package/dist/lib/helpers.d.ts +2 -1
  16. package/dist/lib/selectors.d.ts +6 -1
  17. package/dist/lib/tools/default-tools.d.ts +141 -45
  18. package/dist/lib/tools/tools-utils.d.ts +2 -0
  19. package/dist/lib/tools/types.d.ts +34 -1
  20. package/dist/lib/types.d.ts +1 -0
  21. package/dist/preact/index.cjs +1 -1
  22. package/dist/preact/index.cjs.map +1 -1
  23. package/dist/preact/index.js +621 -274
  24. package/dist/preact/index.js.map +1 -1
  25. package/dist/react/index.cjs +1 -1
  26. package/dist/react/index.cjs.map +1 -1
  27. package/dist/react/index.js +621 -274
  28. package/dist/react/index.js.map +1 -1
  29. package/dist/shared/annotation-bounds.d.ts +14 -0
  30. package/dist/shared/components/annotation-container.d.ts +4 -2
  31. package/dist/shared/components/annotations/caret.d.ts +24 -0
  32. package/dist/shared/components/annotations/circle.d.ts +8 -4
  33. package/dist/shared/components/annotations/free-text.d.ts +2 -2
  34. package/dist/shared/components/annotations/ink.d.ts +2 -2
  35. package/dist/shared/components/annotations/line.d.ts +2 -2
  36. package/dist/shared/components/annotations/link.d.ts +2 -2
  37. package/dist/shared/components/annotations/polygon.d.ts +5 -3
  38. package/dist/shared/components/annotations/polyline.d.ts +8 -4
  39. package/dist/shared/components/annotations/square.d.ts +8 -4
  40. package/dist/shared/components/annotations/stamp.d.ts +2 -2
  41. package/dist/shared/components/annotations/text.d.ts +14 -0
  42. package/dist/shared/components/text-markup/highlight.d.ts +2 -2
  43. package/dist/shared/components/text-markup/squiggly.d.ts +2 -2
  44. package/dist/shared/components/text-markup/strikeout.d.ts +2 -2
  45. package/dist/shared/components/text-markup/underline.d.ts +2 -2
  46. package/dist/shared/components/types.d.ts +8 -4
  47. package/dist/shared-preact/annotation-bounds.d.ts +14 -0
  48. package/dist/shared-preact/components/annotation-container.d.ts +4 -2
  49. package/dist/shared-preact/components/annotations/caret.d.ts +24 -0
  50. package/dist/shared-preact/components/annotations/circle.d.ts +8 -4
  51. package/dist/shared-preact/components/annotations/free-text.d.ts +2 -2
  52. package/dist/shared-preact/components/annotations/ink.d.ts +2 -2
  53. package/dist/shared-preact/components/annotations/line.d.ts +2 -2
  54. package/dist/shared-preact/components/annotations/link.d.ts +2 -2
  55. package/dist/shared-preact/components/annotations/polygon.d.ts +5 -3
  56. package/dist/shared-preact/components/annotations/polyline.d.ts +8 -4
  57. package/dist/shared-preact/components/annotations/square.d.ts +8 -4
  58. package/dist/shared-preact/components/annotations/stamp.d.ts +2 -2
  59. package/dist/shared-preact/components/annotations/text.d.ts +14 -0
  60. package/dist/shared-preact/components/text-markup/highlight.d.ts +2 -2
  61. package/dist/shared-preact/components/text-markup/squiggly.d.ts +2 -2
  62. package/dist/shared-preact/components/text-markup/strikeout.d.ts +2 -2
  63. package/dist/shared-preact/components/text-markup/underline.d.ts +2 -2
  64. package/dist/shared-preact/components/types.d.ts +8 -4
  65. package/dist/shared-react/annotation-bounds.d.ts +14 -0
  66. package/dist/shared-react/components/annotation-container.d.ts +4 -2
  67. package/dist/shared-react/components/annotations/caret.d.ts +24 -0
  68. package/dist/shared-react/components/annotations/circle.d.ts +8 -4
  69. package/dist/shared-react/components/annotations/free-text.d.ts +2 -2
  70. package/dist/shared-react/components/annotations/ink.d.ts +2 -2
  71. package/dist/shared-react/components/annotations/line.d.ts +2 -2
  72. package/dist/shared-react/components/annotations/link.d.ts +2 -2
  73. package/dist/shared-react/components/annotations/polygon.d.ts +5 -3
  74. package/dist/shared-react/components/annotations/polyline.d.ts +8 -4
  75. package/dist/shared-react/components/annotations/square.d.ts +8 -4
  76. package/dist/shared-react/components/annotations/stamp.d.ts +2 -2
  77. package/dist/shared-react/components/annotations/text.d.ts +14 -0
  78. package/dist/shared-react/components/text-markup/highlight.d.ts +2 -2
  79. package/dist/shared-react/components/text-markup/squiggly.d.ts +2 -2
  80. package/dist/shared-react/components/text-markup/strikeout.d.ts +2 -2
  81. package/dist/shared-react/components/text-markup/underline.d.ts +2 -2
  82. package/dist/shared-react/components/types.d.ts +8 -4
  83. package/dist/shared-vue/annotation-bounds.d.ts +14 -0
  84. package/dist/svelte/components/annotations/Caret.svelte.d.ts +13 -0
  85. package/dist/svelte/components/annotations/Circle.svelte.d.ts +4 -2
  86. package/dist/svelte/components/annotations/FreeText.svelte.d.ts +1 -1
  87. package/dist/svelte/components/annotations/Ink.svelte.d.ts +1 -1
  88. package/dist/svelte/components/annotations/Line.svelte.d.ts +1 -1
  89. package/dist/svelte/components/annotations/Link.svelte.d.ts +1 -1
  90. package/dist/svelte/components/annotations/Polygon.svelte.d.ts +2 -1
  91. package/dist/svelte/components/annotations/Polyline.svelte.d.ts +4 -2
  92. package/dist/svelte/components/annotations/Square.svelte.d.ts +4 -2
  93. package/dist/svelte/components/annotations/Stamp.svelte.d.ts +1 -1
  94. package/dist/svelte/components/annotations/Text.svelte.d.ts +10 -0
  95. package/dist/svelte/components/annotations/index.d.ts +1 -0
  96. package/dist/svelte/components/renderers/CaretRenderer.svelte.d.ts +5 -0
  97. package/dist/svelte/components/renderers/TextRenderer.svelte.d.ts +5 -0
  98. package/dist/svelte/components/text-markup/Highlight.svelte.d.ts +1 -1
  99. package/dist/svelte/components/text-markup/Squiggly.svelte.d.ts +1 -1
  100. package/dist/svelte/components/text-markup/Strikeout.svelte.d.ts +1 -1
  101. package/dist/svelte/components/text-markup/Underline.svelte.d.ts +1 -1
  102. package/dist/svelte/components/types.d.ts +2 -1
  103. package/dist/svelte/context/types.d.ts +7 -3
  104. package/dist/svelte/index.cjs +1 -1
  105. package/dist/svelte/index.cjs.map +1 -1
  106. package/dist/svelte/index.js +831 -416
  107. package/dist/svelte/index.js.map +1 -1
  108. package/dist/vue/components/annotation-container.vue.d.ts +9 -8
  109. package/dist/vue/components/annotation-layer.vue.d.ts +1 -1
  110. package/dist/vue/components/annotations/caret.vue.d.ts +24 -0
  111. package/dist/vue/components/annotations/circle.vue.d.ts +7 -3
  112. package/dist/vue/components/annotations/free-text.vue.d.ts +2 -2
  113. package/dist/vue/components/annotations/index.d.ts +1 -0
  114. package/dist/vue/components/annotations/ink.vue.d.ts +2 -2
  115. package/dist/vue/components/annotations/line.vue.d.ts +2 -2
  116. package/dist/vue/components/annotations/link.vue.d.ts +2 -2
  117. package/dist/vue/components/annotations/polygon.vue.d.ts +4 -2
  118. package/dist/vue/components/annotations/polyline.vue.d.ts +8 -3
  119. package/dist/vue/components/annotations/square.vue.d.ts +7 -3
  120. package/dist/vue/components/annotations/stamp.vue.d.ts +2 -2
  121. package/dist/vue/components/annotations/text.vue.d.ts +14 -0
  122. package/dist/vue/components/annotations.vue.d.ts +9 -10
  123. package/dist/vue/components/renderers/caret-renderer.vue.d.ts +6 -0
  124. package/dist/vue/components/renderers/text-renderer.vue.d.ts +6 -0
  125. package/dist/vue/components/text-markup/highlight.vue.d.ts +2 -2
  126. package/dist/vue/components/text-markup/squiggly.vue.d.ts +2 -2
  127. package/dist/vue/components/text-markup/strikeout.vue.d.ts +2 -2
  128. package/dist/vue/components/text-markup/underline.vue.d.ts +2 -2
  129. package/dist/vue/context/types.d.ts +7 -3
  130. package/dist/vue/index.cjs +1 -1
  131. package/dist/vue/index.cjs.map +1 -1
  132. package/dist/vue/index.js +778 -354
  133. package/dist/vue/index.js.map +1 -1
  134. package/package.json +10 -10
@@ -1,5 +1,5 @@
1
1
  import { CSSProperties } from 'vue';
2
- import { PdfAnnotationObject, AnnotationAppearances } from '@embedpdf/models';
2
+ import { PdfAnnotationObject, AnnotationAppearances, CssBlendMode } from '@embedpdf/models';
3
3
  import { SelectionMenuPlacement } from '@embedpdf/utils/vue';
4
4
  import { TrackedAnnotation } from '../../lib';
5
5
  import { VertexConfig } from '../../shared-vue/types';
@@ -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;
@@ -43,6 +43,7 @@ declare const __VLS_export: <T extends PdfAnnotationObject>(__VLS_props: NonNull
43
43
  vertexUi?: VertexHandleUI;
44
44
  /** Customize rotation handle appearance */
45
45
  rotationUi?: RotationHandleUI;
46
+ blendMode?: CssBlendMode;
46
47
  style?: CSSProperties;
47
48
  }> & (typeof globalThis extends {
48
49
  __VLS_PROPS_FALLBACK: infer P;
@@ -50,6 +51,11 @@ declare const __VLS_export: <T extends PdfAnnotationObject>(__VLS_props: NonNull
50
51
  expose: (exposed: {}) => void;
51
52
  attrs: any;
52
53
  slots: {
54
+ default?: (props: {
55
+ annotation: T;
56
+ appearanceActive: boolean;
57
+ }) => any;
58
+ } & {
53
59
  'rotation-handle'?: (props: {
54
60
  [key: string]: any;
55
61
  key?: string | number;
@@ -63,11 +69,6 @@ declare const __VLS_export: <T extends PdfAnnotationObject>(__VLS_props: NonNull
63
69
  } | {
64
70
  [x: string]: never;
65
71
  }) => any;
66
- } & {
67
- default?: (props: {
68
- annotation: T;
69
- appearanceActive: boolean;
70
- }) => any;
71
72
  } & {
72
73
  'resize-handle'?: (props: {
73
74
  backgroundColor: string;
@@ -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>;
@@ -1,4 +1,4 @@
1
- import { PdfAnnotationBorderStyle, Rect } from '@embedpdf/models';
1
+ import { PdfAnnotationBorderStyle, PdfRectDifferences, Rect } 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<{
@@ -11,8 +11,10 @@ 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
+ cloudyBorderIntensity?: number;
17
+ rectangleDifferences?: PdfRectDifferences;
16
18
  }, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{
17
19
  isSelected: boolean;
18
20
  color?: string;
@@ -23,8 +25,10 @@ declare const __VLS_export: import('vue').DefineComponent<{
23
25
  strokeDashArray?: number[];
24
26
  rect: Rect;
25
27
  scale: number;
26
- onClick?: (e: PointerEvent | TouchEvent) => void;
28
+ onClick?: (e: PointerEvent) => void;
27
29
  appearanceActive?: boolean;
30
+ cloudyBorderIntensity?: number;
31
+ rectangleDifferences?: PdfRectDifferences;
28
32
  }> & Readonly<{}>, {
29
33
  color: string;
30
34
  opacity: number;
@@ -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,10 +12,11 @@ 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;
19
+ cloudyBorderIntensity?: number;
19
20
  }, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{
20
21
  rect: Rect;
21
22
  vertices: Position[];
@@ -27,10 +28,11 @@ declare const __VLS_export: import('vue').DefineComponent<{
27
28
  strokeDashArray?: number[];
28
29
  scale: number;
29
30
  isSelected: boolean;
30
- onClick?: (e: PointerEvent | TouchEvent) => void;
31
+ onClick?: (e: PointerEvent) => void;
31
32
  currentVertex?: Position;
32
33
  handleSize?: number;
33
34
  appearanceActive?: boolean;
35
+ cloudyBorderIntensity?: number;
34
36
  }> & Readonly<{}>, {
35
37
  strokeColor: string;
36
38
  color: string;
@@ -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>;
@@ -1,4 +1,4 @@
1
- import { PdfAnnotationBorderStyle, Rect } from '@embedpdf/models';
1
+ import { PdfAnnotationBorderStyle, PdfRectDifferences, Rect } 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<{
@@ -11,8 +11,10 @@ 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
+ cloudyBorderIntensity?: number;
17
+ rectangleDifferences?: PdfRectDifferences;
16
18
  }, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{
17
19
  isSelected: boolean;
18
20
  color?: string;
@@ -23,8 +25,10 @@ declare const __VLS_export: import('vue').DefineComponent<{
23
25
  strokeDashArray?: number[];
24
26
  rect: Rect;
25
27
  scale: number;
26
- onClick?: (e: PointerEvent | TouchEvent) => void;
28
+ onClick?: (e: PointerEvent) => void;
27
29
  appearanceActive?: boolean;
30
+ cloudyBorderIntensity?: number;
31
+ rectangleDifferences?: PdfRectDifferences;
28
32
  }> & Readonly<{}>, {
29
33
  color: string;
30
34
  opacity: number;
@@ -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;
@@ -1,4 +1,3 @@
1
- import { CSSProperties } from 'vue';
2
1
  import { AnnotationSelectionMenuRenderFn, GroupSelectionMenuRenderFn, ResizeHandleUI, VertexHandleUI, RotationHandleUI, SelectionOutline } from '../types';
3
2
  import { BoxedAnnotationRenderer } from '../context';
4
3
  type __VLS_Props = {
@@ -31,9 +30,9 @@ declare var __VLS_14: {
31
30
  height: number;
32
31
  };
33
32
  };
34
- placement: import('@embedpdf/utils/vue').SelectionMenuPlacement;
33
+ placement: import('@embedpdf/utils').SelectionMenuPlacement;
35
34
  menuWrapperProps: {
36
- style: CSSProperties;
35
+ style: import('vue').CSSProperties;
37
36
  onPointerdown: (e: PointerEvent) => void;
38
37
  onTouchstart: (e: TouchEvent) => void;
39
38
  };
@@ -44,7 +43,7 @@ declare var __VLS_14: {
44
43
  onPointerup: (e: PointerEvent) => void;
45
44
  onPointercancel: (e: PointerEvent) => void;
46
45
  key: string | number | undefined;
47
- style: CSSProperties;
46
+ style: import('vue').CSSProperties;
48
47
  }, __VLS_20: {
49
48
  backgroundColor: string;
50
49
  onPointerdown: (e: PointerEvent) => void;
@@ -52,14 +51,14 @@ declare var __VLS_14: {
52
51
  onPointerup: (e: PointerEvent) => void;
53
52
  onPointercancel: (e: PointerEvent) => void;
54
53
  key: string | number | undefined;
55
- style: CSSProperties;
54
+ style: import('vue').CSSProperties;
56
55
  }, __VLS_23: {
57
56
  [key: string]: any;
58
57
  key?: string | number;
59
- style: CSSProperties;
58
+ style: import('vue').CSSProperties;
60
59
  backgroundColor: string;
61
60
  iconColor: string;
62
- connectorStyle: CSSProperties;
61
+ connectorStyle: import('vue').CSSProperties;
63
62
  showConnector: boolean;
64
63
  opacity: number;
65
64
  border: import('..').RotationHandleBorder;
@@ -72,14 +71,14 @@ declare var __VLS_14: {
72
71
  onPointerup: (e: PointerEvent) => void;
73
72
  onPointercancel: (e: PointerEvent) => void;
74
73
  key: string | number | undefined;
75
- style: CSSProperties;
74
+ style: import('vue').CSSProperties;
76
75
  }, __VLS_38: {
77
76
  [key: string]: any;
78
77
  key?: string | number;
79
- style: CSSProperties;
78
+ style: import('vue').CSSProperties;
80
79
  backgroundColor: string;
81
80
  iconColor: string;
82
- connectorStyle: CSSProperties;
81
+ connectorStyle: import('vue').CSSProperties;
83
82
  showConnector: boolean;
84
83
  opacity: number;
85
84
  border: import('..').RotationHandleBorder;
@@ -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<{}>, {
@@ -1,11 +1,11 @@
1
1
  import { Component, CSSProperties } from 'vue';
2
- import { PdfAnnotationObject } from '@embedpdf/models';
2
+ import { PdfAnnotationObject, PdfBlendMode } from '@embedpdf/models';
3
3
  import { TrackedAnnotation } from '../../lib';
4
4
  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
  */
@@ -46,7 +46,9 @@ export interface AnnotationRendererEntry<T extends PdfAnnotationObject = PdfAnno
46
46
  vertexConfig?: VertexConfig<T>;
47
47
  /** z-index for the annotation container (default: 1, text markup uses 0) */
48
48
  zIndex?: number;
49
- /** Style applied to the annotation container (overrides default blendMode style) */
49
+ /** Default blend mode for this annotation type (used when the annotation object has no blendMode set) */
50
+ defaultBlendMode?: PdfBlendMode;
51
+ /** Style applied to the annotation container — overrides the default blend-mode style. */
50
52
  containerStyle?: (annotation: T) => CSSProperties;
51
53
  /** Type-specific interaction fallbacks used when the tool doesn't define a property */
52
54
  interactionDefaults?: {
@@ -77,6 +79,8 @@ export interface BoxedAnnotationRenderer {
77
79
  component: Component<AnnotationRendererProps>;
78
80
  vertexConfig?: VertexConfig<PdfAnnotationObject>;
79
81
  zIndex?: number;
82
+ defaultBlendMode?: PdfBlendMode;
83
+ /** Style applied to the annotation container — overrides the default blend-mode style. */
80
84
  containerStyle?: (annotation: PdfAnnotationObject) => CSSProperties;
81
85
  interactionDefaults?: {
82
86
  isDraggable?: boolean;