circuit-json 0.0.279 → 0.0.281
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 +8 -0
- package/dist/index.d.mts +75 -0
- package/dist/index.mjs +3 -0
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1190,6 +1190,13 @@ interface PcbGroup {
|
|
|
1190
1190
|
width: Length
|
|
1191
1191
|
height: Length
|
|
1192
1192
|
center: Point
|
|
1193
|
+
anchor_position?: Point
|
|
1194
|
+
anchor_alignment?:
|
|
1195
|
+
| "center"
|
|
1196
|
+
| "top_left"
|
|
1197
|
+
| "top_right"
|
|
1198
|
+
| "bottom_left"
|
|
1199
|
+
| "bottom_right"
|
|
1193
1200
|
pcb_component_ids: string[]
|
|
1194
1201
|
name?: string
|
|
1195
1202
|
description?: string
|
|
@@ -2438,6 +2445,7 @@ interface SimulationTransientVoltageGraph {
|
|
|
2438
2445
|
timestamps_ms?: number[]
|
|
2439
2446
|
voltage_levels: number[]
|
|
2440
2447
|
schematic_voltage_probe_id?: string
|
|
2448
|
+
simulation_voltage_probe_id?: string
|
|
2441
2449
|
subcircuit_connectivity_map_key?: string
|
|
2442
2450
|
time_per_step: number
|
|
2443
2451
|
start_time_ms: number
|
package/dist/index.d.mts
CHANGED
|
@@ -4997,6 +4997,17 @@ declare const pcb_group: z.ZodObject<{
|
|
|
4997
4997
|
x: string | number;
|
|
4998
4998
|
y: string | number;
|
|
4999
4999
|
}>;
|
|
5000
|
+
anchor_position: z.ZodOptional<z.ZodObject<{
|
|
5001
|
+
x: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>;
|
|
5002
|
+
y: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>;
|
|
5003
|
+
}, "strip", z.ZodTypeAny, {
|
|
5004
|
+
x: number;
|
|
5005
|
+
y: number;
|
|
5006
|
+
}, {
|
|
5007
|
+
x: string | number;
|
|
5008
|
+
y: string | number;
|
|
5009
|
+
}>>;
|
|
5010
|
+
anchor_alignment: z.ZodOptional<z.ZodEnum<["center", "top_left", "top_right", "bottom_left", "bottom_right"]>>;
|
|
5000
5011
|
pcb_component_ids: z.ZodArray<z.ZodString, "many">;
|
|
5001
5012
|
name: z.ZodOptional<z.ZodString>;
|
|
5002
5013
|
description: z.ZodOptional<z.ZodString>;
|
|
@@ -5024,6 +5035,11 @@ declare const pcb_group: z.ZodObject<{
|
|
|
5024
5035
|
name?: string | undefined;
|
|
5025
5036
|
subcircuit_id?: string | undefined;
|
|
5026
5037
|
is_subcircuit?: boolean | undefined;
|
|
5038
|
+
anchor_position?: {
|
|
5039
|
+
x: number;
|
|
5040
|
+
y: number;
|
|
5041
|
+
} | undefined;
|
|
5042
|
+
anchor_alignment?: "center" | "top_left" | "top_right" | "bottom_left" | "bottom_right" | undefined;
|
|
5027
5043
|
layout_mode?: string | undefined;
|
|
5028
5044
|
autorouter_configuration?: {
|
|
5029
5045
|
trace_clearance: number;
|
|
@@ -5044,6 +5060,11 @@ declare const pcb_group: z.ZodObject<{
|
|
|
5044
5060
|
subcircuit_id?: string | undefined;
|
|
5045
5061
|
pcb_group_id?: string | undefined;
|
|
5046
5062
|
is_subcircuit?: boolean | undefined;
|
|
5063
|
+
anchor_position?: {
|
|
5064
|
+
x: string | number;
|
|
5065
|
+
y: string | number;
|
|
5066
|
+
} | undefined;
|
|
5067
|
+
anchor_alignment?: "center" | "top_left" | "top_right" | "bottom_left" | "bottom_right" | undefined;
|
|
5047
5068
|
layout_mode?: string | undefined;
|
|
5048
5069
|
autorouter_configuration?: {
|
|
5049
5070
|
trace_clearance: string | number;
|
|
@@ -5063,6 +5084,8 @@ interface PcbGroup {
|
|
|
5063
5084
|
width: Length;
|
|
5064
5085
|
height: Length;
|
|
5065
5086
|
center: Point;
|
|
5087
|
+
anchor_position?: Point;
|
|
5088
|
+
anchor_alignment?: "center" | "top_left" | "top_right" | "bottom_left" | "bottom_right";
|
|
5066
5089
|
pcb_component_ids: string[];
|
|
5067
5090
|
name?: string;
|
|
5068
5091
|
description?: string;
|
|
@@ -11183,6 +11206,7 @@ interface SimulationTransientVoltageGraph {
|
|
|
11183
11206
|
timestamps_ms?: number[];
|
|
11184
11207
|
voltage_levels: number[];
|
|
11185
11208
|
schematic_voltage_probe_id?: string;
|
|
11209
|
+
simulation_voltage_probe_id?: string;
|
|
11186
11210
|
subcircuit_connectivity_map_key?: string;
|
|
11187
11211
|
time_per_step: number;
|
|
11188
11212
|
start_time_ms: number;
|
|
@@ -11196,6 +11220,7 @@ declare const simulation_transient_voltage_graph: z.ZodObject<{
|
|
|
11196
11220
|
timestamps_ms: z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>;
|
|
11197
11221
|
voltage_levels: z.ZodArray<z.ZodNumber, "many">;
|
|
11198
11222
|
schematic_voltage_probe_id: z.ZodOptional<z.ZodString>;
|
|
11223
|
+
simulation_voltage_probe_id: z.ZodOptional<z.ZodString>;
|
|
11199
11224
|
subcircuit_connectivity_map_key: z.ZodOptional<z.ZodString>;
|
|
11200
11225
|
time_per_step: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>;
|
|
11201
11226
|
start_time_ms: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>;
|
|
@@ -11213,6 +11238,7 @@ declare const simulation_transient_voltage_graph: z.ZodObject<{
|
|
|
11213
11238
|
subcircuit_connectivity_map_key?: string | undefined;
|
|
11214
11239
|
schematic_voltage_probe_id?: string | undefined;
|
|
11215
11240
|
timestamps_ms?: number[] | undefined;
|
|
11241
|
+
simulation_voltage_probe_id?: string | undefined;
|
|
11216
11242
|
}, {
|
|
11217
11243
|
type: "simulation_transient_voltage_graph";
|
|
11218
11244
|
simulation_experiment_id: string;
|
|
@@ -11225,6 +11251,7 @@ declare const simulation_transient_voltage_graph: z.ZodObject<{
|
|
|
11225
11251
|
schematic_voltage_probe_id?: string | undefined;
|
|
11226
11252
|
simulation_transient_voltage_graph_id?: string | undefined;
|
|
11227
11253
|
timestamps_ms?: number[] | undefined;
|
|
11254
|
+
simulation_voltage_probe_id?: string | undefined;
|
|
11228
11255
|
}>;
|
|
11229
11256
|
type SimulationTransientVoltageGraphInput = z.input<typeof simulation_transient_voltage_graph>;
|
|
11230
11257
|
|
|
@@ -15009,6 +15036,17 @@ declare const any_circuit_element: z.ZodUnion<[z.ZodObject<{
|
|
|
15009
15036
|
x: string | number;
|
|
15010
15037
|
y: string | number;
|
|
15011
15038
|
}>;
|
|
15039
|
+
anchor_position: z.ZodOptional<z.ZodObject<{
|
|
15040
|
+
x: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>;
|
|
15041
|
+
y: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>;
|
|
15042
|
+
}, "strip", z.ZodTypeAny, {
|
|
15043
|
+
x: number;
|
|
15044
|
+
y: number;
|
|
15045
|
+
}, {
|
|
15046
|
+
x: string | number;
|
|
15047
|
+
y: string | number;
|
|
15048
|
+
}>>;
|
|
15049
|
+
anchor_alignment: z.ZodOptional<z.ZodEnum<["center", "top_left", "top_right", "bottom_left", "bottom_right"]>>;
|
|
15012
15050
|
pcb_component_ids: z.ZodArray<z.ZodString, "many">;
|
|
15013
15051
|
name: z.ZodOptional<z.ZodString>;
|
|
15014
15052
|
description: z.ZodOptional<z.ZodString>;
|
|
@@ -15036,6 +15074,11 @@ declare const any_circuit_element: z.ZodUnion<[z.ZodObject<{
|
|
|
15036
15074
|
name?: string | undefined;
|
|
15037
15075
|
subcircuit_id?: string | undefined;
|
|
15038
15076
|
is_subcircuit?: boolean | undefined;
|
|
15077
|
+
anchor_position?: {
|
|
15078
|
+
x: number;
|
|
15079
|
+
y: number;
|
|
15080
|
+
} | undefined;
|
|
15081
|
+
anchor_alignment?: "center" | "top_left" | "top_right" | "bottom_left" | "bottom_right" | undefined;
|
|
15039
15082
|
layout_mode?: string | undefined;
|
|
15040
15083
|
autorouter_configuration?: {
|
|
15041
15084
|
trace_clearance: number;
|
|
@@ -15056,6 +15099,11 @@ declare const any_circuit_element: z.ZodUnion<[z.ZodObject<{
|
|
|
15056
15099
|
subcircuit_id?: string | undefined;
|
|
15057
15100
|
pcb_group_id?: string | undefined;
|
|
15058
15101
|
is_subcircuit?: boolean | undefined;
|
|
15102
|
+
anchor_position?: {
|
|
15103
|
+
x: string | number;
|
|
15104
|
+
y: string | number;
|
|
15105
|
+
} | undefined;
|
|
15106
|
+
anchor_alignment?: "center" | "top_left" | "top_right" | "bottom_left" | "bottom_right" | undefined;
|
|
15059
15107
|
layout_mode?: string | undefined;
|
|
15060
15108
|
autorouter_configuration?: {
|
|
15061
15109
|
trace_clearance: string | number;
|
|
@@ -18343,6 +18391,7 @@ declare const any_circuit_element: z.ZodUnion<[z.ZodObject<{
|
|
|
18343
18391
|
timestamps_ms: z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>;
|
|
18344
18392
|
voltage_levels: z.ZodArray<z.ZodNumber, "many">;
|
|
18345
18393
|
schematic_voltage_probe_id: z.ZodOptional<z.ZodString>;
|
|
18394
|
+
simulation_voltage_probe_id: z.ZodOptional<z.ZodString>;
|
|
18346
18395
|
subcircuit_connectivity_map_key: z.ZodOptional<z.ZodString>;
|
|
18347
18396
|
time_per_step: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>;
|
|
18348
18397
|
start_time_ms: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>;
|
|
@@ -18360,6 +18409,7 @@ declare const any_circuit_element: z.ZodUnion<[z.ZodObject<{
|
|
|
18360
18409
|
subcircuit_connectivity_map_key?: string | undefined;
|
|
18361
18410
|
schematic_voltage_probe_id?: string | undefined;
|
|
18362
18411
|
timestamps_ms?: number[] | undefined;
|
|
18412
|
+
simulation_voltage_probe_id?: string | undefined;
|
|
18363
18413
|
}, {
|
|
18364
18414
|
type: "simulation_transient_voltage_graph";
|
|
18365
18415
|
simulation_experiment_id: string;
|
|
@@ -18372,6 +18422,7 @@ declare const any_circuit_element: z.ZodUnion<[z.ZodObject<{
|
|
|
18372
18422
|
schematic_voltage_probe_id?: string | undefined;
|
|
18373
18423
|
simulation_transient_voltage_graph_id?: string | undefined;
|
|
18374
18424
|
timestamps_ms?: number[] | undefined;
|
|
18425
|
+
simulation_voltage_probe_id?: string | undefined;
|
|
18375
18426
|
}>, z.ZodObject<{
|
|
18376
18427
|
type: z.ZodLiteral<"simulation_switch">;
|
|
18377
18428
|
simulation_switch_id: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
@@ -22132,6 +22183,17 @@ declare const any_soup_element: z.ZodUnion<[z.ZodObject<{
|
|
|
22132
22183
|
x: string | number;
|
|
22133
22184
|
y: string | number;
|
|
22134
22185
|
}>;
|
|
22186
|
+
anchor_position: z.ZodOptional<z.ZodObject<{
|
|
22187
|
+
x: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>;
|
|
22188
|
+
y: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>;
|
|
22189
|
+
}, "strip", z.ZodTypeAny, {
|
|
22190
|
+
x: number;
|
|
22191
|
+
y: number;
|
|
22192
|
+
}, {
|
|
22193
|
+
x: string | number;
|
|
22194
|
+
y: string | number;
|
|
22195
|
+
}>>;
|
|
22196
|
+
anchor_alignment: z.ZodOptional<z.ZodEnum<["center", "top_left", "top_right", "bottom_left", "bottom_right"]>>;
|
|
22135
22197
|
pcb_component_ids: z.ZodArray<z.ZodString, "many">;
|
|
22136
22198
|
name: z.ZodOptional<z.ZodString>;
|
|
22137
22199
|
description: z.ZodOptional<z.ZodString>;
|
|
@@ -22159,6 +22221,11 @@ declare const any_soup_element: z.ZodUnion<[z.ZodObject<{
|
|
|
22159
22221
|
name?: string | undefined;
|
|
22160
22222
|
subcircuit_id?: string | undefined;
|
|
22161
22223
|
is_subcircuit?: boolean | undefined;
|
|
22224
|
+
anchor_position?: {
|
|
22225
|
+
x: number;
|
|
22226
|
+
y: number;
|
|
22227
|
+
} | undefined;
|
|
22228
|
+
anchor_alignment?: "center" | "top_left" | "top_right" | "bottom_left" | "bottom_right" | undefined;
|
|
22162
22229
|
layout_mode?: string | undefined;
|
|
22163
22230
|
autorouter_configuration?: {
|
|
22164
22231
|
trace_clearance: number;
|
|
@@ -22179,6 +22246,11 @@ declare const any_soup_element: z.ZodUnion<[z.ZodObject<{
|
|
|
22179
22246
|
subcircuit_id?: string | undefined;
|
|
22180
22247
|
pcb_group_id?: string | undefined;
|
|
22181
22248
|
is_subcircuit?: boolean | undefined;
|
|
22249
|
+
anchor_position?: {
|
|
22250
|
+
x: string | number;
|
|
22251
|
+
y: string | number;
|
|
22252
|
+
} | undefined;
|
|
22253
|
+
anchor_alignment?: "center" | "top_left" | "top_right" | "bottom_left" | "bottom_right" | undefined;
|
|
22182
22254
|
layout_mode?: string | undefined;
|
|
22183
22255
|
autorouter_configuration?: {
|
|
22184
22256
|
trace_clearance: string | number;
|
|
@@ -25466,6 +25538,7 @@ declare const any_soup_element: z.ZodUnion<[z.ZodObject<{
|
|
|
25466
25538
|
timestamps_ms: z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>;
|
|
25467
25539
|
voltage_levels: z.ZodArray<z.ZodNumber, "many">;
|
|
25468
25540
|
schematic_voltage_probe_id: z.ZodOptional<z.ZodString>;
|
|
25541
|
+
simulation_voltage_probe_id: z.ZodOptional<z.ZodString>;
|
|
25469
25542
|
subcircuit_connectivity_map_key: z.ZodOptional<z.ZodString>;
|
|
25470
25543
|
time_per_step: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>;
|
|
25471
25544
|
start_time_ms: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>;
|
|
@@ -25483,6 +25556,7 @@ declare const any_soup_element: z.ZodUnion<[z.ZodObject<{
|
|
|
25483
25556
|
subcircuit_connectivity_map_key?: string | undefined;
|
|
25484
25557
|
schematic_voltage_probe_id?: string | undefined;
|
|
25485
25558
|
timestamps_ms?: number[] | undefined;
|
|
25559
|
+
simulation_voltage_probe_id?: string | undefined;
|
|
25486
25560
|
}, {
|
|
25487
25561
|
type: "simulation_transient_voltage_graph";
|
|
25488
25562
|
simulation_experiment_id: string;
|
|
@@ -25495,6 +25569,7 @@ declare const any_soup_element: z.ZodUnion<[z.ZodObject<{
|
|
|
25495
25569
|
schematic_voltage_probe_id?: string | undefined;
|
|
25496
25570
|
simulation_transient_voltage_graph_id?: string | undefined;
|
|
25497
25571
|
timestamps_ms?: number[] | undefined;
|
|
25572
|
+
simulation_voltage_probe_id?: string | undefined;
|
|
25498
25573
|
}>, z.ZodObject<{
|
|
25499
25574
|
type: z.ZodLiteral<"simulation_switch">;
|
|
25500
25575
|
simulation_switch_id: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
package/dist/index.mjs
CHANGED
|
@@ -2268,6 +2268,8 @@ var pcb_group = z105.object({
|
|
|
2268
2268
|
width: length,
|
|
2269
2269
|
height: length,
|
|
2270
2270
|
center: point,
|
|
2271
|
+
anchor_position: point.optional(),
|
|
2272
|
+
anchor_alignment: z105.enum(["center", "top_left", "top_right", "bottom_left", "bottom_right"]).optional(),
|
|
2271
2273
|
pcb_component_ids: z105.array(z105.string()),
|
|
2272
2274
|
name: z105.string().optional(),
|
|
2273
2275
|
description: z105.string().optional(),
|
|
@@ -2591,6 +2593,7 @@ var simulation_transient_voltage_graph = z120.object({
|
|
|
2591
2593
|
timestamps_ms: z120.array(z120.number()).optional(),
|
|
2592
2594
|
voltage_levels: z120.array(z120.number()),
|
|
2593
2595
|
schematic_voltage_probe_id: z120.string().optional(),
|
|
2596
|
+
simulation_voltage_probe_id: z120.string().optional(),
|
|
2594
2597
|
subcircuit_connectivity_map_key: z120.string().optional(),
|
|
2595
2598
|
time_per_step: duration_ms,
|
|
2596
2599
|
start_time_ms: ms,
|