circuit-json 0.0.224 → 0.0.226
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 +3 -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
|
@@ -866,6 +866,7 @@ interface PcbGroup {
|
|
|
866
866
|
pcb_component_ids: string[]
|
|
867
867
|
name?: string
|
|
868
868
|
description?: string
|
|
869
|
+
layout_mode?: string
|
|
869
870
|
autorouter_configuration?: {
|
|
870
871
|
trace_clearance: Length
|
|
871
872
|
}
|
|
@@ -1778,7 +1779,9 @@ interface SimulationVoltageSource {
|
|
|
1778
1779
|
type: "simulation_voltage_source"
|
|
1779
1780
|
simulation_voltage_source_id: string
|
|
1780
1781
|
positive_source_port_id: string
|
|
1782
|
+
positive_source_net_id: string
|
|
1781
1783
|
negative_source_port_id: string
|
|
1784
|
+
negative_source_net_id: string
|
|
1782
1785
|
voltage: number
|
|
1783
1786
|
}
|
|
1784
1787
|
```
|
package/dist/index.d.mts
CHANGED
|
@@ -3735,6 +3735,7 @@ declare const pcb_group: z.ZodObject<{
|
|
|
3735
3735
|
pcb_component_ids: z.ZodArray<z.ZodString, "many">;
|
|
3736
3736
|
name: z.ZodOptional<z.ZodString>;
|
|
3737
3737
|
description: z.ZodOptional<z.ZodString>;
|
|
3738
|
+
layout_mode: z.ZodOptional<z.ZodString>;
|
|
3738
3739
|
autorouter_configuration: z.ZodOptional<z.ZodObject<{
|
|
3739
3740
|
trace_clearance: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>;
|
|
3740
3741
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -3758,6 +3759,7 @@ declare const pcb_group: z.ZodObject<{
|
|
|
3758
3759
|
name?: string | undefined;
|
|
3759
3760
|
subcircuit_id?: string | undefined;
|
|
3760
3761
|
is_subcircuit?: boolean | undefined;
|
|
3762
|
+
layout_mode?: string | undefined;
|
|
3761
3763
|
autorouter_configuration?: {
|
|
3762
3764
|
trace_clearance: number;
|
|
3763
3765
|
} | undefined;
|
|
@@ -3777,6 +3779,7 @@ declare const pcb_group: z.ZodObject<{
|
|
|
3777
3779
|
subcircuit_id?: string | undefined;
|
|
3778
3780
|
pcb_group_id?: string | undefined;
|
|
3779
3781
|
is_subcircuit?: boolean | undefined;
|
|
3782
|
+
layout_mode?: string | undefined;
|
|
3780
3783
|
autorouter_configuration?: {
|
|
3781
3784
|
trace_clearance: string | number;
|
|
3782
3785
|
} | undefined;
|
|
@@ -3798,6 +3801,7 @@ interface PcbGroup {
|
|
|
3798
3801
|
pcb_component_ids: string[];
|
|
3799
3802
|
name?: string;
|
|
3800
3803
|
description?: string;
|
|
3804
|
+
layout_mode?: string;
|
|
3801
3805
|
autorouter_configuration?: {
|
|
3802
3806
|
trace_clearance: Length;
|
|
3803
3807
|
};
|
|
@@ -8229,6 +8233,8 @@ declare const simulation_voltage_source: z.ZodObject<{
|
|
|
8229
8233
|
simulation_voltage_source_id: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
8230
8234
|
positive_source_port_id: z.ZodString;
|
|
8231
8235
|
negative_source_port_id: z.ZodString;
|
|
8236
|
+
positive_source_net_id: z.ZodString;
|
|
8237
|
+
negative_source_net_id: z.ZodString;
|
|
8232
8238
|
voltage: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>;
|
|
8233
8239
|
}, "strip", z.ZodTypeAny, {
|
|
8234
8240
|
type: "simulation_voltage_source";
|
|
@@ -8236,11 +8242,15 @@ declare const simulation_voltage_source: z.ZodObject<{
|
|
|
8236
8242
|
simulation_voltage_source_id: string;
|
|
8237
8243
|
positive_source_port_id: string;
|
|
8238
8244
|
negative_source_port_id: string;
|
|
8245
|
+
positive_source_net_id: string;
|
|
8246
|
+
negative_source_net_id: string;
|
|
8239
8247
|
}, {
|
|
8240
8248
|
type: "simulation_voltage_source";
|
|
8241
8249
|
voltage: string | number;
|
|
8242
8250
|
positive_source_port_id: string;
|
|
8243
8251
|
negative_source_port_id: string;
|
|
8252
|
+
positive_source_net_id: string;
|
|
8253
|
+
negative_source_net_id: string;
|
|
8244
8254
|
simulation_voltage_source_id?: string | undefined;
|
|
8245
8255
|
}>;
|
|
8246
8256
|
type SimulationVoltageSourceInput = z.input<typeof simulation_voltage_source>;
|
|
@@ -8252,7 +8262,9 @@ interface SimulationVoltageSource {
|
|
|
8252
8262
|
type: "simulation_voltage_source";
|
|
8253
8263
|
simulation_voltage_source_id: string;
|
|
8254
8264
|
positive_source_port_id: string;
|
|
8265
|
+
positive_source_net_id: string;
|
|
8255
8266
|
negative_source_port_id: string;
|
|
8267
|
+
negative_source_net_id: string;
|
|
8256
8268
|
voltage: number;
|
|
8257
8269
|
}
|
|
8258
8270
|
|
|
@@ -11564,6 +11576,7 @@ declare const any_circuit_element: z.ZodUnion<[z.ZodObject<{
|
|
|
11564
11576
|
pcb_component_ids: z.ZodArray<z.ZodString, "many">;
|
|
11565
11577
|
name: z.ZodOptional<z.ZodString>;
|
|
11566
11578
|
description: z.ZodOptional<z.ZodString>;
|
|
11579
|
+
layout_mode: z.ZodOptional<z.ZodString>;
|
|
11567
11580
|
autorouter_configuration: z.ZodOptional<z.ZodObject<{
|
|
11568
11581
|
trace_clearance: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>;
|
|
11569
11582
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -11587,6 +11600,7 @@ declare const any_circuit_element: z.ZodUnion<[z.ZodObject<{
|
|
|
11587
11600
|
name?: string | undefined;
|
|
11588
11601
|
subcircuit_id?: string | undefined;
|
|
11589
11602
|
is_subcircuit?: boolean | undefined;
|
|
11603
|
+
layout_mode?: string | undefined;
|
|
11590
11604
|
autorouter_configuration?: {
|
|
11591
11605
|
trace_clearance: number;
|
|
11592
11606
|
} | undefined;
|
|
@@ -11606,6 +11620,7 @@ declare const any_circuit_element: z.ZodUnion<[z.ZodObject<{
|
|
|
11606
11620
|
subcircuit_id?: string | undefined;
|
|
11607
11621
|
pcb_group_id?: string | undefined;
|
|
11608
11622
|
is_subcircuit?: boolean | undefined;
|
|
11623
|
+
layout_mode?: string | undefined;
|
|
11609
11624
|
autorouter_configuration?: {
|
|
11610
11625
|
trace_clearance: string | number;
|
|
11611
11626
|
} | undefined;
|
|
@@ -13597,6 +13612,8 @@ declare const any_circuit_element: z.ZodUnion<[z.ZodObject<{
|
|
|
13597
13612
|
simulation_voltage_source_id: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
13598
13613
|
positive_source_port_id: z.ZodString;
|
|
13599
13614
|
negative_source_port_id: z.ZodString;
|
|
13615
|
+
positive_source_net_id: z.ZodString;
|
|
13616
|
+
negative_source_net_id: z.ZodString;
|
|
13600
13617
|
voltage: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>;
|
|
13601
13618
|
}, "strip", z.ZodTypeAny, {
|
|
13602
13619
|
type: "simulation_voltage_source";
|
|
@@ -13604,11 +13621,15 @@ declare const any_circuit_element: z.ZodUnion<[z.ZodObject<{
|
|
|
13604
13621
|
simulation_voltage_source_id: string;
|
|
13605
13622
|
positive_source_port_id: string;
|
|
13606
13623
|
negative_source_port_id: string;
|
|
13624
|
+
positive_source_net_id: string;
|
|
13625
|
+
negative_source_net_id: string;
|
|
13607
13626
|
}, {
|
|
13608
13627
|
type: "simulation_voltage_source";
|
|
13609
13628
|
voltage: string | number;
|
|
13610
13629
|
positive_source_port_id: string;
|
|
13611
13630
|
negative_source_port_id: string;
|
|
13631
|
+
positive_source_net_id: string;
|
|
13632
|
+
negative_source_net_id: string;
|
|
13612
13633
|
simulation_voltage_source_id?: string | undefined;
|
|
13613
13634
|
}>]>;
|
|
13614
13635
|
/**
|
|
@@ -16922,6 +16943,7 @@ declare const any_soup_element: z.ZodUnion<[z.ZodObject<{
|
|
|
16922
16943
|
pcb_component_ids: z.ZodArray<z.ZodString, "many">;
|
|
16923
16944
|
name: z.ZodOptional<z.ZodString>;
|
|
16924
16945
|
description: z.ZodOptional<z.ZodString>;
|
|
16946
|
+
layout_mode: z.ZodOptional<z.ZodString>;
|
|
16925
16947
|
autorouter_configuration: z.ZodOptional<z.ZodObject<{
|
|
16926
16948
|
trace_clearance: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>;
|
|
16927
16949
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -16945,6 +16967,7 @@ declare const any_soup_element: z.ZodUnion<[z.ZodObject<{
|
|
|
16945
16967
|
name?: string | undefined;
|
|
16946
16968
|
subcircuit_id?: string | undefined;
|
|
16947
16969
|
is_subcircuit?: boolean | undefined;
|
|
16970
|
+
layout_mode?: string | undefined;
|
|
16948
16971
|
autorouter_configuration?: {
|
|
16949
16972
|
trace_clearance: number;
|
|
16950
16973
|
} | undefined;
|
|
@@ -16964,6 +16987,7 @@ declare const any_soup_element: z.ZodUnion<[z.ZodObject<{
|
|
|
16964
16987
|
subcircuit_id?: string | undefined;
|
|
16965
16988
|
pcb_group_id?: string | undefined;
|
|
16966
16989
|
is_subcircuit?: boolean | undefined;
|
|
16990
|
+
layout_mode?: string | undefined;
|
|
16967
16991
|
autorouter_configuration?: {
|
|
16968
16992
|
trace_clearance: string | number;
|
|
16969
16993
|
} | undefined;
|
|
@@ -18955,6 +18979,8 @@ declare const any_soup_element: z.ZodUnion<[z.ZodObject<{
|
|
|
18955
18979
|
simulation_voltage_source_id: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
18956
18980
|
positive_source_port_id: z.ZodString;
|
|
18957
18981
|
negative_source_port_id: z.ZodString;
|
|
18982
|
+
positive_source_net_id: z.ZodString;
|
|
18983
|
+
negative_source_net_id: z.ZodString;
|
|
18958
18984
|
voltage: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>;
|
|
18959
18985
|
}, "strip", z.ZodTypeAny, {
|
|
18960
18986
|
type: "simulation_voltage_source";
|
|
@@ -18962,11 +18988,15 @@ declare const any_soup_element: z.ZodUnion<[z.ZodObject<{
|
|
|
18962
18988
|
simulation_voltage_source_id: string;
|
|
18963
18989
|
positive_source_port_id: string;
|
|
18964
18990
|
negative_source_port_id: string;
|
|
18991
|
+
positive_source_net_id: string;
|
|
18992
|
+
negative_source_net_id: string;
|
|
18965
18993
|
}, {
|
|
18966
18994
|
type: "simulation_voltage_source";
|
|
18967
18995
|
voltage: string | number;
|
|
18968
18996
|
positive_source_port_id: string;
|
|
18969
18997
|
negative_source_port_id: string;
|
|
18998
|
+
positive_source_net_id: string;
|
|
18999
|
+
negative_source_net_id: string;
|
|
18970
19000
|
simulation_voltage_source_id?: string | undefined;
|
|
18971
19001
|
}>]>;
|
|
18972
19002
|
type AnyCircuitElement = z.infer<typeof any_circuit_element>;
|
package/dist/index.mjs
CHANGED
|
@@ -1821,6 +1821,7 @@ var pcb_group = z84.object({
|
|
|
1821
1821
|
pcb_component_ids: z84.array(z84.string()),
|
|
1822
1822
|
name: z84.string().optional(),
|
|
1823
1823
|
description: z84.string().optional(),
|
|
1824
|
+
layout_mode: z84.string().optional(),
|
|
1824
1825
|
autorouter_configuration: z84.object({
|
|
1825
1826
|
trace_clearance: length
|
|
1826
1827
|
}).optional(),
|
|
@@ -1947,6 +1948,8 @@ var simulation_voltage_source = z92.object({
|
|
|
1947
1948
|
),
|
|
1948
1949
|
positive_source_port_id: z92.string(),
|
|
1949
1950
|
negative_source_port_id: z92.string(),
|
|
1951
|
+
positive_source_net_id: z92.string(),
|
|
1952
|
+
negative_source_net_id: z92.string(),
|
|
1950
1953
|
voltage
|
|
1951
1954
|
}).describe("Defines a voltage source for simulation");
|
|
1952
1955
|
expectTypesMatch(true);
|