circuit-json 0.0.254 → 0.0.256
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/README.md +1 -0
- package/dist/index.d.mts +29 -9
- package/dist/index.mjs +3 -1
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
package/dist/index.d.mts
CHANGED
|
@@ -701,6 +701,7 @@ interface PcbPlatedHoleOval {
|
|
|
701
701
|
hole_height: number;
|
|
702
702
|
x: Distance;
|
|
703
703
|
y: Distance;
|
|
704
|
+
ccw_rotation: Rotation;
|
|
704
705
|
layers: LayerRef[];
|
|
705
706
|
port_hints?: string[];
|
|
706
707
|
pcb_component_id?: string;
|
|
@@ -833,6 +834,7 @@ declare const pcb_plated_hole: z.ZodUnion<[z.ZodObject<{
|
|
|
833
834
|
hole_height: z.ZodNumber;
|
|
834
835
|
x: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>;
|
|
835
836
|
y: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>;
|
|
837
|
+
ccw_rotation: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>;
|
|
836
838
|
layers: z.ZodArray<z.ZodEffects<z.ZodUnion<[z.ZodEnum<["top", "bottom", "inner1", "inner2", "inner3", "inner4", "inner5", "inner6"]>, z.ZodObject<{
|
|
837
839
|
name: z.ZodEnum<["top", "bottom", "inner1", "inner2", "inner3", "inner4", "inner5", "inner6"]>;
|
|
838
840
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -857,6 +859,7 @@ declare const pcb_plated_hole: z.ZodUnion<[z.ZodObject<{
|
|
|
857
859
|
pcb_plated_hole_id: string;
|
|
858
860
|
outer_width: number;
|
|
859
861
|
outer_height: number;
|
|
862
|
+
ccw_rotation: number;
|
|
860
863
|
pcb_component_id?: string | undefined;
|
|
861
864
|
subcircuit_id?: string | undefined;
|
|
862
865
|
pcb_group_id?: string | undefined;
|
|
@@ -874,6 +877,7 @@ declare const pcb_plated_hole: z.ZodUnion<[z.ZodObject<{
|
|
|
874
877
|
})[];
|
|
875
878
|
outer_width: number;
|
|
876
879
|
outer_height: number;
|
|
880
|
+
ccw_rotation: string | number;
|
|
877
881
|
pcb_component_id?: string | undefined;
|
|
878
882
|
subcircuit_id?: string | undefined;
|
|
879
883
|
pcb_group_id?: string | undefined;
|
|
@@ -1120,6 +1124,7 @@ declare const pcb_port: z.ZodObject<{
|
|
|
1120
1124
|
}>]>, "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6", "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6" | {
|
|
1121
1125
|
name: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6";
|
|
1122
1126
|
}>, "many">;
|
|
1127
|
+
is_board_pinout: z.ZodOptional<z.ZodBoolean>;
|
|
1123
1128
|
}, "strip", z.ZodTypeAny, {
|
|
1124
1129
|
x: number;
|
|
1125
1130
|
y: number;
|
|
@@ -1130,6 +1135,7 @@ declare const pcb_port: z.ZodObject<{
|
|
|
1130
1135
|
source_port_id: string;
|
|
1131
1136
|
subcircuit_id?: string | undefined;
|
|
1132
1137
|
pcb_group_id?: string | undefined;
|
|
1138
|
+
is_board_pinout?: boolean | undefined;
|
|
1133
1139
|
}, {
|
|
1134
1140
|
x: string | number;
|
|
1135
1141
|
y: string | number;
|
|
@@ -1142,6 +1148,7 @@ declare const pcb_port: z.ZodObject<{
|
|
|
1142
1148
|
subcircuit_id?: string | undefined;
|
|
1143
1149
|
pcb_group_id?: string | undefined;
|
|
1144
1150
|
pcb_port_id?: string | undefined;
|
|
1151
|
+
is_board_pinout?: boolean | undefined;
|
|
1145
1152
|
}>;
|
|
1146
1153
|
type PcbPortInput = z.input<typeof pcb_port>;
|
|
1147
1154
|
/**
|
|
@@ -1157,6 +1164,7 @@ interface PcbPort {
|
|
|
1157
1164
|
x: Distance;
|
|
1158
1165
|
y: Distance;
|
|
1159
1166
|
layers: LayerRef[];
|
|
1167
|
+
is_board_pinout?: boolean;
|
|
1160
1168
|
}
|
|
1161
1169
|
/**
|
|
1162
1170
|
* @deprecated use PcbPort
|
|
@@ -1369,8 +1377,8 @@ declare const pcb_smtpad: z.ZodDiscriminatedUnion<"shape", [z.ZodObject<{
|
|
|
1369
1377
|
height: number;
|
|
1370
1378
|
layer: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6";
|
|
1371
1379
|
shape: "rotated_rect";
|
|
1372
|
-
pcb_smtpad_id: string;
|
|
1373
1380
|
ccw_rotation: number;
|
|
1381
|
+
pcb_smtpad_id: string;
|
|
1374
1382
|
pcb_component_id?: string | undefined;
|
|
1375
1383
|
subcircuit_id?: string | undefined;
|
|
1376
1384
|
pcb_group_id?: string | undefined;
|
|
@@ -1430,9 +1438,9 @@ declare const pcb_smtpad: z.ZodDiscriminatedUnion<"shape", [z.ZodObject<{
|
|
|
1430
1438
|
height: number;
|
|
1431
1439
|
layer: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6";
|
|
1432
1440
|
shape: "rotated_pill";
|
|
1441
|
+
ccw_rotation: number;
|
|
1433
1442
|
pcb_smtpad_id: string;
|
|
1434
1443
|
radius: number;
|
|
1435
|
-
ccw_rotation: number;
|
|
1436
1444
|
pcb_component_id?: string | undefined;
|
|
1437
1445
|
subcircuit_id?: string | undefined;
|
|
1438
1446
|
pcb_group_id?: string | undefined;
|
|
@@ -1449,8 +1457,8 @@ declare const pcb_smtpad: z.ZodDiscriminatedUnion<"shape", [z.ZodObject<{
|
|
|
1449
1457
|
name: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6";
|
|
1450
1458
|
};
|
|
1451
1459
|
shape: "rotated_pill";
|
|
1452
|
-
radius: number;
|
|
1453
1460
|
ccw_rotation: string | number;
|
|
1461
|
+
radius: number;
|
|
1454
1462
|
pcb_component_id?: string | undefined;
|
|
1455
1463
|
subcircuit_id?: string | undefined;
|
|
1456
1464
|
pcb_group_id?: string | undefined;
|
|
@@ -11993,6 +12001,7 @@ declare const any_circuit_element: z.ZodUnion<[z.ZodObject<{
|
|
|
11993
12001
|
hole_height: z.ZodNumber;
|
|
11994
12002
|
x: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>;
|
|
11995
12003
|
y: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>;
|
|
12004
|
+
ccw_rotation: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>;
|
|
11996
12005
|
layers: z.ZodArray<z.ZodEffects<z.ZodUnion<[z.ZodEnum<["top", "bottom", "inner1", "inner2", "inner3", "inner4", "inner5", "inner6"]>, z.ZodObject<{
|
|
11997
12006
|
name: z.ZodEnum<["top", "bottom", "inner1", "inner2", "inner3", "inner4", "inner5", "inner6"]>;
|
|
11998
12007
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -12017,6 +12026,7 @@ declare const any_circuit_element: z.ZodUnion<[z.ZodObject<{
|
|
|
12017
12026
|
pcb_plated_hole_id: string;
|
|
12018
12027
|
outer_width: number;
|
|
12019
12028
|
outer_height: number;
|
|
12029
|
+
ccw_rotation: number;
|
|
12020
12030
|
pcb_component_id?: string | undefined;
|
|
12021
12031
|
subcircuit_id?: string | undefined;
|
|
12022
12032
|
pcb_group_id?: string | undefined;
|
|
@@ -12034,6 +12044,7 @@ declare const any_circuit_element: z.ZodUnion<[z.ZodObject<{
|
|
|
12034
12044
|
})[];
|
|
12035
12045
|
outer_width: number;
|
|
12036
12046
|
outer_height: number;
|
|
12047
|
+
ccw_rotation: string | number;
|
|
12037
12048
|
pcb_component_id?: string | undefined;
|
|
12038
12049
|
subcircuit_id?: string | undefined;
|
|
12039
12050
|
pcb_group_id?: string | undefined;
|
|
@@ -12361,6 +12372,7 @@ declare const any_circuit_element: z.ZodUnion<[z.ZodObject<{
|
|
|
12361
12372
|
}>]>, "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6", "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6" | {
|
|
12362
12373
|
name: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6";
|
|
12363
12374
|
}>, "many">;
|
|
12375
|
+
is_board_pinout: z.ZodOptional<z.ZodBoolean>;
|
|
12364
12376
|
}, "strip", z.ZodTypeAny, {
|
|
12365
12377
|
x: number;
|
|
12366
12378
|
y: number;
|
|
@@ -12371,6 +12383,7 @@ declare const any_circuit_element: z.ZodUnion<[z.ZodObject<{
|
|
|
12371
12383
|
source_port_id: string;
|
|
12372
12384
|
subcircuit_id?: string | undefined;
|
|
12373
12385
|
pcb_group_id?: string | undefined;
|
|
12386
|
+
is_board_pinout?: boolean | undefined;
|
|
12374
12387
|
}, {
|
|
12375
12388
|
x: string | number;
|
|
12376
12389
|
y: string | number;
|
|
@@ -12383,6 +12396,7 @@ declare const any_circuit_element: z.ZodUnion<[z.ZodObject<{
|
|
|
12383
12396
|
subcircuit_id?: string | undefined;
|
|
12384
12397
|
pcb_group_id?: string | undefined;
|
|
12385
12398
|
pcb_port_id?: string | undefined;
|
|
12399
|
+
is_board_pinout?: boolean | undefined;
|
|
12386
12400
|
}>, z.ZodObject<{
|
|
12387
12401
|
type: z.ZodLiteral<"pcb_text">;
|
|
12388
12402
|
pcb_text_id: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
@@ -12784,8 +12798,8 @@ declare const any_circuit_element: z.ZodUnion<[z.ZodObject<{
|
|
|
12784
12798
|
height: number;
|
|
12785
12799
|
layer: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6";
|
|
12786
12800
|
shape: "rotated_rect";
|
|
12787
|
-
pcb_smtpad_id: string;
|
|
12788
12801
|
ccw_rotation: number;
|
|
12802
|
+
pcb_smtpad_id: string;
|
|
12789
12803
|
pcb_component_id?: string | undefined;
|
|
12790
12804
|
subcircuit_id?: string | undefined;
|
|
12791
12805
|
pcb_group_id?: string | undefined;
|
|
@@ -12845,9 +12859,9 @@ declare const any_circuit_element: z.ZodUnion<[z.ZodObject<{
|
|
|
12845
12859
|
height: number;
|
|
12846
12860
|
layer: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6";
|
|
12847
12861
|
shape: "rotated_pill";
|
|
12862
|
+
ccw_rotation: number;
|
|
12848
12863
|
pcb_smtpad_id: string;
|
|
12849
12864
|
radius: number;
|
|
12850
|
-
ccw_rotation: number;
|
|
12851
12865
|
pcb_component_id?: string | undefined;
|
|
12852
12866
|
subcircuit_id?: string | undefined;
|
|
12853
12867
|
pcb_group_id?: string | undefined;
|
|
@@ -12864,8 +12878,8 @@ declare const any_circuit_element: z.ZodUnion<[z.ZodObject<{
|
|
|
12864
12878
|
name: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6";
|
|
12865
12879
|
};
|
|
12866
12880
|
shape: "rotated_pill";
|
|
12867
|
-
radius: number;
|
|
12868
12881
|
ccw_rotation: string | number;
|
|
12882
|
+
radius: number;
|
|
12869
12883
|
pcb_component_id?: string | undefined;
|
|
12870
12884
|
subcircuit_id?: string | undefined;
|
|
12871
12885
|
pcb_group_id?: string | undefined;
|
|
@@ -18121,6 +18135,7 @@ declare const any_soup_element: z.ZodUnion<[z.ZodObject<{
|
|
|
18121
18135
|
hole_height: z.ZodNumber;
|
|
18122
18136
|
x: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>;
|
|
18123
18137
|
y: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>;
|
|
18138
|
+
ccw_rotation: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>;
|
|
18124
18139
|
layers: z.ZodArray<z.ZodEffects<z.ZodUnion<[z.ZodEnum<["top", "bottom", "inner1", "inner2", "inner3", "inner4", "inner5", "inner6"]>, z.ZodObject<{
|
|
18125
18140
|
name: z.ZodEnum<["top", "bottom", "inner1", "inner2", "inner3", "inner4", "inner5", "inner6"]>;
|
|
18126
18141
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -18145,6 +18160,7 @@ declare const any_soup_element: z.ZodUnion<[z.ZodObject<{
|
|
|
18145
18160
|
pcb_plated_hole_id: string;
|
|
18146
18161
|
outer_width: number;
|
|
18147
18162
|
outer_height: number;
|
|
18163
|
+
ccw_rotation: number;
|
|
18148
18164
|
pcb_component_id?: string | undefined;
|
|
18149
18165
|
subcircuit_id?: string | undefined;
|
|
18150
18166
|
pcb_group_id?: string | undefined;
|
|
@@ -18162,6 +18178,7 @@ declare const any_soup_element: z.ZodUnion<[z.ZodObject<{
|
|
|
18162
18178
|
})[];
|
|
18163
18179
|
outer_width: number;
|
|
18164
18180
|
outer_height: number;
|
|
18181
|
+
ccw_rotation: string | number;
|
|
18165
18182
|
pcb_component_id?: string | undefined;
|
|
18166
18183
|
subcircuit_id?: string | undefined;
|
|
18167
18184
|
pcb_group_id?: string | undefined;
|
|
@@ -18489,6 +18506,7 @@ declare const any_soup_element: z.ZodUnion<[z.ZodObject<{
|
|
|
18489
18506
|
}>]>, "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6", "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6" | {
|
|
18490
18507
|
name: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6";
|
|
18491
18508
|
}>, "many">;
|
|
18509
|
+
is_board_pinout: z.ZodOptional<z.ZodBoolean>;
|
|
18492
18510
|
}, "strip", z.ZodTypeAny, {
|
|
18493
18511
|
x: number;
|
|
18494
18512
|
y: number;
|
|
@@ -18499,6 +18517,7 @@ declare const any_soup_element: z.ZodUnion<[z.ZodObject<{
|
|
|
18499
18517
|
source_port_id: string;
|
|
18500
18518
|
subcircuit_id?: string | undefined;
|
|
18501
18519
|
pcb_group_id?: string | undefined;
|
|
18520
|
+
is_board_pinout?: boolean | undefined;
|
|
18502
18521
|
}, {
|
|
18503
18522
|
x: string | number;
|
|
18504
18523
|
y: string | number;
|
|
@@ -18511,6 +18530,7 @@ declare const any_soup_element: z.ZodUnion<[z.ZodObject<{
|
|
|
18511
18530
|
subcircuit_id?: string | undefined;
|
|
18512
18531
|
pcb_group_id?: string | undefined;
|
|
18513
18532
|
pcb_port_id?: string | undefined;
|
|
18533
|
+
is_board_pinout?: boolean | undefined;
|
|
18514
18534
|
}>, z.ZodObject<{
|
|
18515
18535
|
type: z.ZodLiteral<"pcb_text">;
|
|
18516
18536
|
pcb_text_id: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
@@ -18912,8 +18932,8 @@ declare const any_soup_element: z.ZodUnion<[z.ZodObject<{
|
|
|
18912
18932
|
height: number;
|
|
18913
18933
|
layer: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6";
|
|
18914
18934
|
shape: "rotated_rect";
|
|
18915
|
-
pcb_smtpad_id: string;
|
|
18916
18935
|
ccw_rotation: number;
|
|
18936
|
+
pcb_smtpad_id: string;
|
|
18917
18937
|
pcb_component_id?: string | undefined;
|
|
18918
18938
|
subcircuit_id?: string | undefined;
|
|
18919
18939
|
pcb_group_id?: string | undefined;
|
|
@@ -18973,9 +18993,9 @@ declare const any_soup_element: z.ZodUnion<[z.ZodObject<{
|
|
|
18973
18993
|
height: number;
|
|
18974
18994
|
layer: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6";
|
|
18975
18995
|
shape: "rotated_pill";
|
|
18996
|
+
ccw_rotation: number;
|
|
18976
18997
|
pcb_smtpad_id: string;
|
|
18977
18998
|
radius: number;
|
|
18978
|
-
ccw_rotation: number;
|
|
18979
18999
|
pcb_component_id?: string | undefined;
|
|
18980
19000
|
subcircuit_id?: string | undefined;
|
|
18981
19001
|
pcb_group_id?: string | undefined;
|
|
@@ -18992,8 +19012,8 @@ declare const any_soup_element: z.ZodUnion<[z.ZodObject<{
|
|
|
18992
19012
|
name: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6";
|
|
18993
19013
|
};
|
|
18994
19014
|
shape: "rotated_pill";
|
|
18995
|
-
radius: number;
|
|
18996
19015
|
ccw_rotation: string | number;
|
|
19016
|
+
radius: number;
|
|
18997
19017
|
pcb_component_id?: string | undefined;
|
|
18998
19018
|
subcircuit_id?: string | undefined;
|
|
18999
19019
|
pcb_group_id?: string | undefined;
|
package/dist/index.mjs
CHANGED
|
@@ -1221,6 +1221,7 @@ var pcb_plated_hole_oval = z65.object({
|
|
|
1221
1221
|
hole_height: z65.number(),
|
|
1222
1222
|
x: distance,
|
|
1223
1223
|
y: distance,
|
|
1224
|
+
ccw_rotation: rotation,
|
|
1224
1225
|
layers: z65.array(layer_ref),
|
|
1225
1226
|
port_hints: z65.array(z65.string()).optional(),
|
|
1226
1227
|
pcb_component_id: z65.string().optional(),
|
|
@@ -1316,7 +1317,8 @@ var pcb_port = z66.object({
|
|
|
1316
1317
|
pcb_component_id: z66.string(),
|
|
1317
1318
|
x: distance,
|
|
1318
1319
|
y: distance,
|
|
1319
|
-
layers: z66.array(layer_ref)
|
|
1320
|
+
layers: z66.array(layer_ref),
|
|
1321
|
+
is_board_pinout: z66.boolean().optional()
|
|
1320
1322
|
}).describe("Defines a port on the PCB");
|
|
1321
1323
|
expectTypesMatch(true);
|
|
1322
1324
|
|