easyeda 0.0.17 → 0.0.19

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.
@@ -123,12 +123,12 @@ declare const EasyEdaJsonSchema: z.ZodObject<{
123
123
  id: string;
124
124
  width: number;
125
125
  height: number;
126
+ lineWidth: number;
126
127
  position: {
127
128
  x: number;
128
129
  y: number;
129
130
  };
130
131
  color: string;
131
- lineWidth: number;
132
132
  } | {
133
133
  type: "ELLIPSE";
134
134
  id: string;
@@ -138,8 +138,8 @@ declare const EasyEdaJsonSchema: z.ZodObject<{
138
138
  };
139
139
  radiusX: number;
140
140
  radiusY: number;
141
- color: string;
142
141
  lineWidth: number;
142
+ color: string;
143
143
  } | {
144
144
  path: string;
145
145
  type: "PIN";
@@ -159,8 +159,8 @@ declare const EasyEdaJsonSchema: z.ZodObject<{
159
159
  x: number;
160
160
  y: number;
161
161
  }[];
162
- color: string;
163
162
  lineWidth: number;
163
+ color: string;
164
164
  } | {
165
165
  type: "POLYGON";
166
166
  id: string;
@@ -193,23 +193,23 @@ declare const EasyEdaJsonSchema: z.ZodObject<{
193
193
  id: string;
194
194
  width: number;
195
195
  height: number;
196
+ lineWidth: number;
196
197
  position: {
197
198
  x: number;
198
199
  y: number;
199
200
  };
200
201
  color: string;
201
- lineWidth: number;
202
202
  }, {
203
203
  type: "RECTANGLE";
204
204
  id: string;
205
205
  width: number;
206
206
  height: number;
207
+ lineWidth: number;
207
208
  position: {
208
209
  x: number;
209
210
  y: number;
210
211
  };
211
212
  color: string;
212
- lineWidth: number;
213
213
  }>, z.ZodObject<{
214
214
  type: z.ZodLiteral<"ELLIPSE">;
215
215
  center: z.ZodObject<{
@@ -236,8 +236,8 @@ declare const EasyEdaJsonSchema: z.ZodObject<{
236
236
  };
237
237
  radiusX: number;
238
238
  radiusY: number;
239
- color: string;
240
239
  lineWidth: number;
240
+ color: string;
241
241
  }, {
242
242
  type: "ELLIPSE";
243
243
  id: string;
@@ -247,8 +247,8 @@ declare const EasyEdaJsonSchema: z.ZodObject<{
247
247
  };
248
248
  radiusX: number;
249
249
  radiusY: number;
250
- color: string;
251
250
  lineWidth: number;
251
+ color: string;
252
252
  }>, z.ZodObject<{
253
253
  type: z.ZodLiteral<"PIN">;
254
254
  visibility: z.ZodEnum<["show", "hide"]>;
@@ -307,8 +307,8 @@ declare const EasyEdaJsonSchema: z.ZodObject<{
307
307
  x: number;
308
308
  y: number;
309
309
  }[];
310
- color: string;
311
310
  lineWidth: number;
311
+ color: string;
312
312
  }, {
313
313
  type: "POLYLINE";
314
314
  id: string;
@@ -316,8 +316,8 @@ declare const EasyEdaJsonSchema: z.ZodObject<{
316
316
  x: number;
317
317
  y: number;
318
318
  }[];
319
- color: string;
320
319
  lineWidth: number;
320
+ color: string;
321
321
  }>, z.ZodObject<{
322
322
  type: z.ZodLiteral<"POLYGON">;
323
323
  points: z.ZodArray<z.ZodObject<{
@@ -378,12 +378,12 @@ declare const EasyEdaJsonSchema: z.ZodObject<{
378
378
  id: string;
379
379
  width: number;
380
380
  height: number;
381
+ lineWidth: number;
381
382
  position: {
382
383
  x: number;
383
384
  y: number;
384
385
  };
385
386
  color: string;
386
- lineWidth: number;
387
387
  } | {
388
388
  type: "ELLIPSE";
389
389
  id: string;
@@ -393,8 +393,8 @@ declare const EasyEdaJsonSchema: z.ZodObject<{
393
393
  };
394
394
  radiusX: number;
395
395
  radiusY: number;
396
- color: string;
397
396
  lineWidth: number;
397
+ color: string;
398
398
  } | {
399
399
  path: string;
400
400
  type: "PIN";
@@ -414,8 +414,8 @@ declare const EasyEdaJsonSchema: z.ZodObject<{
414
414
  x: number;
415
415
  y: number;
416
416
  }[];
417
- color: string;
418
417
  lineWidth: number;
418
+ color: string;
419
419
  } | {
420
420
  type: "POLYGON";
421
421
  id: string;
@@ -628,6 +628,17 @@ declare const EasyEdaJsonSchema: z.ZodObject<{
628
628
  radius: number;
629
629
  id?: string | undefined;
630
630
  layer?: number | undefined;
631
+ } | {
632
+ type: "RECT";
633
+ x: string;
634
+ y: string;
635
+ width: string;
636
+ height: string;
637
+ fillStyle: string;
638
+ lineWidth: number;
639
+ id?: string | undefined;
640
+ layer?: number | undefined;
641
+ rotation?: number | undefined;
631
642
  })[], string[]>, z.ZodArray<z.ZodDiscriminatedUnion<"type", [z.ZodObject<z.objectUtil.extendShape<{
632
643
  type: z.ZodString;
633
644
  id: z.ZodOptional<z.ZodString>;
@@ -947,6 +958,41 @@ declare const EasyEdaJsonSchema: z.ZodObject<{
947
958
  id?: string | undefined;
948
959
  layer?: number | undefined;
949
960
  center?: any;
961
+ }>, z.ZodObject<z.objectUtil.extendShape<{
962
+ type: z.ZodString;
963
+ id: z.ZodOptional<z.ZodString>;
964
+ layer: z.ZodOptional<z.ZodNumber>;
965
+ }, {
966
+ type: z.ZodLiteral<"RECT">;
967
+ x: z.ZodPipeline<z.ZodEffects<z.ZodOptional<z.ZodUnion<[z.ZodNumber, z.ZodString]>>, string, string | number | undefined>, z.ZodString>;
968
+ y: z.ZodPipeline<z.ZodEffects<z.ZodOptional<z.ZodUnion<[z.ZodNumber, z.ZodString]>>, string, string | number | undefined>, z.ZodString>;
969
+ width: z.ZodPipeline<z.ZodEffects<z.ZodOptional<z.ZodUnion<[z.ZodNumber, z.ZodString]>>, string, string | number | undefined>, z.ZodString>;
970
+ height: z.ZodPipeline<z.ZodEffects<z.ZodOptional<z.ZodUnion<[z.ZodNumber, z.ZodString]>>, string, string | number | undefined>, z.ZodString>;
971
+ lineWidth: z.ZodNumber;
972
+ fillStyle: z.ZodString;
973
+ rotation: z.ZodOptional<z.ZodNumber>;
974
+ }>, "strip", z.ZodTypeAny, {
975
+ type: "RECT";
976
+ x: string;
977
+ y: string;
978
+ width: string;
979
+ height: string;
980
+ fillStyle: string;
981
+ lineWidth: number;
982
+ id?: string | undefined;
983
+ layer?: number | undefined;
984
+ rotation?: number | undefined;
985
+ }, {
986
+ type: "RECT";
987
+ fillStyle: string;
988
+ lineWidth: number;
989
+ x?: string | number | undefined;
990
+ y?: string | number | undefined;
991
+ id?: string | undefined;
992
+ layer?: number | undefined;
993
+ width?: string | number | undefined;
994
+ height?: string | number | undefined;
995
+ rotation?: number | undefined;
950
996
  }>]>, "many">>;
951
997
  layers: z.ZodEffects<z.ZodArray<z.ZodString, "many">, {
952
998
  color: string;
@@ -1067,6 +1113,17 @@ declare const EasyEdaJsonSchema: z.ZodObject<{
1067
1113
  radius: number;
1068
1114
  id?: string | undefined;
1069
1115
  layer?: number | undefined;
1116
+ } | {
1117
+ type: "RECT";
1118
+ x: string;
1119
+ y: string;
1120
+ width: string;
1121
+ height: string;
1122
+ fillStyle: string;
1123
+ lineWidth: number;
1124
+ id?: string | undefined;
1125
+ layer?: number | undefined;
1126
+ rotation?: number | undefined;
1070
1127
  })[];
1071
1128
  head: {
1072
1129
  x: number;
@@ -1230,6 +1287,17 @@ declare const EasyEdaJsonSchema: z.ZodObject<{
1230
1287
  radius: number;
1231
1288
  id?: string | undefined;
1232
1289
  layer?: number | undefined;
1290
+ } | {
1291
+ type: "RECT";
1292
+ x: string;
1293
+ y: string;
1294
+ width: string;
1295
+ height: string;
1296
+ fillStyle: string;
1297
+ lineWidth: number;
1298
+ id?: string | undefined;
1299
+ layer?: number | undefined;
1300
+ rotation?: number | undefined;
1233
1301
  })[];
1234
1302
  head: {
1235
1303
  x: number;
@@ -1326,12 +1394,12 @@ declare const EasyEdaJsonSchema: z.ZodObject<{
1326
1394
  id: string;
1327
1395
  width: number;
1328
1396
  height: number;
1397
+ lineWidth: number;
1329
1398
  position: {
1330
1399
  x: number;
1331
1400
  y: number;
1332
1401
  };
1333
1402
  color: string;
1334
- lineWidth: number;
1335
1403
  } | {
1336
1404
  type: "ELLIPSE";
1337
1405
  id: string;
@@ -1341,8 +1409,8 @@ declare const EasyEdaJsonSchema: z.ZodObject<{
1341
1409
  };
1342
1410
  radiusX: number;
1343
1411
  radiusY: number;
1344
- color: string;
1345
1412
  lineWidth: number;
1413
+ color: string;
1346
1414
  } | {
1347
1415
  path: string;
1348
1416
  type: "PIN";
@@ -1362,8 +1430,8 @@ declare const EasyEdaJsonSchema: z.ZodObject<{
1362
1430
  x: number;
1363
1431
  y: number;
1364
1432
  }[];
1365
- color: string;
1366
1433
  lineWidth: number;
1434
+ color: string;
1367
1435
  } | {
1368
1436
  type: "POLYGON";
1369
1437
  id: string;
@@ -1525,6 +1593,17 @@ declare const EasyEdaJsonSchema: z.ZodObject<{
1525
1593
  radius: number;
1526
1594
  id?: string | undefined;
1527
1595
  layer?: number | undefined;
1596
+ } | {
1597
+ type: "RECT";
1598
+ x: string;
1599
+ y: string;
1600
+ width: string;
1601
+ height: string;
1602
+ fillStyle: string;
1603
+ lineWidth: number;
1604
+ id?: string | undefined;
1605
+ layer?: number | undefined;
1606
+ rotation?: number | undefined;
1528
1607
  })[];
1529
1608
  head: {
1530
1609
  x: number;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "easyeda",
3
3
  "type": "module",
4
- "version": "0.0.17",
4
+ "version": "0.0.19",
5
5
  "files": [
6
6
  "dist"
7
7
  ],