@openlettermarketing/olc-react-sdk 1.6.3 → 1.6.4
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/build/index.js +3 -3
- package/build/index.js.map +1 -1
- package/build/types/utils/helper.d.ts +51 -1
- package/build/types/utils/templateSafetyBorders/biFold.d.ts +2 -0
- package/build/types/utils/templateSafetyBorders/personal.d.ts +2 -0
- package/build/types/utils/templateSafetyBorders/postCards.d.ts +1 -67
- package/build/types/utils/templateSafetyBorders/professional.d.ts +3 -0
- package/build/types/utils/templateSafetyBorders/triFold.d.ts +2 -0
- package/package.json +1 -1
|
@@ -9,7 +9,7 @@ export declare const removeSThroughOne: (input: string) => string;
|
|
|
9
9
|
export declare const hexToRgba: (hex: any, opacity: any) => string;
|
|
10
10
|
export declare const getType: (file: any) => "svg" | "image" | "video";
|
|
11
11
|
export declare const cleanString: (input: string) => string;
|
|
12
|
-
export declare const createBorder: (id: string, x: number, y: number, width: number, height: number, rotation: number) => {
|
|
12
|
+
export declare const createBorder: (id: string, x: number, y: number, width: number, height: number, rotation: number, color?: string) => {
|
|
13
13
|
id: string;
|
|
14
14
|
type: string;
|
|
15
15
|
opacity: number;
|
|
@@ -28,3 +28,53 @@ export declare const createBorder: (id: string, x: number, y: number, width: num
|
|
|
28
28
|
draggable: boolean;
|
|
29
29
|
resizable: boolean;
|
|
30
30
|
};
|
|
31
|
+
export declare const createSafetyTextElement: (id: string, x: number, y: number, width: number, text: string, rotation?: number) => {
|
|
32
|
+
id: string;
|
|
33
|
+
type: string;
|
|
34
|
+
name: string;
|
|
35
|
+
opacity: number;
|
|
36
|
+
visible: boolean;
|
|
37
|
+
selectable: boolean;
|
|
38
|
+
removable: boolean;
|
|
39
|
+
alwaysOnTop: boolean;
|
|
40
|
+
showInExport: boolean;
|
|
41
|
+
x: number;
|
|
42
|
+
y: number;
|
|
43
|
+
width: number;
|
|
44
|
+
height: number;
|
|
45
|
+
rotation: number;
|
|
46
|
+
animations: never[];
|
|
47
|
+
blurEnabled: boolean;
|
|
48
|
+
blurRadius: number;
|
|
49
|
+
brightnessEnabled: boolean;
|
|
50
|
+
brightness: number;
|
|
51
|
+
sepiaEnabled: boolean;
|
|
52
|
+
grayscaleEnabled: boolean;
|
|
53
|
+
shadowEnabled: boolean;
|
|
54
|
+
shadowBlur: number;
|
|
55
|
+
shadowOffsetX: number;
|
|
56
|
+
shadowOffsetY: number;
|
|
57
|
+
shadowColor: string;
|
|
58
|
+
shadowOpacity: number;
|
|
59
|
+
draggable: boolean;
|
|
60
|
+
resizable: boolean;
|
|
61
|
+
contentEditable: boolean;
|
|
62
|
+
styleEditable: boolean;
|
|
63
|
+
text: string;
|
|
64
|
+
fontSize: number;
|
|
65
|
+
fontFamily: string;
|
|
66
|
+
fontStyle: string;
|
|
67
|
+
fontWeight: string;
|
|
68
|
+
fill: string;
|
|
69
|
+
align: string;
|
|
70
|
+
verticalAlign: string;
|
|
71
|
+
strokeWidth: number;
|
|
72
|
+
stroke: string;
|
|
73
|
+
lineHeight: number;
|
|
74
|
+
letterSpacing: number;
|
|
75
|
+
backgroundEnabled: boolean;
|
|
76
|
+
backgroundColor: string;
|
|
77
|
+
backgroundOpacity: number;
|
|
78
|
+
backgroundCornerRadius: number;
|
|
79
|
+
backgroundPadding: number;
|
|
80
|
+
};
|
|
@@ -1,70 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
id: string;
|
|
3
|
-
type: string;
|
|
4
|
-
name?: string;
|
|
5
|
-
opacity: number;
|
|
6
|
-
visible: boolean;
|
|
7
|
-
selectable: boolean;
|
|
8
|
-
removable: boolean;
|
|
9
|
-
alwaysOnTop: boolean;
|
|
10
|
-
showInExport: boolean;
|
|
11
|
-
x?: number;
|
|
12
|
-
y?: number;
|
|
13
|
-
width?: number;
|
|
14
|
-
height?: number;
|
|
15
|
-
rotation?: number;
|
|
16
|
-
text?: string;
|
|
17
|
-
fontWeight?: string;
|
|
18
|
-
fill?: string;
|
|
19
|
-
align?: string;
|
|
20
|
-
verticalAlign?: string;
|
|
21
|
-
strokeWidth?: number;
|
|
22
|
-
stroke?: string;
|
|
23
|
-
lineHeight?: number;
|
|
24
|
-
letterSpacing?: number;
|
|
25
|
-
backgroundEnabled?: boolean;
|
|
26
|
-
backgroundColor?: string;
|
|
27
|
-
backgroundOpacity?: number;
|
|
28
|
-
backgroundCornerRadius?: number;
|
|
29
|
-
backgroundPadding?: number;
|
|
30
|
-
fontSize?: number;
|
|
31
|
-
fontFamily?: string;
|
|
32
|
-
fontStyle?: string;
|
|
33
|
-
animations?: any[];
|
|
34
|
-
blurEnabled?: boolean;
|
|
35
|
-
blurRadius?: number;
|
|
36
|
-
brightnessEnabled?: boolean;
|
|
37
|
-
brightness?: number;
|
|
38
|
-
sepiaEnabled?: boolean;
|
|
39
|
-
grayscaleEnabled?: boolean;
|
|
40
|
-
shadowEnabled?: boolean;
|
|
41
|
-
shadowBlur?: number;
|
|
42
|
-
shadowOffsetX?: number;
|
|
43
|
-
shadowOffsetY?: number;
|
|
44
|
-
shadowColor?: string;
|
|
45
|
-
shadowOpacity?: number;
|
|
46
|
-
draggable?: boolean;
|
|
47
|
-
resizable?: boolean;
|
|
48
|
-
contentEditable?: boolean;
|
|
49
|
-
styleEditable?: boolean;
|
|
50
|
-
color?: string;
|
|
51
|
-
dash?: number[];
|
|
52
|
-
startHead?: string;
|
|
53
|
-
endHead?: string;
|
|
54
|
-
children?: Element[];
|
|
55
|
-
}
|
|
56
|
-
interface Page {
|
|
57
|
-
addElement: (element: Element) => void;
|
|
58
|
-
}
|
|
59
|
-
interface Store {
|
|
60
|
-
width: number;
|
|
61
|
-
height: number;
|
|
62
|
-
pages: Page[];
|
|
63
|
-
history: {
|
|
64
|
-
clear: () => void;
|
|
65
|
-
};
|
|
66
|
-
}
|
|
1
|
+
import { Store } from "./types";
|
|
67
2
|
export declare const addSafetyBordersTo4x6PostCard: (store: Store) => void;
|
|
68
3
|
export declare const addSafetyBordersTo6x9PostCard: (store: Store) => void;
|
|
69
4
|
export declare const addSafetyBordersTo6x11PostCard: (store: Store) => void;
|
|
70
|
-
export {};
|