@cntrl-site/sdk 1.25.9 → 1.25.10

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/lib/Rect/Rect.js CHANGED
@@ -185,9 +185,11 @@ class Rect {
185
185
  }
186
186
  static getNormalizedFactor(factor) {
187
187
  const EPSILON = 1e-10;
188
- return factor === 0 ? EPSILON :
189
- factor === Infinity ? 1 / EPSILON :
190
- factor;
188
+ return factor === 0
189
+ ? EPSILON
190
+ : factor === Infinity
191
+ ? 1 / EPSILON
192
+ : factor;
191
193
  }
192
194
  }
193
195
  exports.Rect = Rect;
@@ -16,17 +16,14 @@ export declare const FillLayerSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObje
16
16
  id: z.ZodString;
17
17
  type: z.ZodLiteral<"solid">;
18
18
  value: z.ZodString;
19
- blendMode: z.ZodString;
20
19
  }, "strip", z.ZodTypeAny, {
21
20
  id: string;
22
21
  value: string;
23
22
  type: "solid";
24
- blendMode: string;
25
23
  }, {
26
24
  id: string;
27
25
  value: string;
28
26
  type: "solid";
29
- blendMode: string;
30
27
  }>, z.ZodObject<{
31
28
  id: z.ZodString;
32
29
  type: z.ZodLiteral<"linear-gradient">;
@@ -46,11 +43,9 @@ export declare const FillLayerSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObje
46
43
  start: z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>;
47
44
  end: z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>;
48
45
  angle: z.ZodNumber;
49
- blendMode: z.ZodString;
50
46
  }, "strip", z.ZodTypeAny, {
51
47
  id: string;
52
48
  type: "linear-gradient";
53
- blendMode: string;
54
49
  colors: {
55
50
  position: number;
56
51
  id: string;
@@ -62,7 +57,6 @@ export declare const FillLayerSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObje
62
57
  }, {
63
58
  id: string;
64
59
  type: "linear-gradient";
65
- blendMode: string;
66
60
  colors: {
67
61
  position: number;
68
62
  id: string;
@@ -90,12 +84,10 @@ export declare const FillLayerSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObje
90
84
  center: z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>;
91
85
  diameter: z.ZodNumber;
92
86
  angle: z.ZodNumber;
93
- blendMode: z.ZodString;
94
87
  }, "strip", z.ZodTypeAny, {
95
88
  center: [number, number];
96
89
  id: string;
97
90
  type: "radial-gradient";
98
- blendMode: string;
99
91
  colors: {
100
92
  position: number;
101
93
  id: string;
@@ -107,7 +99,6 @@ export declare const FillLayerSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObje
107
99
  center: [number, number];
108
100
  id: string;
109
101
  type: "radial-gradient";
110
- blendMode: string;
111
102
  colors: {
112
103
  position: number;
113
104
  id: string;
@@ -133,12 +124,10 @@ export declare const FillLayerSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObje
133
124
  }>, "many">;
134
125
  center: z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>;
135
126
  angle: z.ZodNumber;
136
- blendMode: z.ZodString;
137
127
  }, "strip", z.ZodTypeAny, {
138
128
  center: [number, number];
139
129
  id: string;
140
130
  type: "conic-gradient";
141
- blendMode: string;
142
131
  colors: {
143
132
  position: number;
144
133
  id: string;
@@ -149,7 +138,6 @@ export declare const FillLayerSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObje
149
138
  center: [number, number];
150
139
  id: string;
151
140
  type: "conic-gradient";
152
- blendMode: string;
153
141
  colors: {
154
142
  position: number;
155
143
  id: string;
@@ -163,13 +151,11 @@ export declare const FillLayerSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObje
163
151
  behavior: z.ZodString;
164
152
  backgroundSize: z.ZodNumber;
165
153
  opacity: z.ZodNumber;
166
- blendMode: z.ZodString;
167
154
  rotation: z.ZodOptional<z.ZodNumber>;
168
155
  }, "strip", z.ZodTypeAny, {
169
156
  opacity: number;
170
157
  id: string;
171
158
  type: "image";
172
- blendMode: string;
173
159
  src: string;
174
160
  behavior: string;
175
161
  backgroundSize: number;
@@ -178,7 +164,6 @@ export declare const FillLayerSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObje
178
164
  opacity: number;
179
165
  id: string;
180
166
  type: "image";
181
- blendMode: string;
182
167
  src: string;
183
168
  behavior: string;
184
169
  backgroundSize: number;
@@ -12,7 +12,6 @@ exports.FillLayerSchema = zod_1.z.discriminatedUnion('type', [
12
12
  id: zod_1.z.string(),
13
13
  type: zod_1.z.literal('solid'),
14
14
  value: zod_1.z.string(),
15
- blendMode: zod_1.z.string()
16
15
  }),
17
16
  zod_1.z.object({
18
17
  id: zod_1.z.string(),
@@ -20,8 +19,7 @@ exports.FillLayerSchema = zod_1.z.discriminatedUnion('type', [
20
19
  colors: zod_1.z.array(exports.ColorPointSchema),
21
20
  start: zod_1.z.tuple([zod_1.z.number(), zod_1.z.number()]),
22
21
  end: zod_1.z.tuple([zod_1.z.number(), zod_1.z.number()]),
23
- angle: zod_1.z.number(),
24
- blendMode: zod_1.z.string()
22
+ angle: zod_1.z.number()
25
23
  }),
26
24
  zod_1.z.object({
27
25
  id: zod_1.z.string(),
@@ -29,16 +27,14 @@ exports.FillLayerSchema = zod_1.z.discriminatedUnion('type', [
29
27
  colors: zod_1.z.array(exports.ColorPointSchema),
30
28
  center: zod_1.z.tuple([zod_1.z.number(), zod_1.z.number()]),
31
29
  diameter: zod_1.z.number(),
32
- angle: zod_1.z.number(),
33
- blendMode: zod_1.z.string()
30
+ angle: zod_1.z.number()
34
31
  }),
35
32
  zod_1.z.object({
36
33
  id: zod_1.z.string(),
37
34
  type: zod_1.z.literal('conic-gradient'),
38
35
  colors: zod_1.z.array(exports.ColorPointSchema),
39
36
  center: zod_1.z.tuple([zod_1.z.number(), zod_1.z.number()]),
40
- angle: zod_1.z.number(),
41
- blendMode: zod_1.z.string()
37
+ angle: zod_1.z.number()
42
38
  }),
43
39
  zod_1.z.object({
44
40
  id: zod_1.z.string(),
@@ -47,7 +43,6 @@ exports.FillLayerSchema = zod_1.z.discriminatedUnion('type', [
47
43
  behavior: zod_1.z.string(),
48
44
  backgroundSize: zod_1.z.number(),
49
45
  opacity: zod_1.z.number(),
50
- blendMode: zod_1.z.string(),
51
46
  rotation: zod_1.z.number().optional()
52
47
  })
53
48
  ]);