circuit-json 0.0.265 → 0.0.267
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 +37 -1
- package/dist/index.d.mts +193 -3
- package/dist/index.mjs +49 -4
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Circuit JSON a low-level JSON-array circuit representation. It contains all the information needed to visually represent a schematic, PCB, produce Gerber files, produce bill of materials, run SPICE simulations, view warnings and more. It is designed to easily interoperate with a SQL database.
|
|
4
4
|
|
|
5
|
-
[tscircuit](https://github.com/tscircuit/tscircuit) · [discord](https://tscircuit.com/join) · [online circuit json viewer](https://circuitjson.com/) · [example.json](https://github.com/tscircuit/circuitjson.com/blob/main/assets/usb-c-flashlight.json)
|
|
5
|
+
[tscircuit](https://github.com/tscircuit/tscircuit) · [discord](https://tscircuit.com/join) · [online circuit json viewer](https://circuitjson.com/) · [example.json](https://github.com/tscircuit/circuitjson.com/blob/main/assets/usb-c-flashlight.json) · [Introduction to Circuit JSON Video](https://www.youtube.com/watch?v=QMWobH5tmqo)
|
|
6
6
|
|
|
7
7
|
[](https://badge.fury.io/js/circuit-json)
|
|
8
8
|
|
|
@@ -139,6 +139,8 @@ https://github.com/user-attachments/assets/2f28b7ba-689e-4d80-85b2-5bdef84b41f8
|
|
|
139
139
|
- [SchematicTrace](#schematictrace)
|
|
140
140
|
- [SchematicVoltageProbe](#schematicvoltageprobe)
|
|
141
141
|
- [Simulation Elements](#simulation-elements)
|
|
142
|
+
- [SimulationExperiment](#simulationexperiment)
|
|
143
|
+
- [SimulationTransientVoltageGraph](#simulationtransientvoltagegraph)
|
|
142
144
|
- [SimulationVoltageSource](#simulationvoltagesource)
|
|
143
145
|
|
|
144
146
|
<!-- toc:end -->
|
|
@@ -826,6 +828,7 @@ interface PcbComponent {
|
|
|
826
828
|
height: Length
|
|
827
829
|
do_not_place?: boolean
|
|
828
830
|
pcb_group_id?: string
|
|
831
|
+
obstructs_within_bounds: boolean
|
|
829
832
|
}
|
|
830
833
|
```
|
|
831
834
|
|
|
@@ -2077,6 +2080,39 @@ interface SchematicVoltageProbe {
|
|
|
2077
2080
|
|
|
2078
2081
|
## Simulation Elements
|
|
2079
2082
|
|
|
2083
|
+
### SimulationExperiment
|
|
2084
|
+
|
|
2085
|
+
[Source](https://github.com/tscircuit/circuit-json/blob/main/src/simulation/simulation_experiment.ts)
|
|
2086
|
+
|
|
2087
|
+
```typescript
|
|
2088
|
+
interface SimulationExperiment {
|
|
2089
|
+
type: "simulation_experiment"
|
|
2090
|
+
simulation_experiment_id: string
|
|
2091
|
+
name: string
|
|
2092
|
+
experiment_type: ExperimentType
|
|
2093
|
+
}
|
|
2094
|
+
```
|
|
2095
|
+
|
|
2096
|
+
### SimulationTransientVoltageGraph
|
|
2097
|
+
|
|
2098
|
+
[Source](https://github.com/tscircuit/circuit-json/blob/main/src/simulation/simulation_transient_voltage_graph.ts)
|
|
2099
|
+
|
|
2100
|
+
```typescript
|
|
2101
|
+
interface SimulationTransientVoltageGraph {
|
|
2102
|
+
type: "simulation_transient_voltage_graph"
|
|
2103
|
+
simulation_transient_voltage_graph_id: string
|
|
2104
|
+
simulation_experiment_id: string
|
|
2105
|
+
timestamps_ms?: number[]
|
|
2106
|
+
voltage_levels: number[]
|
|
2107
|
+
schematic_voltage_probe_id?: string
|
|
2108
|
+
subcircuit_connecivity_map_key?: string
|
|
2109
|
+
time_per_step: number
|
|
2110
|
+
start_time_ms: number
|
|
2111
|
+
end_time_ms: number
|
|
2112
|
+
name?: string
|
|
2113
|
+
}
|
|
2114
|
+
```
|
|
2115
|
+
|
|
2080
2116
|
### SimulationVoltageSource
|
|
2081
2117
|
|
|
2082
2118
|
[Source](https://github.com/tscircuit/circuit-json/blob/main/src/simulation/simulation_voltage_source.ts)
|
package/dist/index.d.mts
CHANGED
|
@@ -403,6 +403,7 @@ declare const pcb_component: z.ZodObject<{
|
|
|
403
403
|
do_not_place: z.ZodOptional<z.ZodBoolean>;
|
|
404
404
|
subcircuit_id: z.ZodOptional<z.ZodString>;
|
|
405
405
|
pcb_group_id: z.ZodOptional<z.ZodString>;
|
|
406
|
+
obstructs_within_bounds: z.ZodDefault<z.ZodBoolean>;
|
|
406
407
|
}, "strip", z.ZodTypeAny, {
|
|
407
408
|
type: "pcb_component";
|
|
408
409
|
width: number;
|
|
@@ -415,6 +416,7 @@ declare const pcb_component: z.ZodObject<{
|
|
|
415
416
|
};
|
|
416
417
|
layer: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6";
|
|
417
418
|
rotation: number;
|
|
419
|
+
obstructs_within_bounds: boolean;
|
|
418
420
|
do_not_place?: boolean | undefined;
|
|
419
421
|
subcircuit_id?: string | undefined;
|
|
420
422
|
pcb_group_id?: string | undefined;
|
|
@@ -435,6 +437,7 @@ declare const pcb_component: z.ZodObject<{
|
|
|
435
437
|
do_not_place?: boolean | undefined;
|
|
436
438
|
subcircuit_id?: string | undefined;
|
|
437
439
|
pcb_group_id?: string | undefined;
|
|
440
|
+
obstructs_within_bounds?: boolean | undefined;
|
|
438
441
|
}>;
|
|
439
442
|
type PcbComponentInput = z.input<typeof pcb_component>;
|
|
440
443
|
/**
|
|
@@ -452,6 +455,7 @@ interface PcbComponent {
|
|
|
452
455
|
height: Length;
|
|
453
456
|
do_not_place?: boolean;
|
|
454
457
|
pcb_group_id?: string;
|
|
458
|
+
obstructs_within_bounds: boolean;
|
|
455
459
|
}
|
|
456
460
|
/**
|
|
457
461
|
* @deprecated use PcbComponent
|
|
@@ -10112,6 +10116,84 @@ interface SimulationAcVoltageSource {
|
|
|
10112
10116
|
}
|
|
10113
10117
|
type SimulationVoltageSource = SimulationDcVoltageSource | SimulationAcVoltageSource;
|
|
10114
10118
|
|
|
10119
|
+
declare const experiment_type: z.ZodUnion<[z.ZodLiteral<"spice_dc_sweep">, z.ZodLiteral<"spice_dc_operating_point">, z.ZodLiteral<"spice_transient_analysis">, z.ZodLiteral<"spice_ac_analysis">]>;
|
|
10120
|
+
type ExperimentType = z.infer<typeof experiment_type>;
|
|
10121
|
+
interface SimulationExperiment {
|
|
10122
|
+
type: "simulation_experiment";
|
|
10123
|
+
simulation_experiment_id: string;
|
|
10124
|
+
name: string;
|
|
10125
|
+
experiment_type: ExperimentType;
|
|
10126
|
+
}
|
|
10127
|
+
declare const simulation_experiment: z.ZodObject<{
|
|
10128
|
+
type: z.ZodLiteral<"simulation_experiment">;
|
|
10129
|
+
simulation_experiment_id: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
10130
|
+
name: z.ZodString;
|
|
10131
|
+
experiment_type: z.ZodUnion<[z.ZodLiteral<"spice_dc_sweep">, z.ZodLiteral<"spice_dc_operating_point">, z.ZodLiteral<"spice_transient_analysis">, z.ZodLiteral<"spice_ac_analysis">]>;
|
|
10132
|
+
}, "strip", z.ZodTypeAny, {
|
|
10133
|
+
type: "simulation_experiment";
|
|
10134
|
+
name: string;
|
|
10135
|
+
simulation_experiment_id: string;
|
|
10136
|
+
experiment_type: "spice_dc_sweep" | "spice_dc_operating_point" | "spice_transient_analysis" | "spice_ac_analysis";
|
|
10137
|
+
}, {
|
|
10138
|
+
type: "simulation_experiment";
|
|
10139
|
+
name: string;
|
|
10140
|
+
experiment_type: "spice_dc_sweep" | "spice_dc_operating_point" | "spice_transient_analysis" | "spice_ac_analysis";
|
|
10141
|
+
simulation_experiment_id?: string | undefined;
|
|
10142
|
+
}>;
|
|
10143
|
+
type SimulationExperimentInput = z.input<typeof simulation_experiment>;
|
|
10144
|
+
|
|
10145
|
+
interface SimulationTransientVoltageGraph {
|
|
10146
|
+
type: "simulation_transient_voltage_graph";
|
|
10147
|
+
simulation_transient_voltage_graph_id: string;
|
|
10148
|
+
simulation_experiment_id: string;
|
|
10149
|
+
timestamps_ms?: number[];
|
|
10150
|
+
voltage_levels: number[];
|
|
10151
|
+
schematic_voltage_probe_id?: string;
|
|
10152
|
+
subcircuit_connecivity_map_key?: string;
|
|
10153
|
+
time_per_step: number;
|
|
10154
|
+
start_time_ms: number;
|
|
10155
|
+
end_time_ms: number;
|
|
10156
|
+
name?: string;
|
|
10157
|
+
}
|
|
10158
|
+
declare const simulation_transient_voltage_graph: z.ZodObject<{
|
|
10159
|
+
type: z.ZodLiteral<"simulation_transient_voltage_graph">;
|
|
10160
|
+
simulation_transient_voltage_graph_id: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
10161
|
+
simulation_experiment_id: z.ZodString;
|
|
10162
|
+
timestamps_ms: z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>;
|
|
10163
|
+
voltage_levels: z.ZodArray<z.ZodNumber, "many">;
|
|
10164
|
+
schematic_voltage_probe_id: z.ZodOptional<z.ZodString>;
|
|
10165
|
+
subcircuit_connecivity_map_key: z.ZodOptional<z.ZodString>;
|
|
10166
|
+
time_per_step: z.ZodNumber;
|
|
10167
|
+
start_time_ms: z.ZodNumber;
|
|
10168
|
+
end_time_ms: z.ZodNumber;
|
|
10169
|
+
name: z.ZodOptional<z.ZodString>;
|
|
10170
|
+
}, "strip", z.ZodTypeAny, {
|
|
10171
|
+
type: "simulation_transient_voltage_graph";
|
|
10172
|
+
simulation_experiment_id: string;
|
|
10173
|
+
simulation_transient_voltage_graph_id: string;
|
|
10174
|
+
voltage_levels: number[];
|
|
10175
|
+
time_per_step: number;
|
|
10176
|
+
start_time_ms: number;
|
|
10177
|
+
end_time_ms: number;
|
|
10178
|
+
name?: string | undefined;
|
|
10179
|
+
schematic_voltage_probe_id?: string | undefined;
|
|
10180
|
+
timestamps_ms?: number[] | undefined;
|
|
10181
|
+
subcircuit_connecivity_map_key?: string | undefined;
|
|
10182
|
+
}, {
|
|
10183
|
+
type: "simulation_transient_voltage_graph";
|
|
10184
|
+
simulation_experiment_id: string;
|
|
10185
|
+
voltage_levels: number[];
|
|
10186
|
+
time_per_step: number;
|
|
10187
|
+
start_time_ms: number;
|
|
10188
|
+
end_time_ms: number;
|
|
10189
|
+
name?: string | undefined;
|
|
10190
|
+
schematic_voltage_probe_id?: string | undefined;
|
|
10191
|
+
simulation_transient_voltage_graph_id?: string | undefined;
|
|
10192
|
+
timestamps_ms?: number[] | undefined;
|
|
10193
|
+
subcircuit_connecivity_map_key?: string | undefined;
|
|
10194
|
+
}>;
|
|
10195
|
+
type SimulationTransientVoltageGraphInput = z.input<typeof simulation_transient_voltage_graph>;
|
|
10196
|
+
|
|
10115
10197
|
declare const any_circuit_element: z.ZodUnion<[z.ZodObject<{
|
|
10116
10198
|
type: z.ZodLiteral<"source_trace">;
|
|
10117
10199
|
source_trace_id: z.ZodString;
|
|
@@ -12098,6 +12180,7 @@ declare const any_circuit_element: z.ZodUnion<[z.ZodObject<{
|
|
|
12098
12180
|
do_not_place: z.ZodOptional<z.ZodBoolean>;
|
|
12099
12181
|
subcircuit_id: z.ZodOptional<z.ZodString>;
|
|
12100
12182
|
pcb_group_id: z.ZodOptional<z.ZodString>;
|
|
12183
|
+
obstructs_within_bounds: z.ZodDefault<z.ZodBoolean>;
|
|
12101
12184
|
}, "strip", z.ZodTypeAny, {
|
|
12102
12185
|
type: "pcb_component";
|
|
12103
12186
|
width: number;
|
|
@@ -12110,6 +12193,7 @@ declare const any_circuit_element: z.ZodUnion<[z.ZodObject<{
|
|
|
12110
12193
|
};
|
|
12111
12194
|
layer: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6";
|
|
12112
12195
|
rotation: number;
|
|
12196
|
+
obstructs_within_bounds: boolean;
|
|
12113
12197
|
do_not_place?: boolean | undefined;
|
|
12114
12198
|
subcircuit_id?: string | undefined;
|
|
12115
12199
|
pcb_group_id?: string | undefined;
|
|
@@ -12130,6 +12214,7 @@ declare const any_circuit_element: z.ZodUnion<[z.ZodObject<{
|
|
|
12130
12214
|
do_not_place?: boolean | undefined;
|
|
12131
12215
|
subcircuit_id?: string | undefined;
|
|
12132
12216
|
pcb_group_id?: string | undefined;
|
|
12217
|
+
obstructs_within_bounds?: boolean | undefined;
|
|
12133
12218
|
}>, z.ZodUnion<[z.ZodObject<{
|
|
12134
12219
|
type: z.ZodLiteral<"pcb_hole">;
|
|
12135
12220
|
pcb_hole_id: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
@@ -16482,7 +16567,58 @@ declare const any_circuit_element: z.ZodUnion<[z.ZodObject<{
|
|
|
16482
16567
|
wave_shape?: "square" | "sinewave" | "triangle" | "sawtooth" | undefined;
|
|
16483
16568
|
phase?: string | number | undefined;
|
|
16484
16569
|
duty_cycle?: string | number | undefined;
|
|
16485
|
-
}>]
|
|
16570
|
+
}>]>, z.ZodObject<{
|
|
16571
|
+
type: z.ZodLiteral<"simulation_experiment">;
|
|
16572
|
+
simulation_experiment_id: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
16573
|
+
name: z.ZodString;
|
|
16574
|
+
experiment_type: z.ZodUnion<[z.ZodLiteral<"spice_dc_sweep">, z.ZodLiteral<"spice_dc_operating_point">, z.ZodLiteral<"spice_transient_analysis">, z.ZodLiteral<"spice_ac_analysis">]>;
|
|
16575
|
+
}, "strip", z.ZodTypeAny, {
|
|
16576
|
+
type: "simulation_experiment";
|
|
16577
|
+
name: string;
|
|
16578
|
+
simulation_experiment_id: string;
|
|
16579
|
+
experiment_type: "spice_dc_sweep" | "spice_dc_operating_point" | "spice_transient_analysis" | "spice_ac_analysis";
|
|
16580
|
+
}, {
|
|
16581
|
+
type: "simulation_experiment";
|
|
16582
|
+
name: string;
|
|
16583
|
+
experiment_type: "spice_dc_sweep" | "spice_dc_operating_point" | "spice_transient_analysis" | "spice_ac_analysis";
|
|
16584
|
+
simulation_experiment_id?: string | undefined;
|
|
16585
|
+
}>, z.ZodObject<{
|
|
16586
|
+
type: z.ZodLiteral<"simulation_transient_voltage_graph">;
|
|
16587
|
+
simulation_transient_voltage_graph_id: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
16588
|
+
simulation_experiment_id: z.ZodString;
|
|
16589
|
+
timestamps_ms: z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>;
|
|
16590
|
+
voltage_levels: z.ZodArray<z.ZodNumber, "many">;
|
|
16591
|
+
schematic_voltage_probe_id: z.ZodOptional<z.ZodString>;
|
|
16592
|
+
subcircuit_connecivity_map_key: z.ZodOptional<z.ZodString>;
|
|
16593
|
+
time_per_step: z.ZodNumber;
|
|
16594
|
+
start_time_ms: z.ZodNumber;
|
|
16595
|
+
end_time_ms: z.ZodNumber;
|
|
16596
|
+
name: z.ZodOptional<z.ZodString>;
|
|
16597
|
+
}, "strip", z.ZodTypeAny, {
|
|
16598
|
+
type: "simulation_transient_voltage_graph";
|
|
16599
|
+
simulation_experiment_id: string;
|
|
16600
|
+
simulation_transient_voltage_graph_id: string;
|
|
16601
|
+
voltage_levels: number[];
|
|
16602
|
+
time_per_step: number;
|
|
16603
|
+
start_time_ms: number;
|
|
16604
|
+
end_time_ms: number;
|
|
16605
|
+
name?: string | undefined;
|
|
16606
|
+
schematic_voltage_probe_id?: string | undefined;
|
|
16607
|
+
timestamps_ms?: number[] | undefined;
|
|
16608
|
+
subcircuit_connecivity_map_key?: string | undefined;
|
|
16609
|
+
}, {
|
|
16610
|
+
type: "simulation_transient_voltage_graph";
|
|
16611
|
+
simulation_experiment_id: string;
|
|
16612
|
+
voltage_levels: number[];
|
|
16613
|
+
time_per_step: number;
|
|
16614
|
+
start_time_ms: number;
|
|
16615
|
+
end_time_ms: number;
|
|
16616
|
+
name?: string | undefined;
|
|
16617
|
+
schematic_voltage_probe_id?: string | undefined;
|
|
16618
|
+
simulation_transient_voltage_graph_id?: string | undefined;
|
|
16619
|
+
timestamps_ms?: number[] | undefined;
|
|
16620
|
+
subcircuit_connecivity_map_key?: string | undefined;
|
|
16621
|
+
}>]>;
|
|
16486
16622
|
/**
|
|
16487
16623
|
* @deprecated use any_circuit_element instead
|
|
16488
16624
|
*/
|
|
@@ -18472,6 +18608,7 @@ declare const any_soup_element: z.ZodUnion<[z.ZodObject<{
|
|
|
18472
18608
|
do_not_place: z.ZodOptional<z.ZodBoolean>;
|
|
18473
18609
|
subcircuit_id: z.ZodOptional<z.ZodString>;
|
|
18474
18610
|
pcb_group_id: z.ZodOptional<z.ZodString>;
|
|
18611
|
+
obstructs_within_bounds: z.ZodDefault<z.ZodBoolean>;
|
|
18475
18612
|
}, "strip", z.ZodTypeAny, {
|
|
18476
18613
|
type: "pcb_component";
|
|
18477
18614
|
width: number;
|
|
@@ -18484,6 +18621,7 @@ declare const any_soup_element: z.ZodUnion<[z.ZodObject<{
|
|
|
18484
18621
|
};
|
|
18485
18622
|
layer: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6";
|
|
18486
18623
|
rotation: number;
|
|
18624
|
+
obstructs_within_bounds: boolean;
|
|
18487
18625
|
do_not_place?: boolean | undefined;
|
|
18488
18626
|
subcircuit_id?: string | undefined;
|
|
18489
18627
|
pcb_group_id?: string | undefined;
|
|
@@ -18504,6 +18642,7 @@ declare const any_soup_element: z.ZodUnion<[z.ZodObject<{
|
|
|
18504
18642
|
do_not_place?: boolean | undefined;
|
|
18505
18643
|
subcircuit_id?: string | undefined;
|
|
18506
18644
|
pcb_group_id?: string | undefined;
|
|
18645
|
+
obstructs_within_bounds?: boolean | undefined;
|
|
18507
18646
|
}>, z.ZodUnion<[z.ZodObject<{
|
|
18508
18647
|
type: z.ZodLiteral<"pcb_hole">;
|
|
18509
18648
|
pcb_hole_id: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
@@ -22856,7 +22995,58 @@ declare const any_soup_element: z.ZodUnion<[z.ZodObject<{
|
|
|
22856
22995
|
wave_shape?: "square" | "sinewave" | "triangle" | "sawtooth" | undefined;
|
|
22857
22996
|
phase?: string | number | undefined;
|
|
22858
22997
|
duty_cycle?: string | number | undefined;
|
|
22859
|
-
}>]
|
|
22998
|
+
}>]>, z.ZodObject<{
|
|
22999
|
+
type: z.ZodLiteral<"simulation_experiment">;
|
|
23000
|
+
simulation_experiment_id: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
23001
|
+
name: z.ZodString;
|
|
23002
|
+
experiment_type: z.ZodUnion<[z.ZodLiteral<"spice_dc_sweep">, z.ZodLiteral<"spice_dc_operating_point">, z.ZodLiteral<"spice_transient_analysis">, z.ZodLiteral<"spice_ac_analysis">]>;
|
|
23003
|
+
}, "strip", z.ZodTypeAny, {
|
|
23004
|
+
type: "simulation_experiment";
|
|
23005
|
+
name: string;
|
|
23006
|
+
simulation_experiment_id: string;
|
|
23007
|
+
experiment_type: "spice_dc_sweep" | "spice_dc_operating_point" | "spice_transient_analysis" | "spice_ac_analysis";
|
|
23008
|
+
}, {
|
|
23009
|
+
type: "simulation_experiment";
|
|
23010
|
+
name: string;
|
|
23011
|
+
experiment_type: "spice_dc_sweep" | "spice_dc_operating_point" | "spice_transient_analysis" | "spice_ac_analysis";
|
|
23012
|
+
simulation_experiment_id?: string | undefined;
|
|
23013
|
+
}>, z.ZodObject<{
|
|
23014
|
+
type: z.ZodLiteral<"simulation_transient_voltage_graph">;
|
|
23015
|
+
simulation_transient_voltage_graph_id: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
23016
|
+
simulation_experiment_id: z.ZodString;
|
|
23017
|
+
timestamps_ms: z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>;
|
|
23018
|
+
voltage_levels: z.ZodArray<z.ZodNumber, "many">;
|
|
23019
|
+
schematic_voltage_probe_id: z.ZodOptional<z.ZodString>;
|
|
23020
|
+
subcircuit_connecivity_map_key: z.ZodOptional<z.ZodString>;
|
|
23021
|
+
time_per_step: z.ZodNumber;
|
|
23022
|
+
start_time_ms: z.ZodNumber;
|
|
23023
|
+
end_time_ms: z.ZodNumber;
|
|
23024
|
+
name: z.ZodOptional<z.ZodString>;
|
|
23025
|
+
}, "strip", z.ZodTypeAny, {
|
|
23026
|
+
type: "simulation_transient_voltage_graph";
|
|
23027
|
+
simulation_experiment_id: string;
|
|
23028
|
+
simulation_transient_voltage_graph_id: string;
|
|
23029
|
+
voltage_levels: number[];
|
|
23030
|
+
time_per_step: number;
|
|
23031
|
+
start_time_ms: number;
|
|
23032
|
+
end_time_ms: number;
|
|
23033
|
+
name?: string | undefined;
|
|
23034
|
+
schematic_voltage_probe_id?: string | undefined;
|
|
23035
|
+
timestamps_ms?: number[] | undefined;
|
|
23036
|
+
subcircuit_connecivity_map_key?: string | undefined;
|
|
23037
|
+
}, {
|
|
23038
|
+
type: "simulation_transient_voltage_graph";
|
|
23039
|
+
simulation_experiment_id: string;
|
|
23040
|
+
voltage_levels: number[];
|
|
23041
|
+
time_per_step: number;
|
|
23042
|
+
start_time_ms: number;
|
|
23043
|
+
end_time_ms: number;
|
|
23044
|
+
name?: string | undefined;
|
|
23045
|
+
schematic_voltage_probe_id?: string | undefined;
|
|
23046
|
+
simulation_transient_voltage_graph_id?: string | undefined;
|
|
23047
|
+
timestamps_ms?: number[] | undefined;
|
|
23048
|
+
subcircuit_connecivity_map_key?: string | undefined;
|
|
23049
|
+
}>]>;
|
|
22860
23050
|
type AnyCircuitElement = z.infer<typeof any_circuit_element>;
|
|
22861
23051
|
type AnyCircuitElementInput = z.input<typeof any_circuit_element>;
|
|
22862
23052
|
/**
|
|
@@ -22873,4 +23063,4 @@ type AnySoupElementInput = AnyCircuitElementInput;
|
|
|
22873
23063
|
*/
|
|
22874
23064
|
type CircuitJson = AnyCircuitElement[];
|
|
22875
23065
|
|
|
22876
|
-
export { type AnyCircuitElement, type AnyCircuitElementInput, type AnySoupElement, type AnySoupElementInput, type AnySourceComponent, type AnySourceElement, type BRepShape, type CadComponent, type CadComponentInput, type CircuitJson, type CircuitJsonError, type CircuitJsonFootprintLoadError, type CircuitJsonFootprintLoadErrorInput, type Distance, type ExternalFootprintLoadError, type ExternalFootprintLoadErrorInput, type InferredProjectMetadata, type InferredSchematicNetLabel, type InputPoint, type InputPosition, type InputRotation, type LayerRef, type LayerRefInput, type Length, type NinePointAnchor, type PCBBoard, type PCBComponent, type PCBFabricationNotePath, type PCBFabricationNoteText, type PCBHole, type PCBHoleInput, type PCBKeepout, type PCBKeepoutCircle, type PCBKeepoutInput, type PCBKeepoutRect, type PCBMissingFootprintError, type PCBPlacementError, type PCBPlatedHole, type PCBPlatedHoleInput, type PCBPort, type PCBPortInput, type PCBPortNotMatchedError, type PCBSMTPad, type PCBSMTPadInput, type PCBSilkscreenLine, type PCBSilkscreenText, type PCBSolderPasteInput, type PCBText, type PCBTrace, type PCBTraceError, type PCBTraceHint, type PCBTraceInput, type PCBTraceMissingError, type PCBVia, type PcbAutoroutingError, type PcbAutoroutingErrorInput, type PcbAutoroutingErrorInterface, type PcbBoard, type PcbBoardInput, type PcbBreakoutPoint, type PcbBreakoutPointInput, type PcbCircuitElement, type PcbComponent, type PcbComponentInput, type PcbComponentOutsideBoardError, type PcbComponentOutsideBoardErrorInput, type PcbCopperPour, type PcbCopperPourBRep, type PcbCopperPourBRepInput, type PcbCopperPourInput, type PcbCopperPourPolygon, type PcbCopperPourPolygonInput, type PcbCopperPourRect, type PcbCopperPourRectInput, type PcbCutout, type PcbCutoutCircle, type PcbCutoutCircleInput, type PcbCutoutInput, type PcbCutoutPolygon, type PcbCutoutPolygonInput, type PcbCutoutRect, type PcbCutoutRectInput, type PcbFabricationNotePath, type PcbFabricationNotePathInput, type PcbFabricationNoteText, type PcbFabricationNoteTextInput, type PcbFootprintOverlapError, type PcbFootprintOverlapErrorInput, type PcbGroundPlane, type PcbGroundPlaneInput, type PcbGroundPlaneRegion, type PcbGroundPlaneRegionInput, type PcbGroup, type PcbGroupInput, type PcbHole, type PcbHoleCircleOrSquare, type PcbHoleCircleOrSquareInput, type PcbHoleCircularWithRectPad, type PcbHoleOval, type PcbHoleOvalInput, type PcbHolePillWithRectPad, type PcbHoleRotatedPillWithRectPad, type PcbManualEditConflictWarning, type PcbManualEditConflictWarningInput, type PcbMissingFootprintError, type PcbMissingFootprintErrorInput, type PcbNet, type PcbNetInput, type PcbPlacementError, type PcbPlacementErrorInput, type PcbPlatedHole, type PcbPlatedHoleCircle, type PcbPlatedHoleInput, type PcbPlatedHoleOval, type PcbPort, type PcbPortInput, type PcbPortNotConnectedError, type PcbPortNotConnectedErrorInput, type PcbPortNotMatchedError, type PcbPortNotMatchedErrorInput, type PcbRouteHint, type PcbRouteHintInput, type PcbRouteHints, type PcbRouteHintsInput, type PcbSilkscreenCircle, type PcbSilkscreenCircleInput, type PcbSilkscreenLine, type PcbSilkscreenLineInput, type PcbSilkscreenOval, type PcbSilkscreenOvalDeprecated, type PcbSilkscreenOvalInput, type PcbSilkscreenPath, type PcbSilkscreenPathDeprecated, type PcbSilkscreenPathInput, type PcbSilkscreenRect, type PcbSilkscreenRectInput, type PcbSilkscreenRectOld, type PcbSilkscreenText, type PcbSilkscreenTextInput, type PcbSmtPad, type PcbSmtPadCircle, type PcbSmtPadPill, type PcbSmtPadPolygon, type PcbSmtPadRect, type PcbSmtPadRotatedPill, type PcbSmtPadRotatedRect, type PcbSolderPaste, type PcbSolderPasteCircle, type PcbSolderPasteOval, type PcbSolderPastePill, type PcbSolderPasteRect, type PcbSolderPasteRotatedRect, type PcbText, type PcbTextInput, type PcbThermalSpoke, type PcbThermalSpokeInput, type PcbTrace, type PcbTraceError, type PcbTraceErrorInput, type PcbTraceHint, type PcbTraceHintInput, type PcbTraceInput, type PcbTraceMissingError, type PcbTraceMissingErrorInput, type PcbTraceRoutePoint, type PcbTraceRoutePointVia, type PcbTraceRoutePointWire, type PcbVia, type PcbViaInput, type Point, type Point3, type PointWithBulge, type Position, type Ring, type Rotation, type RouteHintPoint, type RouteHintPointInput, type SchematicArc, type SchematicArcInput, type SchematicBox, type SchematicBoxInput, type SchematicCircle, type SchematicCircleInput, type SchematicComponent, type SchematicComponentInput, type SchematicDebugLine, type SchematicDebugObject, type SchematicDebugObjectInput, type SchematicDebugPoint, type SchematicDebugRect, type SchematicError, type SchematicErrorInput, type SchematicGroup, type SchematicGroupInput, type SchematicLayoutError, type SchematicLayoutErrorInput, type SchematicLine, type SchematicLineInput, type SchematicManualEditConflictWarning, type SchematicManualEditConflictWarningInput, type SchematicNetLabel, type SchematicNetLabelInput, type SchematicPath, type SchematicPathInput, type SchematicPort, type SchematicPortArrangement, type SchematicPortArrangementBySides, type SchematicPortArrangementBySize, type SchematicPortInput, type SchematicRect, type SchematicRectInput, type SchematicTable, type SchematicTableCell, type SchematicTableCellInput, type SchematicTableInput, type SchematicText, type SchematicTextInput, type SchematicTrace, type SchematicTraceEdge, type SchematicTraceInput, type SchematicVoltageProbe, type SchematicVoltageProbeInput, type SimulationAcVoltageSource, type SimulationAcVoltageSourceInput, type SimulationDcVoltageSource, type SimulationVoltageSource, type SimulationVoltageSourceInput, type Size, type SizeInput, type SourceComponentBase, type SourceFailedToCreateComponentError, type SourceFailedToCreateComponentErrorInput, type SourceGroup, type SourceGroupInput, type SourceManuallyPlacedVia, type SourceManuallyPlacedViaInput, type SourceMissingPropertyError, type SourceMissingPropertyErrorInput, type SourceNet, type SourceNetInput, type SourcePcbGroundPlane, type SourcePcbGroundPlaneInput, type SourcePinMissingTraceWarning, type SourcePinMissingTraceWarningInput, type SourcePort, type SourcePortInput, type SourceProjectMetadata, type SourcePropertyIgnoredWarning, type SourcePropertyIgnoredWarningInput, type SourceSimpleBattery, type SourceSimpleBatteryInput, type SourceSimpleCapacitor, type SourceSimpleCapacitorInput, type SourceSimpleChip, type SourceSimpleChipInput, type SourceSimpleCrystal, type SourceSimpleCrystalInput, type SourceSimpleDiode, type SourceSimpleDiodeInput, type SourceSimpleGround, type SourceSimpleGroundInput, type SourceSimpleInductor, type SourceSimpleInductorInput, type SourceSimpleLed, type SourceSimpleLedInput, type SourceSimpleMosfet, type SourceSimpleMosfetInput, type SourceSimplePinHeader, type SourceSimplePinHeaderInput, type SourceSimplePinout, type SourceSimplePinoutInput, type SourceSimplePotentiometer, type SourceSimplePotentiometerInput, type SourceSimplePowerSource, type SourceSimplePowerSourceInput, type SourceSimplePushButton, type SourceSimplePushButtonInput, type SourceSimpleResistor, type SourceSimpleResistorInput, type SourceSimpleResonator, type SourceSimpleResonatorInput, type SourceSimpleSwitch, type SourceSimpleSwitchInput, type SourceSimpleTestPoint, type SourceSimpleTestPointInput, type SourceSimpleTransistor, type SourceSimpleTransistorInput, type SourceTrace, type SourceTraceNotConnectedError, type SourceTraceNotConnectedErrorInput, type SupplierName, type VisibleLayer, type VisibleLayerRef, type WaveShape, all_layers, any_circuit_element, any_soup_element, any_source_component, battery_capacity, brep_shape, cad_component, capacitance, circuit_json_footprint_load_error, current, distance, external_footprint_load_error, frequency, getZodPrefixedIdWithDefault, inductance, layer_ref, layer_string, length, ninePointAnchor, pcb_autorouting_error, pcb_board, pcb_breakout_point, pcb_component, pcb_component_outside_board_error, pcb_copper_pour, pcb_copper_pour_brep, pcb_copper_pour_polygon, pcb_copper_pour_rect, pcb_cutout, pcb_cutout_circle, pcb_cutout_polygon, pcb_cutout_rect, pcb_fabrication_note_path, pcb_fabrication_note_text, pcb_footprint_overlap_error, pcb_ground_plane, pcb_ground_plane_region, pcb_group, pcb_hole, pcb_hole_circle_or_square_shape, pcb_hole_oval_shape, pcb_keepout, pcb_manual_edit_conflict_warning, pcb_missing_footprint_error, pcb_net, pcb_placement_error, pcb_plated_hole, pcb_port, pcb_port_not_connected_error, pcb_port_not_matched_error, pcb_route_hint, pcb_route_hints, pcb_silkscreen_circle, pcb_silkscreen_line, pcb_silkscreen_oval, pcb_silkscreen_path, pcb_silkscreen_rect, pcb_silkscreen_text, pcb_smtpad, pcb_smtpad_pill, pcb_solder_paste, pcb_text, pcb_thermal_spoke, pcb_trace, pcb_trace_error, pcb_trace_hint, pcb_trace_missing_error, pcb_trace_route_point, pcb_trace_route_point_via, pcb_trace_route_point_wire, pcb_via, point, point3, point_with_bulge, port_arrangement, position, position3, resistance, ring, rotation, route_hint_point, schematic_arc, schematic_box, schematic_circle, schematic_component, schematic_component_port_arrangement_by_sides, schematic_component_port_arrangement_by_size, schematic_debug_line, schematic_debug_object, schematic_debug_object_base, schematic_debug_point, schematic_debug_rect, schematic_error, schematic_group, schematic_layout_error, schematic_line, schematic_manual_edit_conflict_warning, schematic_net_label, schematic_path, schematic_pin_styles, schematic_port, schematic_rect, schematic_table, schematic_table_cell, schematic_text, schematic_trace, schematic_voltage_probe, simulation_ac_voltage_source, simulation_dc_voltage_source, simulation_voltage_source, size, source_component_base, source_failed_to_create_component_error, source_group, source_manually_placed_via, source_missing_property_error, source_net, source_pcb_ground_plane, source_pin_missing_trace_warning, source_port, source_project_metadata, source_property_ignored_warning, source_simple_battery, source_simple_capacitor, source_simple_chip, source_simple_crystal, source_simple_diode, source_simple_ground, source_simple_inductor, source_simple_led, source_simple_mosfet, source_simple_pin_header, source_simple_pinout, source_simple_potentiometer, source_simple_power_source, source_simple_push_button, source_simple_resistor, source_simple_resonator, source_simple_switch, source_simple_test_point, source_simple_transistor, source_trace, source_trace_not_connected_error, supplier_name, time, visible_layer, voltage, wave_shape };
|
|
23066
|
+
export { type AnyCircuitElement, type AnyCircuitElementInput, type AnySoupElement, type AnySoupElementInput, type AnySourceComponent, type AnySourceElement, type BRepShape, type CadComponent, type CadComponentInput, type CircuitJson, type CircuitJsonError, type CircuitJsonFootprintLoadError, type CircuitJsonFootprintLoadErrorInput, type Distance, type ExperimentType, type ExternalFootprintLoadError, type ExternalFootprintLoadErrorInput, type InferredProjectMetadata, type InferredSchematicNetLabel, type InputPoint, type InputPosition, type InputRotation, type LayerRef, type LayerRefInput, type Length, type NinePointAnchor, type PCBBoard, type PCBComponent, type PCBFabricationNotePath, type PCBFabricationNoteText, type PCBHole, type PCBHoleInput, type PCBKeepout, type PCBKeepoutCircle, type PCBKeepoutInput, type PCBKeepoutRect, type PCBMissingFootprintError, type PCBPlacementError, type PCBPlatedHole, type PCBPlatedHoleInput, type PCBPort, type PCBPortInput, type PCBPortNotMatchedError, type PCBSMTPad, type PCBSMTPadInput, type PCBSilkscreenLine, type PCBSilkscreenText, type PCBSolderPasteInput, type PCBText, type PCBTrace, type PCBTraceError, type PCBTraceHint, type PCBTraceInput, type PCBTraceMissingError, type PCBVia, type PcbAutoroutingError, type PcbAutoroutingErrorInput, type PcbAutoroutingErrorInterface, type PcbBoard, type PcbBoardInput, type PcbBreakoutPoint, type PcbBreakoutPointInput, type PcbCircuitElement, type PcbComponent, type PcbComponentInput, type PcbComponentOutsideBoardError, type PcbComponentOutsideBoardErrorInput, type PcbCopperPour, type PcbCopperPourBRep, type PcbCopperPourBRepInput, type PcbCopperPourInput, type PcbCopperPourPolygon, type PcbCopperPourPolygonInput, type PcbCopperPourRect, type PcbCopperPourRectInput, type PcbCutout, type PcbCutoutCircle, type PcbCutoutCircleInput, type PcbCutoutInput, type PcbCutoutPolygon, type PcbCutoutPolygonInput, type PcbCutoutRect, type PcbCutoutRectInput, type PcbFabricationNotePath, type PcbFabricationNotePathInput, type PcbFabricationNoteText, type PcbFabricationNoteTextInput, type PcbFootprintOverlapError, type PcbFootprintOverlapErrorInput, type PcbGroundPlane, type PcbGroundPlaneInput, type PcbGroundPlaneRegion, type PcbGroundPlaneRegionInput, type PcbGroup, type PcbGroupInput, type PcbHole, type PcbHoleCircleOrSquare, type PcbHoleCircleOrSquareInput, type PcbHoleCircularWithRectPad, type PcbHoleOval, type PcbHoleOvalInput, type PcbHolePillWithRectPad, type PcbHoleRotatedPillWithRectPad, type PcbManualEditConflictWarning, type PcbManualEditConflictWarningInput, type PcbMissingFootprintError, type PcbMissingFootprintErrorInput, type PcbNet, type PcbNetInput, type PcbPlacementError, type PcbPlacementErrorInput, type PcbPlatedHole, type PcbPlatedHoleCircle, type PcbPlatedHoleInput, type PcbPlatedHoleOval, type PcbPort, type PcbPortInput, type PcbPortNotConnectedError, type PcbPortNotConnectedErrorInput, type PcbPortNotMatchedError, type PcbPortNotMatchedErrorInput, type PcbRouteHint, type PcbRouteHintInput, type PcbRouteHints, type PcbRouteHintsInput, type PcbSilkscreenCircle, type PcbSilkscreenCircleInput, type PcbSilkscreenLine, type PcbSilkscreenLineInput, type PcbSilkscreenOval, type PcbSilkscreenOvalDeprecated, type PcbSilkscreenOvalInput, type PcbSilkscreenPath, type PcbSilkscreenPathDeprecated, type PcbSilkscreenPathInput, type PcbSilkscreenRect, type PcbSilkscreenRectInput, type PcbSilkscreenRectOld, type PcbSilkscreenText, type PcbSilkscreenTextInput, type PcbSmtPad, type PcbSmtPadCircle, type PcbSmtPadPill, type PcbSmtPadPolygon, type PcbSmtPadRect, type PcbSmtPadRotatedPill, type PcbSmtPadRotatedRect, type PcbSolderPaste, type PcbSolderPasteCircle, type PcbSolderPasteOval, type PcbSolderPastePill, type PcbSolderPasteRect, type PcbSolderPasteRotatedRect, type PcbText, type PcbTextInput, type PcbThermalSpoke, type PcbThermalSpokeInput, type PcbTrace, type PcbTraceError, type PcbTraceErrorInput, type PcbTraceHint, type PcbTraceHintInput, type PcbTraceInput, type PcbTraceMissingError, type PcbTraceMissingErrorInput, type PcbTraceRoutePoint, type PcbTraceRoutePointVia, type PcbTraceRoutePointWire, type PcbVia, type PcbViaInput, type Point, type Point3, type PointWithBulge, type Position, type Ring, type Rotation, type RouteHintPoint, type RouteHintPointInput, type SchematicArc, type SchematicArcInput, type SchematicBox, type SchematicBoxInput, type SchematicCircle, type SchematicCircleInput, type SchematicComponent, type SchematicComponentInput, type SchematicDebugLine, type SchematicDebugObject, type SchematicDebugObjectInput, type SchematicDebugPoint, type SchematicDebugRect, type SchematicError, type SchematicErrorInput, type SchematicGroup, type SchematicGroupInput, type SchematicLayoutError, type SchematicLayoutErrorInput, type SchematicLine, type SchematicLineInput, type SchematicManualEditConflictWarning, type SchematicManualEditConflictWarningInput, type SchematicNetLabel, type SchematicNetLabelInput, type SchematicPath, type SchematicPathInput, type SchematicPort, type SchematicPortArrangement, type SchematicPortArrangementBySides, type SchematicPortArrangementBySize, type SchematicPortInput, type SchematicRect, type SchematicRectInput, type SchematicTable, type SchematicTableCell, type SchematicTableCellInput, type SchematicTableInput, type SchematicText, type SchematicTextInput, type SchematicTrace, type SchematicTraceEdge, type SchematicTraceInput, type SchematicVoltageProbe, type SchematicVoltageProbeInput, type SimulationAcVoltageSource, type SimulationAcVoltageSourceInput, type SimulationDcVoltageSource, type SimulationExperiment, type SimulationExperimentInput, type SimulationTransientVoltageGraph, type SimulationTransientVoltageGraphInput, type SimulationVoltageSource, type SimulationVoltageSourceInput, type Size, type SizeInput, type SourceComponentBase, type SourceFailedToCreateComponentError, type SourceFailedToCreateComponentErrorInput, type SourceGroup, type SourceGroupInput, type SourceManuallyPlacedVia, type SourceManuallyPlacedViaInput, type SourceMissingPropertyError, type SourceMissingPropertyErrorInput, type SourceNet, type SourceNetInput, type SourcePcbGroundPlane, type SourcePcbGroundPlaneInput, type SourcePinMissingTraceWarning, type SourcePinMissingTraceWarningInput, type SourcePort, type SourcePortInput, type SourceProjectMetadata, type SourcePropertyIgnoredWarning, type SourcePropertyIgnoredWarningInput, type SourceSimpleBattery, type SourceSimpleBatteryInput, type SourceSimpleCapacitor, type SourceSimpleCapacitorInput, type SourceSimpleChip, type SourceSimpleChipInput, type SourceSimpleCrystal, type SourceSimpleCrystalInput, type SourceSimpleDiode, type SourceSimpleDiodeInput, type SourceSimpleGround, type SourceSimpleGroundInput, type SourceSimpleInductor, type SourceSimpleInductorInput, type SourceSimpleLed, type SourceSimpleLedInput, type SourceSimpleMosfet, type SourceSimpleMosfetInput, type SourceSimplePinHeader, type SourceSimplePinHeaderInput, type SourceSimplePinout, type SourceSimplePinoutInput, type SourceSimplePotentiometer, type SourceSimplePotentiometerInput, type SourceSimplePowerSource, type SourceSimplePowerSourceInput, type SourceSimplePushButton, type SourceSimplePushButtonInput, type SourceSimpleResistor, type SourceSimpleResistorInput, type SourceSimpleResonator, type SourceSimpleResonatorInput, type SourceSimpleSwitch, type SourceSimpleSwitchInput, type SourceSimpleTestPoint, type SourceSimpleTestPointInput, type SourceSimpleTransistor, type SourceSimpleTransistorInput, type SourceTrace, type SourceTraceNotConnectedError, type SourceTraceNotConnectedErrorInput, type SupplierName, type VisibleLayer, type VisibleLayerRef, type WaveShape, all_layers, any_circuit_element, any_soup_element, any_source_component, battery_capacity, brep_shape, cad_component, capacitance, circuit_json_footprint_load_error, current, distance, experiment_type, external_footprint_load_error, frequency, getZodPrefixedIdWithDefault, inductance, layer_ref, layer_string, length, ninePointAnchor, pcb_autorouting_error, pcb_board, pcb_breakout_point, pcb_component, pcb_component_outside_board_error, pcb_copper_pour, pcb_copper_pour_brep, pcb_copper_pour_polygon, pcb_copper_pour_rect, pcb_cutout, pcb_cutout_circle, pcb_cutout_polygon, pcb_cutout_rect, pcb_fabrication_note_path, pcb_fabrication_note_text, pcb_footprint_overlap_error, pcb_ground_plane, pcb_ground_plane_region, pcb_group, pcb_hole, pcb_hole_circle_or_square_shape, pcb_hole_oval_shape, pcb_keepout, pcb_manual_edit_conflict_warning, pcb_missing_footprint_error, pcb_net, pcb_placement_error, pcb_plated_hole, pcb_port, pcb_port_not_connected_error, pcb_port_not_matched_error, pcb_route_hint, pcb_route_hints, pcb_silkscreen_circle, pcb_silkscreen_line, pcb_silkscreen_oval, pcb_silkscreen_path, pcb_silkscreen_rect, pcb_silkscreen_text, pcb_smtpad, pcb_smtpad_pill, pcb_solder_paste, pcb_text, pcb_thermal_spoke, pcb_trace, pcb_trace_error, pcb_trace_hint, pcb_trace_missing_error, pcb_trace_route_point, pcb_trace_route_point_via, pcb_trace_route_point_wire, pcb_via, point, point3, point_with_bulge, port_arrangement, position, position3, resistance, ring, rotation, route_hint_point, schematic_arc, schematic_box, schematic_circle, schematic_component, schematic_component_port_arrangement_by_sides, schematic_component_port_arrangement_by_size, schematic_debug_line, schematic_debug_object, schematic_debug_object_base, schematic_debug_point, schematic_debug_rect, schematic_error, schematic_group, schematic_layout_error, schematic_line, schematic_manual_edit_conflict_warning, schematic_net_label, schematic_path, schematic_pin_styles, schematic_port, schematic_rect, schematic_table, schematic_table_cell, schematic_text, schematic_trace, schematic_voltage_probe, simulation_ac_voltage_source, simulation_dc_voltage_source, simulation_experiment, simulation_transient_voltage_graph, simulation_voltage_source, size, source_component_base, source_failed_to_create_component_error, source_group, source_manually_placed_via, source_missing_property_error, source_net, source_pcb_ground_plane, source_pin_missing_trace_warning, source_port, source_project_metadata, source_property_ignored_warning, source_simple_battery, source_simple_capacitor, source_simple_chip, source_simple_crystal, source_simple_diode, source_simple_ground, source_simple_inductor, source_simple_led, source_simple_mosfet, source_simple_pin_header, source_simple_pinout, source_simple_potentiometer, source_simple_power_source, source_simple_push_button, source_simple_resistor, source_simple_resonator, source_simple_switch, source_simple_test_point, source_simple_transistor, source_trace, source_trace_not_connected_error, supplier_name, time, visible_layer, voltage, wave_shape };
|
package/dist/index.mjs
CHANGED
|
@@ -1216,7 +1216,10 @@ var pcb_component = z66.object({
|
|
|
1216
1216
|
height: length,
|
|
1217
1217
|
do_not_place: z66.boolean().optional(),
|
|
1218
1218
|
subcircuit_id: z66.string().optional(),
|
|
1219
|
-
pcb_group_id: z66.string().optional()
|
|
1219
|
+
pcb_group_id: z66.string().optional(),
|
|
1220
|
+
obstructs_within_bounds: z66.boolean().default(true).describe(
|
|
1221
|
+
"Does this component take up all the space within its bounds on a layer. This is generally true except for when separated pin headers are being represented by a single component (in which case, chips can be placed between the pin headers) or for tall modules where chips fit underneath"
|
|
1222
|
+
)
|
|
1220
1223
|
}).describe("Defines a component on the PCB");
|
|
1221
1224
|
expectTypesMatch(true);
|
|
1222
1225
|
|
|
@@ -2313,9 +2316,46 @@ expectTypesMatch(true);
|
|
|
2313
2316
|
expectTypesMatch(true);
|
|
2314
2317
|
expectTypesMatch(true);
|
|
2315
2318
|
|
|
2316
|
-
// src/
|
|
2319
|
+
// src/simulation/simulation_experiment.ts
|
|
2317
2320
|
import { z as z108 } from "zod";
|
|
2318
|
-
var
|
|
2321
|
+
var experiment_type = z108.union([
|
|
2322
|
+
z108.literal("spice_dc_sweep"),
|
|
2323
|
+
z108.literal("spice_dc_operating_point"),
|
|
2324
|
+
z108.literal("spice_transient_analysis"),
|
|
2325
|
+
z108.literal("spice_ac_analysis")
|
|
2326
|
+
]);
|
|
2327
|
+
var simulation_experiment = z108.object({
|
|
2328
|
+
type: z108.literal("simulation_experiment"),
|
|
2329
|
+
simulation_experiment_id: getZodPrefixedIdWithDefault(
|
|
2330
|
+
"simulation_experiment"
|
|
2331
|
+
),
|
|
2332
|
+
name: z108.string(),
|
|
2333
|
+
experiment_type
|
|
2334
|
+
}).describe("Defines a simulation experiment configuration");
|
|
2335
|
+
expectTypesMatch(true);
|
|
2336
|
+
|
|
2337
|
+
// src/simulation/simulation_transient_voltage_graph.ts
|
|
2338
|
+
import { z as z109 } from "zod";
|
|
2339
|
+
var simulation_transient_voltage_graph = z109.object({
|
|
2340
|
+
type: z109.literal("simulation_transient_voltage_graph"),
|
|
2341
|
+
simulation_transient_voltage_graph_id: getZodPrefixedIdWithDefault(
|
|
2342
|
+
"simulation_transient_voltage_graph"
|
|
2343
|
+
),
|
|
2344
|
+
simulation_experiment_id: z109.string(),
|
|
2345
|
+
timestamps_ms: z109.array(z109.number()).optional(),
|
|
2346
|
+
voltage_levels: z109.array(z109.number()),
|
|
2347
|
+
schematic_voltage_probe_id: z109.string().optional(),
|
|
2348
|
+
subcircuit_connecivity_map_key: z109.string().optional(),
|
|
2349
|
+
time_per_step: z109.number(),
|
|
2350
|
+
start_time_ms: z109.number(),
|
|
2351
|
+
end_time_ms: z109.number(),
|
|
2352
|
+
name: z109.string().optional()
|
|
2353
|
+
}).describe("Stores voltage measurements over time for a simulation");
|
|
2354
|
+
expectTypesMatch(true);
|
|
2355
|
+
|
|
2356
|
+
// src/any_circuit_element.ts
|
|
2357
|
+
import { z as z110 } from "zod";
|
|
2358
|
+
var any_circuit_element = z110.union([
|
|
2319
2359
|
source_trace,
|
|
2320
2360
|
source_port,
|
|
2321
2361
|
any_source_component,
|
|
@@ -2403,7 +2443,9 @@ var any_circuit_element = z108.union([
|
|
|
2403
2443
|
schematic_table,
|
|
2404
2444
|
schematic_table_cell,
|
|
2405
2445
|
cad_component,
|
|
2406
|
-
simulation_voltage_source
|
|
2446
|
+
simulation_voltage_source,
|
|
2447
|
+
simulation_experiment,
|
|
2448
|
+
simulation_transient_voltage_graph
|
|
2407
2449
|
]);
|
|
2408
2450
|
var any_soup_element = any_circuit_element;
|
|
2409
2451
|
expectTypesMatch(true);
|
|
@@ -2420,6 +2462,7 @@ export {
|
|
|
2420
2462
|
circuit_json_footprint_load_error,
|
|
2421
2463
|
current,
|
|
2422
2464
|
distance,
|
|
2465
|
+
experiment_type,
|
|
2423
2466
|
external_footprint_load_error,
|
|
2424
2467
|
frequency,
|
|
2425
2468
|
getZodPrefixedIdWithDefault,
|
|
@@ -2518,6 +2561,8 @@ export {
|
|
|
2518
2561
|
schematic_voltage_probe,
|
|
2519
2562
|
simulation_ac_voltage_source,
|
|
2520
2563
|
simulation_dc_voltage_source,
|
|
2564
|
+
simulation_experiment,
|
|
2565
|
+
simulation_transient_voltage_graph,
|
|
2521
2566
|
simulation_voltage_source,
|
|
2522
2567
|
size,
|
|
2523
2568
|
source_component_base,
|