@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.
- package/dist/index.cjs +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +1131 -203
- package/dist/index.js.map +1 -1
- package/dist/lib/annotation-plugin.d.ts +2 -0
- package/dist/lib/geometry/cloudy-border.d.ts +90 -0
- package/dist/lib/geometry/index.d.ts +1 -0
- package/dist/lib/handlers/index.d.ts +4 -0
- package/dist/lib/handlers/insert-text.handler.d.ts +8 -0
- package/dist/lib/handlers/replace-text.handler.d.ts +9 -0
- package/dist/lib/handlers/selection-utils.d.ts +7 -0
- package/dist/lib/handlers/text-markup.handler.d.ts +7 -0
- package/dist/lib/handlers/text.handler.d.ts +3 -0
- package/dist/lib/handlers/types.d.ts +14 -1
- package/dist/lib/helpers.d.ts +2 -1
- package/dist/lib/selectors.d.ts +6 -1
- package/dist/lib/tools/default-tools.d.ts +141 -45
- package/dist/lib/tools/tools-utils.d.ts +2 -0
- package/dist/lib/tools/types.d.ts +34 -1
- package/dist/lib/types.d.ts +1 -0
- package/dist/preact/index.cjs +1 -1
- package/dist/preact/index.cjs.map +1 -1
- package/dist/preact/index.js +621 -274
- package/dist/preact/index.js.map +1 -1
- package/dist/react/index.cjs +1 -1
- package/dist/react/index.cjs.map +1 -1
- package/dist/react/index.js +621 -274
- package/dist/react/index.js.map +1 -1
- package/dist/shared/annotation-bounds.d.ts +14 -0
- package/dist/shared/components/annotation-container.d.ts +4 -2
- package/dist/shared/components/annotations/caret.d.ts +24 -0
- package/dist/shared/components/annotations/circle.d.ts +8 -4
- package/dist/shared/components/annotations/free-text.d.ts +2 -2
- package/dist/shared/components/annotations/ink.d.ts +2 -2
- package/dist/shared/components/annotations/line.d.ts +2 -2
- package/dist/shared/components/annotations/link.d.ts +2 -2
- package/dist/shared/components/annotations/polygon.d.ts +5 -3
- package/dist/shared/components/annotations/polyline.d.ts +8 -4
- package/dist/shared/components/annotations/square.d.ts +8 -4
- package/dist/shared/components/annotations/stamp.d.ts +2 -2
- package/dist/shared/components/annotations/text.d.ts +14 -0
- package/dist/shared/components/text-markup/highlight.d.ts +2 -2
- package/dist/shared/components/text-markup/squiggly.d.ts +2 -2
- package/dist/shared/components/text-markup/strikeout.d.ts +2 -2
- package/dist/shared/components/text-markup/underline.d.ts +2 -2
- package/dist/shared/components/types.d.ts +8 -4
- package/dist/shared-preact/annotation-bounds.d.ts +14 -0
- package/dist/shared-preact/components/annotation-container.d.ts +4 -2
- package/dist/shared-preact/components/annotations/caret.d.ts +24 -0
- package/dist/shared-preact/components/annotations/circle.d.ts +8 -4
- package/dist/shared-preact/components/annotations/free-text.d.ts +2 -2
- package/dist/shared-preact/components/annotations/ink.d.ts +2 -2
- package/dist/shared-preact/components/annotations/line.d.ts +2 -2
- package/dist/shared-preact/components/annotations/link.d.ts +2 -2
- package/dist/shared-preact/components/annotations/polygon.d.ts +5 -3
- package/dist/shared-preact/components/annotations/polyline.d.ts +8 -4
- package/dist/shared-preact/components/annotations/square.d.ts +8 -4
- package/dist/shared-preact/components/annotations/stamp.d.ts +2 -2
- package/dist/shared-preact/components/annotations/text.d.ts +14 -0
- package/dist/shared-preact/components/text-markup/highlight.d.ts +2 -2
- package/dist/shared-preact/components/text-markup/squiggly.d.ts +2 -2
- package/dist/shared-preact/components/text-markup/strikeout.d.ts +2 -2
- package/dist/shared-preact/components/text-markup/underline.d.ts +2 -2
- package/dist/shared-preact/components/types.d.ts +8 -4
- package/dist/shared-react/annotation-bounds.d.ts +14 -0
- package/dist/shared-react/components/annotation-container.d.ts +4 -2
- package/dist/shared-react/components/annotations/caret.d.ts +24 -0
- package/dist/shared-react/components/annotations/circle.d.ts +8 -4
- package/dist/shared-react/components/annotations/free-text.d.ts +2 -2
- package/dist/shared-react/components/annotations/ink.d.ts +2 -2
- package/dist/shared-react/components/annotations/line.d.ts +2 -2
- package/dist/shared-react/components/annotations/link.d.ts +2 -2
- package/dist/shared-react/components/annotations/polygon.d.ts +5 -3
- package/dist/shared-react/components/annotations/polyline.d.ts +8 -4
- package/dist/shared-react/components/annotations/square.d.ts +8 -4
- package/dist/shared-react/components/annotations/stamp.d.ts +2 -2
- package/dist/shared-react/components/annotations/text.d.ts +14 -0
- package/dist/shared-react/components/text-markup/highlight.d.ts +2 -2
- package/dist/shared-react/components/text-markup/squiggly.d.ts +2 -2
- package/dist/shared-react/components/text-markup/strikeout.d.ts +2 -2
- package/dist/shared-react/components/text-markup/underline.d.ts +2 -2
- package/dist/shared-react/components/types.d.ts +8 -4
- package/dist/shared-vue/annotation-bounds.d.ts +14 -0
- package/dist/svelte/components/annotations/Caret.svelte.d.ts +13 -0
- package/dist/svelte/components/annotations/Circle.svelte.d.ts +4 -2
- package/dist/svelte/components/annotations/FreeText.svelte.d.ts +1 -1
- package/dist/svelte/components/annotations/Ink.svelte.d.ts +1 -1
- package/dist/svelte/components/annotations/Line.svelte.d.ts +1 -1
- package/dist/svelte/components/annotations/Link.svelte.d.ts +1 -1
- package/dist/svelte/components/annotations/Polygon.svelte.d.ts +2 -1
- package/dist/svelte/components/annotations/Polyline.svelte.d.ts +4 -2
- package/dist/svelte/components/annotations/Square.svelte.d.ts +4 -2
- package/dist/svelte/components/annotations/Stamp.svelte.d.ts +1 -1
- package/dist/svelte/components/annotations/Text.svelte.d.ts +10 -0
- package/dist/svelte/components/annotations/index.d.ts +1 -0
- package/dist/svelte/components/renderers/CaretRenderer.svelte.d.ts +5 -0
- package/dist/svelte/components/renderers/TextRenderer.svelte.d.ts +5 -0
- package/dist/svelte/components/text-markup/Highlight.svelte.d.ts +1 -1
- package/dist/svelte/components/text-markup/Squiggly.svelte.d.ts +1 -1
- package/dist/svelte/components/text-markup/Strikeout.svelte.d.ts +1 -1
- package/dist/svelte/components/text-markup/Underline.svelte.d.ts +1 -1
- package/dist/svelte/components/types.d.ts +2 -1
- package/dist/svelte/context/types.d.ts +7 -3
- package/dist/svelte/index.cjs +1 -1
- package/dist/svelte/index.cjs.map +1 -1
- package/dist/svelte/index.js +831 -416
- package/dist/svelte/index.js.map +1 -1
- package/dist/vue/components/annotation-container.vue.d.ts +9 -8
- package/dist/vue/components/annotation-layer.vue.d.ts +1 -1
- package/dist/vue/components/annotations/caret.vue.d.ts +24 -0
- package/dist/vue/components/annotations/circle.vue.d.ts +7 -3
- package/dist/vue/components/annotations/free-text.vue.d.ts +2 -2
- package/dist/vue/components/annotations/index.d.ts +1 -0
- package/dist/vue/components/annotations/ink.vue.d.ts +2 -2
- package/dist/vue/components/annotations/line.vue.d.ts +2 -2
- package/dist/vue/components/annotations/link.vue.d.ts +2 -2
- package/dist/vue/components/annotations/polygon.vue.d.ts +4 -2
- package/dist/vue/components/annotations/polyline.vue.d.ts +8 -3
- package/dist/vue/components/annotations/square.vue.d.ts +7 -3
- package/dist/vue/components/annotations/stamp.vue.d.ts +2 -2
- package/dist/vue/components/annotations/text.vue.d.ts +14 -0
- package/dist/vue/components/annotations.vue.d.ts +9 -10
- package/dist/vue/components/renderers/caret-renderer.vue.d.ts +6 -0
- package/dist/vue/components/renderers/text-renderer.vue.d.ts +6 -0
- package/dist/vue/components/text-markup/highlight.vue.d.ts +2 -2
- package/dist/vue/components/text-markup/squiggly.vue.d.ts +2 -2
- package/dist/vue/components/text-markup/strikeout.vue.d.ts +2 -2
- package/dist/vue/components/text-markup/underline.vue.d.ts +2 -2
- package/dist/vue/context/types.d.ts +7 -3
- package/dist/vue/index.cjs +1 -1
- package/dist/vue/index.cjs.map +1 -1
- package/dist/vue/index.js +778 -354
- package/dist/vue/index.js.map +1 -1
- 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
|
|
32
|
-
onSelect: (event: PointerEvent | MouseEvent
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
21
|
+
onClick?: (e: PointerEvent) => void;
|
|
22
22
|
appearanceActive?: boolean;
|
|
23
23
|
}> & Readonly<{}>, {
|
|
24
24
|
appearanceActive: boolean;
|
|
@@ -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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
-
/**
|
|
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;
|