@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.
- package/dist/index.cjs +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +335 -82
- package/dist/index.js.map +1 -1
- package/dist/lib/annotation-plugin.d.ts +2 -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 +12 -0
- package/dist/lib/helpers.d.ts +2 -1
- package/dist/lib/selectors.d.ts +6 -1
- package/dist/lib/tools/default-tools.d.ts +151 -6
- package/dist/lib/tools/tools-utils.d.ts +2 -0
- package/dist/lib/tools/types.d.ts +2 -0
- 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 +277 -43
- 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 +277 -43
- package/dist/react/index.js.map +1 -1
- package/dist/shared/annotation-bounds.d.ts +14 -0
- package/dist/shared/components/annotations/caret.d.ts +24 -0
- package/dist/shared/components/annotations/circle.d.ts +2 -2
- 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 +2 -2
- package/dist/shared/components/annotations/polyline.d.ts +8 -4
- package/dist/shared/components/annotations/square.d.ts +2 -2
- 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 +2 -2
- package/dist/shared-preact/annotation-bounds.d.ts +14 -0
- package/dist/shared-preact/components/annotations/caret.d.ts +24 -0
- package/dist/shared-preact/components/annotations/circle.d.ts +2 -2
- 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 +2 -2
- package/dist/shared-preact/components/annotations/polyline.d.ts +8 -4
- package/dist/shared-preact/components/annotations/square.d.ts +2 -2
- 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 +2 -2
- package/dist/shared-react/annotation-bounds.d.ts +14 -0
- package/dist/shared-react/components/annotations/caret.d.ts +24 -0
- package/dist/shared-react/components/annotations/circle.d.ts +2 -2
- 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 +2 -2
- package/dist/shared-react/components/annotations/polyline.d.ts +8 -4
- package/dist/shared-react/components/annotations/square.d.ts +2 -2
- 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 +2 -2
- 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 +1 -1
- 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 +1 -1
- package/dist/svelte/components/annotations/Polyline.svelte.d.ts +4 -2
- package/dist/svelte/components/annotations/Square.svelte.d.ts +1 -1
- 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/context/types.d.ts +1 -1
- package/dist/svelte/index.cjs +1 -1
- package/dist/svelte/index.cjs.map +1 -1
- package/dist/svelte/index.js +350 -147
- package/dist/svelte/index.js.map +1 -1
- package/dist/vue/components/annotation-container.vue.d.ts +2 -2
- 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 +2 -2
- 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 +2 -2
- package/dist/vue/components/annotations/polyline.vue.d.ts +8 -3
- package/dist/vue/components/annotations/square.vue.d.ts +2 -2
- 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 +1 -1
- 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 +1 -1
- package/dist/vue/index.cjs +1 -1
- package/dist/vue/index.cjs.map +1 -1
- package/dist/vue/index.js +535 -249
- package/dist/vue/index.js.map +1 -1
- 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
|
|
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;
|
|
@@ -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>;
|
|
@@ -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
|
|
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
|
|
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
|
|
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,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
|
|
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
|
|
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
|
|
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>;
|
|
@@ -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
|
|
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
|
|
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
|
|
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;
|
|
@@ -31,7 +31,7 @@ declare var __VLS_14: {
|
|
|
31
31
|
height: number;
|
|
32
32
|
};
|
|
33
33
|
};
|
|
34
|
-
placement: import('@embedpdf/utils
|
|
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
|
|
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<{}>, {
|
|
@@ -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
|
|
8
|
+
export type AnnotationInteractionEvent = PointerEvent | MouseEvent;
|
|
9
9
|
/**
|
|
10
10
|
* Props passed to custom annotation renderer components
|
|
11
11
|
*/
|