@embedpdf/plugin-annotation 2.13.0 → 2.14.1
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 +522 -7
- package/dist/index.js.map +1 -1
- package/dist/lib/annotation-plugin.d.ts +25 -0
- package/dist/lib/handlers/callout-free-text.handler.d.ts +3 -0
- package/dist/lib/handlers/index.d.ts +1 -0
- package/dist/lib/handlers/types.d.ts +7 -1
- package/dist/lib/helpers.d.ts +8 -0
- package/dist/lib/patching/patch-utils.d.ts +38 -1
- package/dist/lib/patching/patches/callout-freetext.patch.d.ts +3 -0
- package/dist/lib/patching/patches/index.d.ts +1 -0
- package/dist/lib/tools/default-tools.d.ts +35 -0
- package/dist/lib/types.d.ts +21 -2
- package/dist/preact/index.cjs +1 -1
- package/dist/preact/index.cjs.map +1 -1
- package/dist/preact/index.js +422 -32
- 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 +422 -32
- package/dist/react/index.js.map +1 -1
- package/dist/shared/components/annotation-container.d.ts +13 -1
- package/dist/shared/components/annotations/callout-free-text-preview.d.ts +15 -0
- package/dist/shared/components/annotations/callout-free-text.d.ts +15 -0
- package/dist/shared/components/types.d.ts +12 -0
- package/dist/shared-preact/components/annotation-container.d.ts +13 -1
- package/dist/shared-preact/components/annotations/callout-free-text-preview.d.ts +15 -0
- package/dist/shared-preact/components/annotations/callout-free-text.d.ts +15 -0
- package/dist/shared-preact/components/types.d.ts +12 -0
- package/dist/shared-react/components/annotation-container.d.ts +13 -1
- package/dist/shared-react/components/annotations/callout-free-text-preview.d.ts +15 -0
- package/dist/shared-react/components/annotations/callout-free-text.d.ts +15 -0
- package/dist/shared-react/components/types.d.ts +12 -0
- package/dist/svelte/components/annotations/CalloutFreeText.svelte.d.ts +15 -0
- package/dist/svelte/components/annotations/CalloutFreeTextPreview.svelte.d.ts +10 -0
- package/dist/svelte/components/renderers/CalloutFreeTextRenderer.svelte.d.ts +5 -0
- package/dist/svelte/components/types.d.ts +12 -0
- package/dist/svelte/index.cjs +1 -1
- package/dist/svelte/index.cjs.map +1 -1
- package/dist/svelte/index.js +528 -106
- package/dist/svelte/index.js.map +1 -1
- package/dist/svelte/types.d.ts +12 -0
- package/dist/vue/components/annotation-container.vue.d.ts +12 -0
- package/dist/vue/components/annotations/callout-free-text-preview.vue.d.ts +10 -0
- package/dist/vue/components/annotations/callout-free-text.vue.d.ts +25 -0
- package/dist/vue/components/renderers/callout-free-text-renderer.vue.d.ts +6 -0
- package/dist/vue/index.cjs +1 -1
- package/dist/vue/index.cjs.map +1 -1
- package/dist/vue/index.js +601 -211
- package/dist/vue/index.js.map +1 -1
- package/dist/vue/types.d.ts +12 -0
- package/package.json +12 -12
package/dist/svelte/types.d.ts
CHANGED
|
@@ -7,6 +7,18 @@ export interface AnnotationSelectionContext {
|
|
|
7
7
|
type: 'annotation';
|
|
8
8
|
annotation: TrackedAnnotation;
|
|
9
9
|
pageIndex: number;
|
|
10
|
+
/**
|
|
11
|
+
* Derived: PDF `locked` flag is set OR the annotation is non-interactive.
|
|
12
|
+
* Consumers should disable move/resize/rotate/delete/property-change menu items
|
|
13
|
+
* when this is true.
|
|
14
|
+
*/
|
|
15
|
+
structurallyLocked: boolean;
|
|
16
|
+
/**
|
|
17
|
+
* Derived: PDF `lockedContents` flag is set OR the annotation is non-interactive.
|
|
18
|
+
* Consumers should disable content-editing menu items (e.g. FreeText text edit)
|
|
19
|
+
* when this is true.
|
|
20
|
+
*/
|
|
21
|
+
contentLocked: boolean;
|
|
10
22
|
}
|
|
11
23
|
export interface GroupSelectionContext {
|
|
12
24
|
type: 'group';
|
|
@@ -26,6 +26,18 @@ declare const __VLS_export: <T extends PdfAnnotationObject>(__VLS_props: NonNull
|
|
|
26
26
|
lockAspectRatio?: boolean;
|
|
27
27
|
vertexConfig?: VertexConfig<T>;
|
|
28
28
|
selectionMenu?: AnnotationSelectionMenuRenderFn;
|
|
29
|
+
/**
|
|
30
|
+
* Derived: PDF `locked` flag is set OR the annotation is non-interactive.
|
|
31
|
+
* Threaded into the selection menu context so custom menus can disable move/
|
|
32
|
+
* resize/rotate/delete/property-change items without recomputing flags.
|
|
33
|
+
*/
|
|
34
|
+
structurallyLocked?: boolean;
|
|
35
|
+
/**
|
|
36
|
+
* Derived: PDF `lockedContents` flag is set OR the annotation is non-interactive.
|
|
37
|
+
* Threaded into the selection menu context so custom menus can disable content
|
|
38
|
+
* edit items without recomputing flags.
|
|
39
|
+
*/
|
|
40
|
+
contentLocked?: boolean;
|
|
29
41
|
/** @deprecated Use `selectionOutline.offset` instead */
|
|
30
42
|
outlineOffset?: number;
|
|
31
43
|
onDoubleClick?: (event: PointerEvent | MouseEvent) => void;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { Rect } from '@embedpdf/models';
|
|
2
|
+
import { FreeTextPreviewData } from '../../../lib';
|
|
3
|
+
type __VLS_Props = {
|
|
4
|
+
data: FreeTextPreviewData;
|
|
5
|
+
bounds: Rect;
|
|
6
|
+
scale: number;
|
|
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<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
9
|
+
declare const _default: typeof __VLS_export;
|
|
10
|
+
export default _default;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { PdfFreeTextAnnoObject } from '@embedpdf/models';
|
|
2
|
+
import { TrackedAnnotation } from '../../../lib';
|
|
3
|
+
declare const _default: typeof __VLS_export;
|
|
4
|
+
export default _default;
|
|
5
|
+
declare const __VLS_export: import('vue').DefineComponent<{
|
|
6
|
+
documentId: string;
|
|
7
|
+
isSelected: boolean;
|
|
8
|
+
isEditing: boolean;
|
|
9
|
+
annotation: TrackedAnnotation<PdfFreeTextAnnoObject>;
|
|
10
|
+
pageIndex: number;
|
|
11
|
+
scale: number;
|
|
12
|
+
onClick?: (e: PointerEvent) => void;
|
|
13
|
+
appearanceActive?: boolean;
|
|
14
|
+
}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{
|
|
15
|
+
documentId: string;
|
|
16
|
+
isSelected: boolean;
|
|
17
|
+
isEditing: boolean;
|
|
18
|
+
annotation: TrackedAnnotation<PdfFreeTextAnnoObject>;
|
|
19
|
+
pageIndex: number;
|
|
20
|
+
scale: number;
|
|
21
|
+
onClick?: (e: PointerEvent) => void;
|
|
22
|
+
appearanceActive?: boolean;
|
|
23
|
+
}> & Readonly<{}>, {
|
|
24
|
+
appearanceActive: boolean;
|
|
25
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { PdfFreeTextAnnoObject } from '@embedpdf/models';
|
|
2
|
+
import { AnnotationRendererProps } from '../../context/types';
|
|
3
|
+
type __VLS_Props = AnnotationRendererProps<PdfFreeTextAnnoObject>;
|
|
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;
|