@pdfme/schemas 6.1.1 → 6.1.2
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/box.d.ts +45 -0
- package/dist/{builtins-CWHhKSVA.js → builtins-BB2DHceW.js} +482 -548
- package/dist/builtins-BB2DHceW.js.map +1 -0
- package/dist/builtins.d.ts +1 -1
- package/dist/builtins.js +1 -1
- package/dist/checkbox/index.d.ts +2 -2
- package/dist/dynamicLayout.d.ts +4 -0
- package/dist/dynamicLayout.js +20 -0
- package/dist/dynamicLayout.js.map +1 -0
- package/dist/{dynamicTemplate-DmuRoTw4.js → dynamicTemplate-B4GCNLF9.js} +19 -53
- package/dist/dynamicTemplate-B4GCNLF9.js.map +1 -0
- package/dist/{lists-B6dmgpkS.js → dynamicTemplate-BwzF9C1L.js} +3 -6
- package/dist/dynamicTemplate-BwzF9C1L.js.map +1 -0
- package/dist/dynamicTemplate-C7MdZxPm.js +75 -0
- package/dist/dynamicTemplate-C7MdZxPm.js.map +1 -0
- package/dist/graphics/image.d.ts +1 -1
- package/dist/graphics/signature.d.ts +1 -1
- package/dist/helper-CEme39Uo.js +40 -0
- package/dist/helper-CEme39Uo.js.map +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +268 -102
- package/dist/index.js.map +1 -1
- package/dist/list/types.d.ts +0 -5
- package/dist/lists.d.ts +2 -1
- package/dist/lists.js +3 -2
- package/dist/measure-L5diay3k.js +612 -0
- package/dist/measure-L5diay3k.js.map +1 -0
- package/dist/multiVariableText/dynamicTemplate.d.ts +2 -0
- package/dist/radioGroup/index.d.ts +2 -2
- package/dist/select/index.d.ts +2 -2
- package/dist/shapes/line.d.ts +1 -1
- package/dist/shapes/rectAndEllipse.d.ts +1 -2
- package/dist/{helper-M_MmV_d5.js → splitRange-DmVDtmzO.js} +132 -6
- package/dist/splitRange-DmVDtmzO.js.map +1 -0
- package/dist/splitRange.d.ts +16 -0
- package/dist/tables/helper.d.ts +12 -104
- package/dist/tables/types.d.ts +2 -6
- package/dist/tables.d.ts +1 -0
- package/dist/tables.js +3 -2
- package/dist/text/constants.d.ts +3 -0
- package/dist/text/dynamicTemplate.d.ts +2 -0
- package/dist/text/linkAnnotation.d.ts +14 -0
- package/dist/text/measure.d.ts +32 -0
- package/dist/text/overflow.d.ts +7 -0
- package/dist/text/richTextPdfRender.d.ts +3 -2
- package/dist/text/types.d.ts +7 -0
- package/dist/texts.d.ts +5 -0
- package/dist/texts.js +4 -0
- package/dist/types.d.ts +16 -0
- package/dist/types.js +0 -0
- package/dist/utils-zDZkqBnX.js +250 -0
- package/dist/utils-zDZkqBnX.js.map +1 -0
- package/dist/utils.d.ts +3 -0
- package/dist/utils.js +3 -215
- package/package.json +16 -1
- package/dist/builtins-CWHhKSVA.js.map +0 -1
- package/dist/dynamicTemplate-DmuRoTw4.js.map +0 -1
- package/dist/helper-M_MmV_d5.js.map +0 -1
- package/dist/lists-B6dmgpkS.js.map +0 -1
- package/dist/utils.js.map +0 -1
package/dist/box.d.ts
ADDED
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import type { PropPanelSchema } from '@pdfme/common';
|
|
2
|
+
export type BoxDimension = {
|
|
3
|
+
top: number;
|
|
4
|
+
right: number;
|
|
5
|
+
bottom: number;
|
|
6
|
+
left: number;
|
|
7
|
+
};
|
|
8
|
+
export type BoxStyleSchema = {
|
|
9
|
+
borderWidth?: Partial<BoxDimension>;
|
|
10
|
+
padding?: Partial<BoxDimension>;
|
|
11
|
+
};
|
|
12
|
+
export type BoxLikeSchema = BoxStyleSchema & {
|
|
13
|
+
position: {
|
|
14
|
+
x: number;
|
|
15
|
+
y: number;
|
|
16
|
+
};
|
|
17
|
+
width: number;
|
|
18
|
+
height: number;
|
|
19
|
+
};
|
|
20
|
+
export declare const createBoxDimension: (value?: number) => BoxDimension;
|
|
21
|
+
export declare const normalizeBoxDimension: (value?: Partial<BoxDimension>) => BoxDimension;
|
|
22
|
+
export declare const getBoxInsets: (schema: BoxStyleSchema) => {
|
|
23
|
+
borderWidth: BoxDimension;
|
|
24
|
+
padding: BoxDimension;
|
|
25
|
+
};
|
|
26
|
+
export declare const getBoxHorizontalInset: (schema: BoxStyleSchema) => number;
|
|
27
|
+
export declare const getBoxVerticalInset: (schema: BoxStyleSchema) => number;
|
|
28
|
+
export declare const getBoxContentArea: <T extends BoxLikeSchema>(schema: T) => {
|
|
29
|
+
position: {
|
|
30
|
+
x: number;
|
|
31
|
+
y: number;
|
|
32
|
+
};
|
|
33
|
+
width: number;
|
|
34
|
+
height: number;
|
|
35
|
+
leftInset: number;
|
|
36
|
+
topInset: number;
|
|
37
|
+
rightInset: number;
|
|
38
|
+
bottomInset: number;
|
|
39
|
+
};
|
|
40
|
+
export declare const hasBoxDimension: (dimension?: Partial<BoxDimension>) => boolean;
|
|
41
|
+
export declare const getSplitBoxDimension: (dimension: Partial<BoxDimension> | undefined, range: {
|
|
42
|
+
start: number;
|
|
43
|
+
end?: number;
|
|
44
|
+
}, totalUnits: number) => BoxDimension;
|
|
45
|
+
export declare const getBoxDimensionPropPanelSchema: (step?: number) => Record<string, PropPanelSchema>;
|