circuit-json 0.0.268 → 0.0.269
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 +25 -0
- package/dist/index.d.mts +175 -22
- package/dist/index.mjs +83 -63
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -120,6 +120,7 @@ https://github.com/user-attachments/assets/2f28b7ba-689e-4d80-85b2-5bdef84b41f8
|
|
|
120
120
|
- [PcbTraceHint](#pcbtracehint)
|
|
121
121
|
- [PcbTraceMissingError](#pcbtracemissingerror)
|
|
122
122
|
- [PcbVia](#pcbvia)
|
|
123
|
+
- [PcbViaClearanceError](#pcbviaclearanceerror)
|
|
123
124
|
- [Schematic Elements](#schematic-elements)
|
|
124
125
|
- [SchematicArc](#schematicarc)
|
|
125
126
|
- [SchematicBox](#schematicbox)
|
|
@@ -1668,6 +1669,30 @@ interface PcbVia {
|
|
|
1668
1669
|
}
|
|
1669
1670
|
```
|
|
1670
1671
|
|
|
1672
|
+
### PcbViaClearanceError
|
|
1673
|
+
|
|
1674
|
+
[Source](https://github.com/tscircuit/circuit-json/blob/main/src/pcb/pcb_via_clearance_error.ts)
|
|
1675
|
+
|
|
1676
|
+
Error emitted when vias are closer than the allowed clearance
|
|
1677
|
+
|
|
1678
|
+
```typescript
|
|
1679
|
+
/** Error emitted when vias are closer than the allowed clearance */
|
|
1680
|
+
interface PcbViaClearanceError {
|
|
1681
|
+
type: "pcb_via_clearance_error"
|
|
1682
|
+
pcb_error_id: string
|
|
1683
|
+
error_type: "pcb_via_clearance_error"
|
|
1684
|
+
message: string
|
|
1685
|
+
pcb_via_ids: string[]
|
|
1686
|
+
minimum_clearance?: Distance
|
|
1687
|
+
actual_clearance?: Distance
|
|
1688
|
+
pcb_center?: {
|
|
1689
|
+
x?: number
|
|
1690
|
+
y?: number
|
|
1691
|
+
}
|
|
1692
|
+
subcircuit_id?: string
|
|
1693
|
+
}
|
|
1694
|
+
```
|
|
1695
|
+
|
|
1671
1696
|
## Schematic Elements
|
|
1672
1697
|
|
|
1673
1698
|
### SchematicArc
|
package/dist/index.d.mts
CHANGED
|
@@ -5257,7 +5257,70 @@ interface PcbComponentOutsideBoardError {
|
|
|
5257
5257
|
source_component_id?: string;
|
|
5258
5258
|
}
|
|
5259
5259
|
|
|
5260
|
-
|
|
5260
|
+
declare const pcb_via_clearance_error: z.ZodObject<{
|
|
5261
|
+
type: z.ZodLiteral<"pcb_via_clearance_error">;
|
|
5262
|
+
pcb_error_id: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
5263
|
+
error_type: z.ZodDefault<z.ZodLiteral<"pcb_via_clearance_error">>;
|
|
5264
|
+
message: z.ZodString;
|
|
5265
|
+
pcb_via_ids: z.ZodArray<z.ZodString, "many">;
|
|
5266
|
+
minimum_clearance: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
|
|
5267
|
+
actual_clearance: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
|
|
5268
|
+
pcb_center: z.ZodOptional<z.ZodObject<{
|
|
5269
|
+
x: z.ZodOptional<z.ZodNumber>;
|
|
5270
|
+
y: z.ZodOptional<z.ZodNumber>;
|
|
5271
|
+
}, "strip", z.ZodTypeAny, {
|
|
5272
|
+
x?: number | undefined;
|
|
5273
|
+
y?: number | undefined;
|
|
5274
|
+
}, {
|
|
5275
|
+
x?: number | undefined;
|
|
5276
|
+
y?: number | undefined;
|
|
5277
|
+
}>>;
|
|
5278
|
+
subcircuit_id: z.ZodOptional<z.ZodString>;
|
|
5279
|
+
}, "strip", z.ZodTypeAny, {
|
|
5280
|
+
message: string;
|
|
5281
|
+
type: "pcb_via_clearance_error";
|
|
5282
|
+
error_type: "pcb_via_clearance_error";
|
|
5283
|
+
pcb_error_id: string;
|
|
5284
|
+
pcb_via_ids: string[];
|
|
5285
|
+
subcircuit_id?: string | undefined;
|
|
5286
|
+
minimum_clearance?: number | undefined;
|
|
5287
|
+
actual_clearance?: number | undefined;
|
|
5288
|
+
pcb_center?: {
|
|
5289
|
+
x?: number | undefined;
|
|
5290
|
+
y?: number | undefined;
|
|
5291
|
+
} | undefined;
|
|
5292
|
+
}, {
|
|
5293
|
+
message: string;
|
|
5294
|
+
type: "pcb_via_clearance_error";
|
|
5295
|
+
pcb_via_ids: string[];
|
|
5296
|
+
subcircuit_id?: string | undefined;
|
|
5297
|
+
error_type?: "pcb_via_clearance_error" | undefined;
|
|
5298
|
+
pcb_error_id?: string | undefined;
|
|
5299
|
+
minimum_clearance?: string | number | undefined;
|
|
5300
|
+
actual_clearance?: string | number | undefined;
|
|
5301
|
+
pcb_center?: {
|
|
5302
|
+
x?: number | undefined;
|
|
5303
|
+
y?: number | undefined;
|
|
5304
|
+
} | undefined;
|
|
5305
|
+
}>;
|
|
5306
|
+
type PcbViaClearanceErrorInput = z.input<typeof pcb_via_clearance_error>;
|
|
5307
|
+
/** Error emitted when vias are closer than the allowed clearance */
|
|
5308
|
+
interface PcbViaClearanceError {
|
|
5309
|
+
type: "pcb_via_clearance_error";
|
|
5310
|
+
pcb_error_id: string;
|
|
5311
|
+
error_type: "pcb_via_clearance_error";
|
|
5312
|
+
message: string;
|
|
5313
|
+
pcb_via_ids: string[];
|
|
5314
|
+
minimum_clearance?: Distance;
|
|
5315
|
+
actual_clearance?: Distance;
|
|
5316
|
+
pcb_center?: {
|
|
5317
|
+
x?: number;
|
|
5318
|
+
y?: number;
|
|
5319
|
+
};
|
|
5320
|
+
subcircuit_id?: string;
|
|
5321
|
+
}
|
|
5322
|
+
|
|
5323
|
+
type PcbCircuitElement = PcbComponent | PcbHole | PcbPlatedHole | PcbPort | PcbSmtPad | PcbSolderPaste | PcbText | PcbTrace | PcbTraceError | PcbTraceMissingError | PcbMissingFootprintError | ExternalFootprintLoadError | CircuitJsonFootprintLoadError | PcbManualEditConflictWarning | PcbPortNotMatchedError | PcbPortNotConnectedError | PcbVia | PcbNet | PcbBoard | PcbPlacementError | PcbTraceHint | PcbSilkscreenLine | PcbSilkscreenPath | PcbSilkscreenText | PcbSilkscreenRect | PcbSilkscreenCircle | PcbAutoroutingError | PcbFootprintOverlapError | PcbCutout | PcbBreakoutPoint | PcbGroundPlane | PcbGroundPlaneRegion | PcbThermalSpoke | PcbCopperPour | PcbComponentOutsideBoardError | PcbViaClearanceError;
|
|
5261
5324
|
|
|
5262
5325
|
interface SchematicBox {
|
|
5263
5326
|
type: "schematic_box";
|
|
@@ -8340,12 +8403,12 @@ declare const source_failed_to_create_component_error: z.ZodObject<{
|
|
|
8340
8403
|
error_type: "source_failed_to_create_component_error";
|
|
8341
8404
|
source_failed_to_create_component_error_id: string;
|
|
8342
8405
|
subcircuit_id?: string | undefined;
|
|
8343
|
-
component_name?: string | undefined;
|
|
8344
|
-
parent_source_component_id?: string | undefined;
|
|
8345
8406
|
pcb_center?: {
|
|
8346
8407
|
x?: number | undefined;
|
|
8347
8408
|
y?: number | undefined;
|
|
8348
8409
|
} | undefined;
|
|
8410
|
+
component_name?: string | undefined;
|
|
8411
|
+
parent_source_component_id?: string | undefined;
|
|
8349
8412
|
schematic_center?: {
|
|
8350
8413
|
x?: number | undefined;
|
|
8351
8414
|
y?: number | undefined;
|
|
@@ -8355,13 +8418,13 @@ declare const source_failed_to_create_component_error: z.ZodObject<{
|
|
|
8355
8418
|
type: "source_failed_to_create_component_error";
|
|
8356
8419
|
subcircuit_id?: string | undefined;
|
|
8357
8420
|
error_type?: "source_failed_to_create_component_error" | undefined;
|
|
8358
|
-
source_failed_to_create_component_error_id?: string | undefined;
|
|
8359
|
-
component_name?: string | undefined;
|
|
8360
|
-
parent_source_component_id?: string | undefined;
|
|
8361
8421
|
pcb_center?: {
|
|
8362
8422
|
x?: number | undefined;
|
|
8363
8423
|
y?: number | undefined;
|
|
8364
8424
|
} | undefined;
|
|
8425
|
+
source_failed_to_create_component_error_id?: string | undefined;
|
|
8426
|
+
component_name?: string | undefined;
|
|
8427
|
+
parent_source_component_id?: string | undefined;
|
|
8365
8428
|
schematic_center?: {
|
|
8366
8429
|
x?: number | undefined;
|
|
8367
8430
|
y?: number | undefined;
|
|
@@ -9424,12 +9487,12 @@ declare const any_source_component: z.ZodUnion<[z.ZodObject<{
|
|
|
9424
9487
|
error_type: "source_failed_to_create_component_error";
|
|
9425
9488
|
source_failed_to_create_component_error_id: string;
|
|
9426
9489
|
subcircuit_id?: string | undefined;
|
|
9427
|
-
component_name?: string | undefined;
|
|
9428
|
-
parent_source_component_id?: string | undefined;
|
|
9429
9490
|
pcb_center?: {
|
|
9430
9491
|
x?: number | undefined;
|
|
9431
9492
|
y?: number | undefined;
|
|
9432
9493
|
} | undefined;
|
|
9494
|
+
component_name?: string | undefined;
|
|
9495
|
+
parent_source_component_id?: string | undefined;
|
|
9433
9496
|
schematic_center?: {
|
|
9434
9497
|
x?: number | undefined;
|
|
9435
9498
|
y?: number | undefined;
|
|
@@ -9439,13 +9502,13 @@ declare const any_source_component: z.ZodUnion<[z.ZodObject<{
|
|
|
9439
9502
|
type: "source_failed_to_create_component_error";
|
|
9440
9503
|
subcircuit_id?: string | undefined;
|
|
9441
9504
|
error_type?: "source_failed_to_create_component_error" | undefined;
|
|
9442
|
-
source_failed_to_create_component_error_id?: string | undefined;
|
|
9443
|
-
component_name?: string | undefined;
|
|
9444
|
-
parent_source_component_id?: string | undefined;
|
|
9445
9505
|
pcb_center?: {
|
|
9446
9506
|
x?: number | undefined;
|
|
9447
9507
|
y?: number | undefined;
|
|
9448
9508
|
} | undefined;
|
|
9509
|
+
source_failed_to_create_component_error_id?: string | undefined;
|
|
9510
|
+
component_name?: string | undefined;
|
|
9511
|
+
parent_source_component_id?: string | undefined;
|
|
9449
9512
|
schematic_center?: {
|
|
9450
9513
|
x?: number | undefined;
|
|
9451
9514
|
y?: number | undefined;
|
|
@@ -11192,12 +11255,12 @@ declare const any_circuit_element: z.ZodUnion<[z.ZodObject<{
|
|
|
11192
11255
|
error_type: "source_failed_to_create_component_error";
|
|
11193
11256
|
source_failed_to_create_component_error_id: string;
|
|
11194
11257
|
subcircuit_id?: string | undefined;
|
|
11195
|
-
component_name?: string | undefined;
|
|
11196
|
-
parent_source_component_id?: string | undefined;
|
|
11197
11258
|
pcb_center?: {
|
|
11198
11259
|
x?: number | undefined;
|
|
11199
11260
|
y?: number | undefined;
|
|
11200
11261
|
} | undefined;
|
|
11262
|
+
component_name?: string | undefined;
|
|
11263
|
+
parent_source_component_id?: string | undefined;
|
|
11201
11264
|
schematic_center?: {
|
|
11202
11265
|
x?: number | undefined;
|
|
11203
11266
|
y?: number | undefined;
|
|
@@ -11207,13 +11270,13 @@ declare const any_circuit_element: z.ZodUnion<[z.ZodObject<{
|
|
|
11207
11270
|
type: "source_failed_to_create_component_error";
|
|
11208
11271
|
subcircuit_id?: string | undefined;
|
|
11209
11272
|
error_type?: "source_failed_to_create_component_error" | undefined;
|
|
11210
|
-
source_failed_to_create_component_error_id?: string | undefined;
|
|
11211
|
-
component_name?: string | undefined;
|
|
11212
|
-
parent_source_component_id?: string | undefined;
|
|
11213
11273
|
pcb_center?: {
|
|
11214
11274
|
x?: number | undefined;
|
|
11215
11275
|
y?: number | undefined;
|
|
11216
11276
|
} | undefined;
|
|
11277
|
+
source_failed_to_create_component_error_id?: string | undefined;
|
|
11278
|
+
component_name?: string | undefined;
|
|
11279
|
+
parent_source_component_id?: string | undefined;
|
|
11217
11280
|
schematic_center?: {
|
|
11218
11281
|
x?: number | undefined;
|
|
11219
11282
|
y?: number | undefined;
|
|
@@ -14449,6 +14512,51 @@ declare const any_circuit_element: z.ZodUnion<[z.ZodObject<{
|
|
|
14449
14512
|
subcircuit_id?: string | undefined;
|
|
14450
14513
|
error_type?: "pcb_port_not_connected_error" | undefined;
|
|
14451
14514
|
pcb_port_not_connected_error_id?: string | undefined;
|
|
14515
|
+
}>, z.ZodObject<{
|
|
14516
|
+
type: z.ZodLiteral<"pcb_via_clearance_error">;
|
|
14517
|
+
pcb_error_id: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
14518
|
+
error_type: z.ZodDefault<z.ZodLiteral<"pcb_via_clearance_error">>;
|
|
14519
|
+
message: z.ZodString;
|
|
14520
|
+
pcb_via_ids: z.ZodArray<z.ZodString, "many">;
|
|
14521
|
+
minimum_clearance: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
|
|
14522
|
+
actual_clearance: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
|
|
14523
|
+
pcb_center: z.ZodOptional<z.ZodObject<{
|
|
14524
|
+
x: z.ZodOptional<z.ZodNumber>;
|
|
14525
|
+
y: z.ZodOptional<z.ZodNumber>;
|
|
14526
|
+
}, "strip", z.ZodTypeAny, {
|
|
14527
|
+
x?: number | undefined;
|
|
14528
|
+
y?: number | undefined;
|
|
14529
|
+
}, {
|
|
14530
|
+
x?: number | undefined;
|
|
14531
|
+
y?: number | undefined;
|
|
14532
|
+
}>>;
|
|
14533
|
+
subcircuit_id: z.ZodOptional<z.ZodString>;
|
|
14534
|
+
}, "strip", z.ZodTypeAny, {
|
|
14535
|
+
message: string;
|
|
14536
|
+
type: "pcb_via_clearance_error";
|
|
14537
|
+
error_type: "pcb_via_clearance_error";
|
|
14538
|
+
pcb_error_id: string;
|
|
14539
|
+
pcb_via_ids: string[];
|
|
14540
|
+
subcircuit_id?: string | undefined;
|
|
14541
|
+
minimum_clearance?: number | undefined;
|
|
14542
|
+
actual_clearance?: number | undefined;
|
|
14543
|
+
pcb_center?: {
|
|
14544
|
+
x?: number | undefined;
|
|
14545
|
+
y?: number | undefined;
|
|
14546
|
+
} | undefined;
|
|
14547
|
+
}, {
|
|
14548
|
+
message: string;
|
|
14549
|
+
type: "pcb_via_clearance_error";
|
|
14550
|
+
pcb_via_ids: string[];
|
|
14551
|
+
subcircuit_id?: string | undefined;
|
|
14552
|
+
error_type?: "pcb_via_clearance_error" | undefined;
|
|
14553
|
+
pcb_error_id?: string | undefined;
|
|
14554
|
+
minimum_clearance?: string | number | undefined;
|
|
14555
|
+
actual_clearance?: string | number | undefined;
|
|
14556
|
+
pcb_center?: {
|
|
14557
|
+
x?: number | undefined;
|
|
14558
|
+
y?: number | undefined;
|
|
14559
|
+
} | undefined;
|
|
14452
14560
|
}>, z.ZodObject<{
|
|
14453
14561
|
type: z.ZodLiteral<"pcb_fabrication_note_path">;
|
|
14454
14562
|
pcb_fabrication_note_path_id: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
@@ -17620,12 +17728,12 @@ declare const any_soup_element: z.ZodUnion<[z.ZodObject<{
|
|
|
17620
17728
|
error_type: "source_failed_to_create_component_error";
|
|
17621
17729
|
source_failed_to_create_component_error_id: string;
|
|
17622
17730
|
subcircuit_id?: string | undefined;
|
|
17623
|
-
component_name?: string | undefined;
|
|
17624
|
-
parent_source_component_id?: string | undefined;
|
|
17625
17731
|
pcb_center?: {
|
|
17626
17732
|
x?: number | undefined;
|
|
17627
17733
|
y?: number | undefined;
|
|
17628
17734
|
} | undefined;
|
|
17735
|
+
component_name?: string | undefined;
|
|
17736
|
+
parent_source_component_id?: string | undefined;
|
|
17629
17737
|
schematic_center?: {
|
|
17630
17738
|
x?: number | undefined;
|
|
17631
17739
|
y?: number | undefined;
|
|
@@ -17635,13 +17743,13 @@ declare const any_soup_element: z.ZodUnion<[z.ZodObject<{
|
|
|
17635
17743
|
type: "source_failed_to_create_component_error";
|
|
17636
17744
|
subcircuit_id?: string | undefined;
|
|
17637
17745
|
error_type?: "source_failed_to_create_component_error" | undefined;
|
|
17638
|
-
source_failed_to_create_component_error_id?: string | undefined;
|
|
17639
|
-
component_name?: string | undefined;
|
|
17640
|
-
parent_source_component_id?: string | undefined;
|
|
17641
17746
|
pcb_center?: {
|
|
17642
17747
|
x?: number | undefined;
|
|
17643
17748
|
y?: number | undefined;
|
|
17644
17749
|
} | undefined;
|
|
17750
|
+
source_failed_to_create_component_error_id?: string | undefined;
|
|
17751
|
+
component_name?: string | undefined;
|
|
17752
|
+
parent_source_component_id?: string | undefined;
|
|
17645
17753
|
schematic_center?: {
|
|
17646
17754
|
x?: number | undefined;
|
|
17647
17755
|
y?: number | undefined;
|
|
@@ -20877,6 +20985,51 @@ declare const any_soup_element: z.ZodUnion<[z.ZodObject<{
|
|
|
20877
20985
|
subcircuit_id?: string | undefined;
|
|
20878
20986
|
error_type?: "pcb_port_not_connected_error" | undefined;
|
|
20879
20987
|
pcb_port_not_connected_error_id?: string | undefined;
|
|
20988
|
+
}>, z.ZodObject<{
|
|
20989
|
+
type: z.ZodLiteral<"pcb_via_clearance_error">;
|
|
20990
|
+
pcb_error_id: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
20991
|
+
error_type: z.ZodDefault<z.ZodLiteral<"pcb_via_clearance_error">>;
|
|
20992
|
+
message: z.ZodString;
|
|
20993
|
+
pcb_via_ids: z.ZodArray<z.ZodString, "many">;
|
|
20994
|
+
minimum_clearance: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
|
|
20995
|
+
actual_clearance: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
|
|
20996
|
+
pcb_center: z.ZodOptional<z.ZodObject<{
|
|
20997
|
+
x: z.ZodOptional<z.ZodNumber>;
|
|
20998
|
+
y: z.ZodOptional<z.ZodNumber>;
|
|
20999
|
+
}, "strip", z.ZodTypeAny, {
|
|
21000
|
+
x?: number | undefined;
|
|
21001
|
+
y?: number | undefined;
|
|
21002
|
+
}, {
|
|
21003
|
+
x?: number | undefined;
|
|
21004
|
+
y?: number | undefined;
|
|
21005
|
+
}>>;
|
|
21006
|
+
subcircuit_id: z.ZodOptional<z.ZodString>;
|
|
21007
|
+
}, "strip", z.ZodTypeAny, {
|
|
21008
|
+
message: string;
|
|
21009
|
+
type: "pcb_via_clearance_error";
|
|
21010
|
+
error_type: "pcb_via_clearance_error";
|
|
21011
|
+
pcb_error_id: string;
|
|
21012
|
+
pcb_via_ids: string[];
|
|
21013
|
+
subcircuit_id?: string | undefined;
|
|
21014
|
+
minimum_clearance?: number | undefined;
|
|
21015
|
+
actual_clearance?: number | undefined;
|
|
21016
|
+
pcb_center?: {
|
|
21017
|
+
x?: number | undefined;
|
|
21018
|
+
y?: number | undefined;
|
|
21019
|
+
} | undefined;
|
|
21020
|
+
}, {
|
|
21021
|
+
message: string;
|
|
21022
|
+
type: "pcb_via_clearance_error";
|
|
21023
|
+
pcb_via_ids: string[];
|
|
21024
|
+
subcircuit_id?: string | undefined;
|
|
21025
|
+
error_type?: "pcb_via_clearance_error" | undefined;
|
|
21026
|
+
pcb_error_id?: string | undefined;
|
|
21027
|
+
minimum_clearance?: string | number | undefined;
|
|
21028
|
+
actual_clearance?: string | number | undefined;
|
|
21029
|
+
pcb_center?: {
|
|
21030
|
+
x?: number | undefined;
|
|
21031
|
+
y?: number | undefined;
|
|
21032
|
+
} | undefined;
|
|
20880
21033
|
}>, z.ZodObject<{
|
|
20881
21034
|
type: z.ZodLiteral<"pcb_fabrication_note_path">;
|
|
20882
21035
|
pcb_fabrication_note_path_id: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
@@ -23095,4 +23248,4 @@ type AnySoupElementInput = AnyCircuitElementInput;
|
|
|
23095
23248
|
*/
|
|
23096
23249
|
type CircuitJson = AnyCircuitElement[];
|
|
23097
23250
|
|
|
23098
|
-
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 SimulationSwitch, type SimulationSwitchInput, 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_switch, 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 };
|
|
23251
|
+
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 PcbViaClearanceError, type PcbViaClearanceErrorInput, 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 SimulationSwitch, type SimulationSwitchInput, 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, pcb_via_clearance_error, 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_switch, 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
|
@@ -2242,36 +2242,54 @@ var pcb_component_outside_board_error = z105.object({
|
|
|
2242
2242
|
);
|
|
2243
2243
|
expectTypesMatch(true);
|
|
2244
2244
|
|
|
2245
|
-
// src/
|
|
2245
|
+
// src/pcb/pcb_via_clearance_error.ts
|
|
2246
2246
|
import { z as z106 } from "zod";
|
|
2247
|
-
var
|
|
2248
|
-
type: z106.literal("
|
|
2249
|
-
|
|
2250
|
-
|
|
2251
|
-
|
|
2247
|
+
var pcb_via_clearance_error = z106.object({
|
|
2248
|
+
type: z106.literal("pcb_via_clearance_error"),
|
|
2249
|
+
pcb_error_id: getZodPrefixedIdWithDefault("pcb_error"),
|
|
2250
|
+
error_type: z106.literal("pcb_via_clearance_error").default("pcb_via_clearance_error"),
|
|
2251
|
+
message: z106.string(),
|
|
2252
|
+
pcb_via_ids: z106.array(z106.string()).min(2),
|
|
2253
|
+
minimum_clearance: distance.optional(),
|
|
2254
|
+
actual_clearance: distance.optional(),
|
|
2255
|
+
pcb_center: z106.object({
|
|
2256
|
+
x: z106.number().optional(),
|
|
2257
|
+
y: z106.number().optional()
|
|
2258
|
+
}).optional(),
|
|
2259
|
+
subcircuit_id: z106.string().optional()
|
|
2260
|
+
}).describe("Error emitted when vias are closer than the allowed clearance");
|
|
2261
|
+
expectTypesMatch(true);
|
|
2262
|
+
|
|
2263
|
+
// src/cad/cad_component.ts
|
|
2264
|
+
import { z as z107 } from "zod";
|
|
2265
|
+
var cad_component = z107.object({
|
|
2266
|
+
type: z107.literal("cad_component"),
|
|
2267
|
+
cad_component_id: z107.string(),
|
|
2268
|
+
pcb_component_id: z107.string(),
|
|
2269
|
+
source_component_id: z107.string(),
|
|
2252
2270
|
position: point3,
|
|
2253
2271
|
rotation: point3.optional(),
|
|
2254
2272
|
size: point3.optional(),
|
|
2255
2273
|
layer: layer_ref.optional(),
|
|
2256
|
-
subcircuit_id:
|
|
2274
|
+
subcircuit_id: z107.string().optional(),
|
|
2257
2275
|
// These are all ways to generate/load the 3d model
|
|
2258
|
-
footprinter_string:
|
|
2259
|
-
model_obj_url:
|
|
2260
|
-
model_stl_url:
|
|
2261
|
-
model_3mf_url:
|
|
2262
|
-
model_gltf_url:
|
|
2263
|
-
model_glb_url:
|
|
2264
|
-
model_step_url:
|
|
2265
|
-
model_wrl_url:
|
|
2266
|
-
model_unit_to_mm_scale_factor:
|
|
2267
|
-
model_jscad:
|
|
2276
|
+
footprinter_string: z107.string().optional(),
|
|
2277
|
+
model_obj_url: z107.string().optional(),
|
|
2278
|
+
model_stl_url: z107.string().optional(),
|
|
2279
|
+
model_3mf_url: z107.string().optional(),
|
|
2280
|
+
model_gltf_url: z107.string().optional(),
|
|
2281
|
+
model_glb_url: z107.string().optional(),
|
|
2282
|
+
model_step_url: z107.string().optional(),
|
|
2283
|
+
model_wrl_url: z107.string().optional(),
|
|
2284
|
+
model_unit_to_mm_scale_factor: z107.number().optional(),
|
|
2285
|
+
model_jscad: z107.any().optional()
|
|
2268
2286
|
}).describe("Defines a component on the PCB");
|
|
2269
2287
|
expectTypesMatch(true);
|
|
2270
2288
|
|
|
2271
2289
|
// src/simulation/simulation_voltage_source.ts
|
|
2272
|
-
import { z as
|
|
2273
|
-
var wave_shape =
|
|
2274
|
-
var percentage =
|
|
2290
|
+
import { z as z108 } from "zod";
|
|
2291
|
+
var wave_shape = z108.enum(["sinewave", "square", "triangle", "sawtooth"]);
|
|
2292
|
+
var percentage = z108.union([z108.string(), z108.number()]).transform((val) => {
|
|
2275
2293
|
if (typeof val === "string") {
|
|
2276
2294
|
if (val.endsWith("%")) {
|
|
2277
2295
|
return parseFloat(val.slice(0, -1)) / 100;
|
|
@@ -2280,30 +2298,30 @@ var percentage = z107.union([z107.string(), z107.number()]).transform((val) => {
|
|
|
2280
2298
|
}
|
|
2281
2299
|
return val;
|
|
2282
2300
|
}).pipe(
|
|
2283
|
-
|
|
2301
|
+
z108.number().min(0, "Duty cycle must be non-negative").max(1, "Duty cycle cannot be greater than 100%")
|
|
2284
2302
|
);
|
|
2285
|
-
var simulation_dc_voltage_source =
|
|
2286
|
-
type:
|
|
2303
|
+
var simulation_dc_voltage_source = z108.object({
|
|
2304
|
+
type: z108.literal("simulation_voltage_source"),
|
|
2287
2305
|
simulation_voltage_source_id: getZodPrefixedIdWithDefault(
|
|
2288
2306
|
"simulation_voltage_source"
|
|
2289
2307
|
),
|
|
2290
|
-
is_dc_source:
|
|
2291
|
-
positive_source_port_id:
|
|
2292
|
-
negative_source_port_id:
|
|
2293
|
-
positive_source_net_id:
|
|
2294
|
-
negative_source_net_id:
|
|
2308
|
+
is_dc_source: z108.literal(true).optional().default(true),
|
|
2309
|
+
positive_source_port_id: z108.string().optional(),
|
|
2310
|
+
negative_source_port_id: z108.string().optional(),
|
|
2311
|
+
positive_source_net_id: z108.string().optional(),
|
|
2312
|
+
negative_source_net_id: z108.string().optional(),
|
|
2295
2313
|
voltage
|
|
2296
2314
|
}).describe("Defines a DC voltage source for simulation");
|
|
2297
|
-
var simulation_ac_voltage_source =
|
|
2298
|
-
type:
|
|
2315
|
+
var simulation_ac_voltage_source = z108.object({
|
|
2316
|
+
type: z108.literal("simulation_voltage_source"),
|
|
2299
2317
|
simulation_voltage_source_id: getZodPrefixedIdWithDefault(
|
|
2300
2318
|
"simulation_voltage_source"
|
|
2301
2319
|
),
|
|
2302
|
-
is_dc_source:
|
|
2303
|
-
terminal1_source_port_id:
|
|
2304
|
-
terminal2_source_port_id:
|
|
2305
|
-
terminal1_source_net_id:
|
|
2306
|
-
terminal2_source_net_id:
|
|
2320
|
+
is_dc_source: z108.literal(false),
|
|
2321
|
+
terminal1_source_port_id: z108.string().optional(),
|
|
2322
|
+
terminal2_source_port_id: z108.string().optional(),
|
|
2323
|
+
terminal1_source_net_id: z108.string().optional(),
|
|
2324
|
+
terminal2_source_net_id: z108.string().optional(),
|
|
2307
2325
|
voltage: voltage.optional(),
|
|
2308
2326
|
frequency: frequency.optional(),
|
|
2309
2327
|
peak_to_peak_voltage: voltage.optional(),
|
|
@@ -2311,63 +2329,63 @@ var simulation_ac_voltage_source = z107.object({
|
|
|
2311
2329
|
phase: rotation.optional(),
|
|
2312
2330
|
duty_cycle: percentage.optional()
|
|
2313
2331
|
}).describe("Defines an AC voltage source for simulation");
|
|
2314
|
-
var simulation_voltage_source =
|
|
2332
|
+
var simulation_voltage_source = z108.union([simulation_dc_voltage_source, simulation_ac_voltage_source]).describe("Defines a voltage source for simulation");
|
|
2315
2333
|
expectTypesMatch(true);
|
|
2316
2334
|
expectTypesMatch(true);
|
|
2317
2335
|
expectTypesMatch(true);
|
|
2318
2336
|
|
|
2319
2337
|
// src/simulation/simulation_experiment.ts
|
|
2320
|
-
import { z as
|
|
2321
|
-
var experiment_type =
|
|
2322
|
-
|
|
2323
|
-
|
|
2324
|
-
|
|
2325
|
-
|
|
2338
|
+
import { z as z109 } from "zod";
|
|
2339
|
+
var experiment_type = z109.union([
|
|
2340
|
+
z109.literal("spice_dc_sweep"),
|
|
2341
|
+
z109.literal("spice_dc_operating_point"),
|
|
2342
|
+
z109.literal("spice_transient_analysis"),
|
|
2343
|
+
z109.literal("spice_ac_analysis")
|
|
2326
2344
|
]);
|
|
2327
|
-
var simulation_experiment =
|
|
2328
|
-
type:
|
|
2345
|
+
var simulation_experiment = z109.object({
|
|
2346
|
+
type: z109.literal("simulation_experiment"),
|
|
2329
2347
|
simulation_experiment_id: getZodPrefixedIdWithDefault(
|
|
2330
2348
|
"simulation_experiment"
|
|
2331
2349
|
),
|
|
2332
|
-
name:
|
|
2350
|
+
name: z109.string(),
|
|
2333
2351
|
experiment_type
|
|
2334
2352
|
}).describe("Defines a simulation experiment configuration");
|
|
2335
2353
|
expectTypesMatch(true);
|
|
2336
2354
|
|
|
2337
2355
|
// src/simulation/simulation_transient_voltage_graph.ts
|
|
2338
|
-
import { z as
|
|
2339
|
-
var simulation_transient_voltage_graph =
|
|
2340
|
-
type:
|
|
2356
|
+
import { z as z110 } from "zod";
|
|
2357
|
+
var simulation_transient_voltage_graph = z110.object({
|
|
2358
|
+
type: z110.literal("simulation_transient_voltage_graph"),
|
|
2341
2359
|
simulation_transient_voltage_graph_id: getZodPrefixedIdWithDefault(
|
|
2342
2360
|
"simulation_transient_voltage_graph"
|
|
2343
2361
|
),
|
|
2344
|
-
simulation_experiment_id:
|
|
2345
|
-
timestamps_ms:
|
|
2346
|
-
voltage_levels:
|
|
2347
|
-
schematic_voltage_probe_id:
|
|
2348
|
-
subcircuit_connecivity_map_key:
|
|
2349
|
-
time_per_step:
|
|
2350
|
-
start_time_ms:
|
|
2351
|
-
end_time_ms:
|
|
2352
|
-
name:
|
|
2362
|
+
simulation_experiment_id: z110.string(),
|
|
2363
|
+
timestamps_ms: z110.array(z110.number()).optional(),
|
|
2364
|
+
voltage_levels: z110.array(z110.number()),
|
|
2365
|
+
schematic_voltage_probe_id: z110.string().optional(),
|
|
2366
|
+
subcircuit_connecivity_map_key: z110.string().optional(),
|
|
2367
|
+
time_per_step: z110.number(),
|
|
2368
|
+
start_time_ms: z110.number(),
|
|
2369
|
+
end_time_ms: z110.number(),
|
|
2370
|
+
name: z110.string().optional()
|
|
2353
2371
|
}).describe("Stores voltage measurements over time for a simulation");
|
|
2354
2372
|
expectTypesMatch(true);
|
|
2355
2373
|
|
|
2356
2374
|
// src/simulation/simulation_switch.ts
|
|
2357
|
-
import { z as
|
|
2358
|
-
var simulation_switch =
|
|
2359
|
-
type:
|
|
2375
|
+
import { z as z111 } from "zod";
|
|
2376
|
+
var simulation_switch = z111.object({
|
|
2377
|
+
type: z111.literal("simulation_switch"),
|
|
2360
2378
|
simulation_switch_id: getZodPrefixedIdWithDefault("simulation_switch"),
|
|
2361
2379
|
closes_at: time.optional(),
|
|
2362
2380
|
opens_at: time.optional(),
|
|
2363
|
-
starts_closed:
|
|
2381
|
+
starts_closed: z111.boolean().optional(),
|
|
2364
2382
|
switching_frequency: frequency.optional()
|
|
2365
2383
|
}).describe("Defines a switch for simulation timing control");
|
|
2366
2384
|
expectTypesMatch(true);
|
|
2367
2385
|
|
|
2368
2386
|
// src/any_circuit_element.ts
|
|
2369
|
-
import { z as
|
|
2370
|
-
var any_circuit_element =
|
|
2387
|
+
import { z as z112 } from "zod";
|
|
2388
|
+
var any_circuit_element = z112.union([
|
|
2371
2389
|
source_trace,
|
|
2372
2390
|
source_port,
|
|
2373
2391
|
any_source_component,
|
|
@@ -2424,6 +2442,7 @@ var any_circuit_element = z111.union([
|
|
|
2424
2442
|
pcb_placement_error,
|
|
2425
2443
|
pcb_port_not_matched_error,
|
|
2426
2444
|
pcb_port_not_connected_error,
|
|
2445
|
+
pcb_via_clearance_error,
|
|
2427
2446
|
pcb_fabrication_note_path,
|
|
2428
2447
|
pcb_fabrication_note_text,
|
|
2429
2448
|
pcb_autorouting_error,
|
|
@@ -2535,6 +2554,7 @@ export {
|
|
|
2535
2554
|
pcb_trace_route_point_via,
|
|
2536
2555
|
pcb_trace_route_point_wire,
|
|
2537
2556
|
pcb_via,
|
|
2557
|
+
pcb_via_clearance_error,
|
|
2538
2558
|
point,
|
|
2539
2559
|
point3,
|
|
2540
2560
|
point_with_bulge,
|