circuit-json 0.0.248 → 0.0.250
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 +2 -0
- package/dist/index.d.mts +30 -0
- package/dist/index.mjs +3 -0
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
package/dist/index.d.mts
CHANGED
|
@@ -757,6 +757,8 @@ interface PcbHoleCircularWithRectPad {
|
|
|
757
757
|
hole_diameter: number;
|
|
758
758
|
rect_pad_width: number;
|
|
759
759
|
rect_pad_height: number;
|
|
760
|
+
hole_offset_x: Distance;
|
|
761
|
+
hole_offset_y: Distance;
|
|
760
762
|
x: Distance;
|
|
761
763
|
y: Distance;
|
|
762
764
|
layers: LayerRef[];
|
|
@@ -885,6 +887,8 @@ declare const pcb_plated_hole: z.ZodUnion<[z.ZodObject<{
|
|
|
885
887
|
hole_diameter: z.ZodNumber;
|
|
886
888
|
rect_pad_width: z.ZodNumber;
|
|
887
889
|
rect_pad_height: z.ZodNumber;
|
|
890
|
+
hole_offset_x: z.ZodDefault<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
|
|
891
|
+
hole_offset_y: z.ZodDefault<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
|
|
888
892
|
x: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>;
|
|
889
893
|
y: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>;
|
|
890
894
|
layers: z.ZodArray<z.ZodEffects<z.ZodUnion<[z.ZodEnum<["top", "bottom", "inner1", "inner2", "inner3", "inner4", "inner5", "inner6"]>, z.ZodObject<{
|
|
@@ -912,6 +916,8 @@ declare const pcb_plated_hole: z.ZodUnion<[z.ZodObject<{
|
|
|
912
916
|
pad_shape: "rect";
|
|
913
917
|
rect_pad_width: number;
|
|
914
918
|
rect_pad_height: number;
|
|
919
|
+
hole_offset_x: number;
|
|
920
|
+
hole_offset_y: number;
|
|
915
921
|
pcb_component_id?: string | undefined;
|
|
916
922
|
subcircuit_id?: string | undefined;
|
|
917
923
|
pcb_group_id?: string | undefined;
|
|
@@ -936,6 +942,8 @@ declare const pcb_plated_hole: z.ZodUnion<[z.ZodObject<{
|
|
|
936
942
|
port_hints?: string[] | undefined;
|
|
937
943
|
pcb_port_id?: string | undefined;
|
|
938
944
|
pcb_plated_hole_id?: string | undefined;
|
|
945
|
+
hole_offset_x?: string | number | undefined;
|
|
946
|
+
hole_offset_y?: string | number | undefined;
|
|
939
947
|
}>, z.ZodObject<{
|
|
940
948
|
type: z.ZodLiteral<"pcb_plated_hole">;
|
|
941
949
|
shape: z.ZodLiteral<"pill_hole_with_rect_pad">;
|
|
@@ -9397,6 +9405,7 @@ declare const cad_component: z.ZodObject<{
|
|
|
9397
9405
|
model_glb_url: z.ZodOptional<z.ZodString>;
|
|
9398
9406
|
model_step_url: z.ZodOptional<z.ZodString>;
|
|
9399
9407
|
model_wrl_url: z.ZodOptional<z.ZodString>;
|
|
9408
|
+
model_unit_to_mm_scale_factor: z.ZodOptional<z.ZodNumber>;
|
|
9400
9409
|
model_jscad: z.ZodOptional<z.ZodAny>;
|
|
9401
9410
|
}, "strip", z.ZodTypeAny, {
|
|
9402
9411
|
type: "cad_component";
|
|
@@ -9428,6 +9437,7 @@ declare const cad_component: z.ZodObject<{
|
|
|
9428
9437
|
model_glb_url?: string | undefined;
|
|
9429
9438
|
model_step_url?: string | undefined;
|
|
9430
9439
|
model_wrl_url?: string | undefined;
|
|
9440
|
+
model_unit_to_mm_scale_factor?: number | undefined;
|
|
9431
9441
|
model_jscad?: any;
|
|
9432
9442
|
}, {
|
|
9433
9443
|
type: "cad_component";
|
|
@@ -9461,6 +9471,7 @@ declare const cad_component: z.ZodObject<{
|
|
|
9461
9471
|
model_glb_url?: string | undefined;
|
|
9462
9472
|
model_step_url?: string | undefined;
|
|
9463
9473
|
model_wrl_url?: string | undefined;
|
|
9474
|
+
model_unit_to_mm_scale_factor?: number | undefined;
|
|
9464
9475
|
model_jscad?: any;
|
|
9465
9476
|
}>;
|
|
9466
9477
|
type CadComponentInput = z.input<typeof cad_component>;
|
|
@@ -9482,6 +9493,7 @@ interface CadComponent {
|
|
|
9482
9493
|
model_glb_url?: string;
|
|
9483
9494
|
model_step_url?: string;
|
|
9484
9495
|
model_wrl_url?: string;
|
|
9496
|
+
model_unit_to_mm_scale_factor?: number;
|
|
9485
9497
|
model_jscad?: any;
|
|
9486
9498
|
}
|
|
9487
9499
|
|
|
@@ -11934,6 +11946,8 @@ declare const any_circuit_element: z.ZodUnion<[z.ZodObject<{
|
|
|
11934
11946
|
hole_diameter: z.ZodNumber;
|
|
11935
11947
|
rect_pad_width: z.ZodNumber;
|
|
11936
11948
|
rect_pad_height: z.ZodNumber;
|
|
11949
|
+
hole_offset_x: z.ZodDefault<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
|
|
11950
|
+
hole_offset_y: z.ZodDefault<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
|
|
11937
11951
|
x: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>;
|
|
11938
11952
|
y: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>;
|
|
11939
11953
|
layers: z.ZodArray<z.ZodEffects<z.ZodUnion<[z.ZodEnum<["top", "bottom", "inner1", "inner2", "inner3", "inner4", "inner5", "inner6"]>, z.ZodObject<{
|
|
@@ -11961,6 +11975,8 @@ declare const any_circuit_element: z.ZodUnion<[z.ZodObject<{
|
|
|
11961
11975
|
pad_shape: "rect";
|
|
11962
11976
|
rect_pad_width: number;
|
|
11963
11977
|
rect_pad_height: number;
|
|
11978
|
+
hole_offset_x: number;
|
|
11979
|
+
hole_offset_y: number;
|
|
11964
11980
|
pcb_component_id?: string | undefined;
|
|
11965
11981
|
subcircuit_id?: string | undefined;
|
|
11966
11982
|
pcb_group_id?: string | undefined;
|
|
@@ -11985,6 +12001,8 @@ declare const any_circuit_element: z.ZodUnion<[z.ZodObject<{
|
|
|
11985
12001
|
port_hints?: string[] | undefined;
|
|
11986
12002
|
pcb_port_id?: string | undefined;
|
|
11987
12003
|
pcb_plated_hole_id?: string | undefined;
|
|
12004
|
+
hole_offset_x?: string | number | undefined;
|
|
12005
|
+
hole_offset_y?: string | number | undefined;
|
|
11988
12006
|
}>, z.ZodObject<{
|
|
11989
12007
|
type: z.ZodLiteral<"pcb_plated_hole">;
|
|
11990
12008
|
shape: z.ZodLiteral<"pill_hole_with_rect_pad">;
|
|
@@ -15569,6 +15587,7 @@ declare const any_circuit_element: z.ZodUnion<[z.ZodObject<{
|
|
|
15569
15587
|
model_glb_url: z.ZodOptional<z.ZodString>;
|
|
15570
15588
|
model_step_url: z.ZodOptional<z.ZodString>;
|
|
15571
15589
|
model_wrl_url: z.ZodOptional<z.ZodString>;
|
|
15590
|
+
model_unit_to_mm_scale_factor: z.ZodOptional<z.ZodNumber>;
|
|
15572
15591
|
model_jscad: z.ZodOptional<z.ZodAny>;
|
|
15573
15592
|
}, "strip", z.ZodTypeAny, {
|
|
15574
15593
|
type: "cad_component";
|
|
@@ -15600,6 +15619,7 @@ declare const any_circuit_element: z.ZodUnion<[z.ZodObject<{
|
|
|
15600
15619
|
model_glb_url?: string | undefined;
|
|
15601
15620
|
model_step_url?: string | undefined;
|
|
15602
15621
|
model_wrl_url?: string | undefined;
|
|
15622
|
+
model_unit_to_mm_scale_factor?: number | undefined;
|
|
15603
15623
|
model_jscad?: any;
|
|
15604
15624
|
}, {
|
|
15605
15625
|
type: "cad_component";
|
|
@@ -15633,6 +15653,7 @@ declare const any_circuit_element: z.ZodUnion<[z.ZodObject<{
|
|
|
15633
15653
|
model_glb_url?: string | undefined;
|
|
15634
15654
|
model_step_url?: string | undefined;
|
|
15635
15655
|
model_wrl_url?: string | undefined;
|
|
15656
|
+
model_unit_to_mm_scale_factor?: number | undefined;
|
|
15636
15657
|
model_jscad?: any;
|
|
15637
15658
|
}>, z.ZodUnion<[z.ZodObject<{
|
|
15638
15659
|
type: z.ZodLiteral<"simulation_voltage_source">;
|
|
@@ -17977,6 +17998,8 @@ declare const any_soup_element: z.ZodUnion<[z.ZodObject<{
|
|
|
17977
17998
|
hole_diameter: z.ZodNumber;
|
|
17978
17999
|
rect_pad_width: z.ZodNumber;
|
|
17979
18000
|
rect_pad_height: z.ZodNumber;
|
|
18001
|
+
hole_offset_x: z.ZodDefault<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
|
|
18002
|
+
hole_offset_y: z.ZodDefault<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
|
|
17980
18003
|
x: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>;
|
|
17981
18004
|
y: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>;
|
|
17982
18005
|
layers: z.ZodArray<z.ZodEffects<z.ZodUnion<[z.ZodEnum<["top", "bottom", "inner1", "inner2", "inner3", "inner4", "inner5", "inner6"]>, z.ZodObject<{
|
|
@@ -18004,6 +18027,8 @@ declare const any_soup_element: z.ZodUnion<[z.ZodObject<{
|
|
|
18004
18027
|
pad_shape: "rect";
|
|
18005
18028
|
rect_pad_width: number;
|
|
18006
18029
|
rect_pad_height: number;
|
|
18030
|
+
hole_offset_x: number;
|
|
18031
|
+
hole_offset_y: number;
|
|
18007
18032
|
pcb_component_id?: string | undefined;
|
|
18008
18033
|
subcircuit_id?: string | undefined;
|
|
18009
18034
|
pcb_group_id?: string | undefined;
|
|
@@ -18028,6 +18053,8 @@ declare const any_soup_element: z.ZodUnion<[z.ZodObject<{
|
|
|
18028
18053
|
port_hints?: string[] | undefined;
|
|
18029
18054
|
pcb_port_id?: string | undefined;
|
|
18030
18055
|
pcb_plated_hole_id?: string | undefined;
|
|
18056
|
+
hole_offset_x?: string | number | undefined;
|
|
18057
|
+
hole_offset_y?: string | number | undefined;
|
|
18031
18058
|
}>, z.ZodObject<{
|
|
18032
18059
|
type: z.ZodLiteral<"pcb_plated_hole">;
|
|
18033
18060
|
shape: z.ZodLiteral<"pill_hole_with_rect_pad">;
|
|
@@ -21612,6 +21639,7 @@ declare const any_soup_element: z.ZodUnion<[z.ZodObject<{
|
|
|
21612
21639
|
model_glb_url: z.ZodOptional<z.ZodString>;
|
|
21613
21640
|
model_step_url: z.ZodOptional<z.ZodString>;
|
|
21614
21641
|
model_wrl_url: z.ZodOptional<z.ZodString>;
|
|
21642
|
+
model_unit_to_mm_scale_factor: z.ZodOptional<z.ZodNumber>;
|
|
21615
21643
|
model_jscad: z.ZodOptional<z.ZodAny>;
|
|
21616
21644
|
}, "strip", z.ZodTypeAny, {
|
|
21617
21645
|
type: "cad_component";
|
|
@@ -21643,6 +21671,7 @@ declare const any_soup_element: z.ZodUnion<[z.ZodObject<{
|
|
|
21643
21671
|
model_glb_url?: string | undefined;
|
|
21644
21672
|
model_step_url?: string | undefined;
|
|
21645
21673
|
model_wrl_url?: string | undefined;
|
|
21674
|
+
model_unit_to_mm_scale_factor?: number | undefined;
|
|
21646
21675
|
model_jscad?: any;
|
|
21647
21676
|
}, {
|
|
21648
21677
|
type: "cad_component";
|
|
@@ -21676,6 +21705,7 @@ declare const any_soup_element: z.ZodUnion<[z.ZodObject<{
|
|
|
21676
21705
|
model_glb_url?: string | undefined;
|
|
21677
21706
|
model_step_url?: string | undefined;
|
|
21678
21707
|
model_wrl_url?: string | undefined;
|
|
21708
|
+
model_unit_to_mm_scale_factor?: number | undefined;
|
|
21679
21709
|
model_jscad?: any;
|
|
21680
21710
|
}>, z.ZodUnion<[z.ZodObject<{
|
|
21681
21711
|
type: z.ZodLiteral<"simulation_voltage_source">;
|
package/dist/index.mjs
CHANGED
|
@@ -1233,6 +1233,8 @@ var pcb_circular_hole_with_rect_pad = z65.object({
|
|
|
1233
1233
|
hole_diameter: z65.number(),
|
|
1234
1234
|
rect_pad_width: z65.number(),
|
|
1235
1235
|
rect_pad_height: z65.number(),
|
|
1236
|
+
hole_offset_x: distance.default(0),
|
|
1237
|
+
hole_offset_y: distance.default(0),
|
|
1236
1238
|
x: distance,
|
|
1237
1239
|
y: distance,
|
|
1238
1240
|
layers: z65.array(layer_ref),
|
|
@@ -2137,6 +2139,7 @@ var cad_component = z101.object({
|
|
|
2137
2139
|
model_glb_url: z101.string().optional(),
|
|
2138
2140
|
model_step_url: z101.string().optional(),
|
|
2139
2141
|
model_wrl_url: z101.string().optional(),
|
|
2142
|
+
model_unit_to_mm_scale_factor: z101.number().optional(),
|
|
2140
2143
|
model_jscad: z101.any().optional()
|
|
2141
2144
|
}).describe("Defines a component on the PCB");
|
|
2142
2145
|
expectTypesMatch(true);
|