circuit-json 0.0.247 → 0.0.249

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 CHANGED
@@ -82,6 +82,7 @@ https://github.com/user-attachments/assets/2f28b7ba-689e-4d80-85b2-5bdef84b41f8
82
82
  - [PcbBoard](#pcbboard)
83
83
  - [PcbBreakoutPoint](#pcbbreakoutpoint)
84
84
  - [PcbComponent](#pcbcomponent)
85
+ - [PcbComponentOutsideBoardError](#pcbcomponentoutsideboarderror)
85
86
  - [PcbCopperPour](#pcbcopperpour)
86
87
  - [PcbCutout](#pcbcutout)
87
88
  - [PcbFabricationNotePath](#pcbfabricationnotepath)
@@ -797,6 +798,32 @@ interface PcbComponent {
797
798
  }
798
799
  ```
799
800
 
801
+ ### PcbComponentOutsideBoardError
802
+
803
+ [Source](https://github.com/tscircuit/circuit-json/blob/main/src/pcb/pcb_component_outside_board_error.ts)
804
+
805
+ Error emitted when a PCB component is placed outside the board boundaries
806
+
807
+ ```typescript
808
+ /** Error emitted when a PCB component is placed outside the board boundaries */ interface PcbComponentOutsideBoardError {
809
+ type: "pcb_component_outside_board_error"
810
+ pcb_component_outside_board_error_id: string
811
+ error_type: "pcb_component_outside_board_error"
812
+ message: string
813
+ pcb_component_id: string
814
+ pcb_board_id: string
815
+ component_center: Point
816
+ component_bounds: {
817
+ min_x: number
818
+ max_x: number
819
+ min_y: number
820
+ max_y: number
821
+ }
822
+ subcircuit_id?: string
823
+ source_component_id?: string
824
+ }
825
+ ```
826
+
800
827
  ### PcbCopperPour
801
828
 
802
829
  [Source](https://github.com/tscircuit/circuit-json/blob/main/src/pcb/pcb_copper_pour.ts)
package/dist/index.d.mts CHANGED
@@ -4963,7 +4963,101 @@ declare const pcb_copper_pour: z.ZodDiscriminatedUnion<"shape", [z.ZodObject<{
4963
4963
  type PcbCopperPourInput = z.input<typeof pcb_copper_pour>;
4964
4964
  type PcbCopperPour = PcbCopperPourRect | PcbCopperPourBRep | PcbCopperPourPolygon;
4965
4965
 
4966
- type PcbCircuitElement = PcbComponent | PcbHole | PcbPlatedHole | PcbPort | PcbSmtPad | PcbSolderPaste | PcbText | PcbTrace | PcbTraceError | PcbTraceMissingError | PcbMissingFootprintError | ExternalFootprintLoadError | PcbManualEditConflictWarning | PcbPortNotMatchedError | PcbPortNotConnectedError | PcbVia | PcbBoard | PcbPlacementError | PcbTraceHint | PcbSilkscreenLine | PcbSilkscreenPath | PcbSilkscreenText | PcbSilkscreenRect | PcbSilkscreenCircle | PcbAutoroutingError | PcbFootprintOverlapError | PcbCutout | PcbBreakoutPoint | PcbGroundPlane | PcbGroundPlaneRegion | PcbThermalSpoke | PcbCopperPour;
4966
+ declare const pcb_component_outside_board_error: z.ZodObject<{
4967
+ type: z.ZodLiteral<"pcb_component_outside_board_error">;
4968
+ pcb_component_outside_board_error_id: z.ZodDefault<z.ZodOptional<z.ZodString>>;
4969
+ error_type: z.ZodDefault<z.ZodLiteral<"pcb_component_outside_board_error">>;
4970
+ message: z.ZodString;
4971
+ pcb_component_id: z.ZodString;
4972
+ pcb_board_id: z.ZodString;
4973
+ component_center: z.ZodObject<{
4974
+ x: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>;
4975
+ y: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>;
4976
+ }, "strip", z.ZodTypeAny, {
4977
+ x: number;
4978
+ y: number;
4979
+ }, {
4980
+ x: string | number;
4981
+ y: string | number;
4982
+ }>;
4983
+ component_bounds: z.ZodObject<{
4984
+ min_x: z.ZodNumber;
4985
+ max_x: z.ZodNumber;
4986
+ min_y: z.ZodNumber;
4987
+ max_y: z.ZodNumber;
4988
+ }, "strip", z.ZodTypeAny, {
4989
+ min_x: number;
4990
+ max_x: number;
4991
+ min_y: number;
4992
+ max_y: number;
4993
+ }, {
4994
+ min_x: number;
4995
+ max_x: number;
4996
+ min_y: number;
4997
+ max_y: number;
4998
+ }>;
4999
+ subcircuit_id: z.ZodOptional<z.ZodString>;
5000
+ source_component_id: z.ZodOptional<z.ZodString>;
5001
+ }, "strip", z.ZodTypeAny, {
5002
+ message: string;
5003
+ type: "pcb_component_outside_board_error";
5004
+ pcb_component_id: string;
5005
+ error_type: "pcb_component_outside_board_error";
5006
+ pcb_board_id: string;
5007
+ pcb_component_outside_board_error_id: string;
5008
+ component_center: {
5009
+ x: number;
5010
+ y: number;
5011
+ };
5012
+ component_bounds: {
5013
+ min_x: number;
5014
+ max_x: number;
5015
+ min_y: number;
5016
+ max_y: number;
5017
+ };
5018
+ source_component_id?: string | undefined;
5019
+ subcircuit_id?: string | undefined;
5020
+ }, {
5021
+ message: string;
5022
+ type: "pcb_component_outside_board_error";
5023
+ pcb_component_id: string;
5024
+ pcb_board_id: string;
5025
+ component_center: {
5026
+ x: string | number;
5027
+ y: string | number;
5028
+ };
5029
+ component_bounds: {
5030
+ min_x: number;
5031
+ max_x: number;
5032
+ min_y: number;
5033
+ max_y: number;
5034
+ };
5035
+ source_component_id?: string | undefined;
5036
+ subcircuit_id?: string | undefined;
5037
+ error_type?: "pcb_component_outside_board_error" | undefined;
5038
+ pcb_component_outside_board_error_id?: string | undefined;
5039
+ }>;
5040
+ type PcbComponentOutsideBoardErrorInput = z.input<typeof pcb_component_outside_board_error>;
5041
+ /** Error emitted when a PCB component is placed outside the board boundaries */
5042
+ interface PcbComponentOutsideBoardError {
5043
+ type: "pcb_component_outside_board_error";
5044
+ pcb_component_outside_board_error_id: string;
5045
+ error_type: "pcb_component_outside_board_error";
5046
+ message: string;
5047
+ pcb_component_id: string;
5048
+ pcb_board_id: string;
5049
+ component_center: Point;
5050
+ component_bounds: {
5051
+ min_x: number;
5052
+ max_x: number;
5053
+ min_y: number;
5054
+ max_y: number;
5055
+ };
5056
+ subcircuit_id?: string;
5057
+ source_component_id?: string;
5058
+ }
5059
+
5060
+ type PcbCircuitElement = PcbComponent | PcbHole | PcbPlatedHole | PcbPort | PcbSmtPad | PcbSolderPaste | PcbText | PcbTrace | PcbTraceError | PcbTraceMissingError | PcbMissingFootprintError | ExternalFootprintLoadError | PcbManualEditConflictWarning | PcbPortNotMatchedError | PcbPortNotConnectedError | PcbVia | PcbBoard | PcbPlacementError | PcbTraceHint | PcbSilkscreenLine | PcbSilkscreenPath | PcbSilkscreenText | PcbSilkscreenRect | PcbSilkscreenCircle | PcbAutoroutingError | PcbFootprintOverlapError | PcbCutout | PcbBreakoutPoint | PcbGroundPlane | PcbGroundPlaneRegion | PcbThermalSpoke | PcbCopperPour | PcbComponentOutsideBoardError;
4967
5061
 
4968
5062
  interface SchematicBox {
4969
5063
  type: "schematic_box";
@@ -6652,7 +6746,7 @@ interface SchematicTableCell {
6652
6746
  subcircuit_id?: string;
6653
6747
  }
6654
6748
 
6655
- type CircuitJsonError = PcbTraceError | PcbPlacementError | PcbPortNotMatchedError | PcbAutoroutingError | PcbFootprintOverlapError | PcbMissingFootprintError | SchematicError;
6749
+ type CircuitJsonError = PcbTraceError | PcbPlacementError | PcbPortNotMatchedError | PcbAutoroutingError | PcbFootprintOverlapError | PcbMissingFootprintError | PcbComponentOutsideBoardError | SchematicError;
6656
6750
 
6657
6751
  interface SourceComponentBase {
6658
6752
  type: "source_component";
@@ -9303,6 +9397,7 @@ declare const cad_component: z.ZodObject<{
9303
9397
  model_glb_url: z.ZodOptional<z.ZodString>;
9304
9398
  model_step_url: z.ZodOptional<z.ZodString>;
9305
9399
  model_wrl_url: z.ZodOptional<z.ZodString>;
9400
+ model_unit_to_mm_scale_factor: z.ZodOptional<z.ZodNumber>;
9306
9401
  model_jscad: z.ZodOptional<z.ZodAny>;
9307
9402
  }, "strip", z.ZodTypeAny, {
9308
9403
  type: "cad_component";
@@ -9334,6 +9429,7 @@ declare const cad_component: z.ZodObject<{
9334
9429
  model_glb_url?: string | undefined;
9335
9430
  model_step_url?: string | undefined;
9336
9431
  model_wrl_url?: string | undefined;
9432
+ model_unit_to_mm_scale_factor?: number | undefined;
9337
9433
  model_jscad?: any;
9338
9434
  }, {
9339
9435
  type: "cad_component";
@@ -9367,6 +9463,7 @@ declare const cad_component: z.ZodObject<{
9367
9463
  model_glb_url?: string | undefined;
9368
9464
  model_step_url?: string | undefined;
9369
9465
  model_wrl_url?: string | undefined;
9466
+ model_unit_to_mm_scale_factor?: number | undefined;
9370
9467
  model_jscad?: any;
9371
9468
  }>;
9372
9469
  type CadComponentInput = z.input<typeof cad_component>;
@@ -9388,6 +9485,7 @@ interface CadComponent {
9388
9485
  model_glb_url?: string;
9389
9486
  model_step_url?: string;
9390
9487
  model_wrl_url?: string;
9488
+ model_unit_to_mm_scale_factor?: number;
9391
9489
  model_jscad?: any;
9392
9490
  }
9393
9491
 
@@ -14324,6 +14422,79 @@ declare const any_circuit_element: z.ZodUnion<[z.ZodObject<{
14324
14422
  source_net_id?: string | undefined;
14325
14423
  pcb_copper_pour_id?: string | undefined;
14326
14424
  }>]>, z.ZodObject<{
14425
+ type: z.ZodLiteral<"pcb_component_outside_board_error">;
14426
+ pcb_component_outside_board_error_id: z.ZodDefault<z.ZodOptional<z.ZodString>>;
14427
+ error_type: z.ZodDefault<z.ZodLiteral<"pcb_component_outside_board_error">>;
14428
+ message: z.ZodString;
14429
+ pcb_component_id: z.ZodString;
14430
+ pcb_board_id: z.ZodString;
14431
+ component_center: z.ZodObject<{
14432
+ x: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>;
14433
+ y: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>;
14434
+ }, "strip", z.ZodTypeAny, {
14435
+ x: number;
14436
+ y: number;
14437
+ }, {
14438
+ x: string | number;
14439
+ y: string | number;
14440
+ }>;
14441
+ component_bounds: z.ZodObject<{
14442
+ min_x: z.ZodNumber;
14443
+ max_x: z.ZodNumber;
14444
+ min_y: z.ZodNumber;
14445
+ max_y: z.ZodNumber;
14446
+ }, "strip", z.ZodTypeAny, {
14447
+ min_x: number;
14448
+ max_x: number;
14449
+ min_y: number;
14450
+ max_y: number;
14451
+ }, {
14452
+ min_x: number;
14453
+ max_x: number;
14454
+ min_y: number;
14455
+ max_y: number;
14456
+ }>;
14457
+ subcircuit_id: z.ZodOptional<z.ZodString>;
14458
+ source_component_id: z.ZodOptional<z.ZodString>;
14459
+ }, "strip", z.ZodTypeAny, {
14460
+ message: string;
14461
+ type: "pcb_component_outside_board_error";
14462
+ pcb_component_id: string;
14463
+ error_type: "pcb_component_outside_board_error";
14464
+ pcb_board_id: string;
14465
+ pcb_component_outside_board_error_id: string;
14466
+ component_center: {
14467
+ x: number;
14468
+ y: number;
14469
+ };
14470
+ component_bounds: {
14471
+ min_x: number;
14472
+ max_x: number;
14473
+ min_y: number;
14474
+ max_y: number;
14475
+ };
14476
+ source_component_id?: string | undefined;
14477
+ subcircuit_id?: string | undefined;
14478
+ }, {
14479
+ message: string;
14480
+ type: "pcb_component_outside_board_error";
14481
+ pcb_component_id: string;
14482
+ pcb_board_id: string;
14483
+ component_center: {
14484
+ x: string | number;
14485
+ y: string | number;
14486
+ };
14487
+ component_bounds: {
14488
+ min_x: number;
14489
+ max_x: number;
14490
+ min_y: number;
14491
+ max_y: number;
14492
+ };
14493
+ source_component_id?: string | undefined;
14494
+ subcircuit_id?: string | undefined;
14495
+ error_type?: "pcb_component_outside_board_error" | undefined;
14496
+ pcb_component_outside_board_error_id?: string | undefined;
14497
+ }>, z.ZodObject<{
14327
14498
  type: z.ZodLiteral<"schematic_box">;
14328
14499
  schematic_component_id: z.ZodOptional<z.ZodString>;
14329
14500
  width: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>;
@@ -15402,6 +15573,7 @@ declare const any_circuit_element: z.ZodUnion<[z.ZodObject<{
15402
15573
  model_glb_url: z.ZodOptional<z.ZodString>;
15403
15574
  model_step_url: z.ZodOptional<z.ZodString>;
15404
15575
  model_wrl_url: z.ZodOptional<z.ZodString>;
15576
+ model_unit_to_mm_scale_factor: z.ZodOptional<z.ZodNumber>;
15405
15577
  model_jscad: z.ZodOptional<z.ZodAny>;
15406
15578
  }, "strip", z.ZodTypeAny, {
15407
15579
  type: "cad_component";
@@ -15433,6 +15605,7 @@ declare const any_circuit_element: z.ZodUnion<[z.ZodObject<{
15433
15605
  model_glb_url?: string | undefined;
15434
15606
  model_step_url?: string | undefined;
15435
15607
  model_wrl_url?: string | undefined;
15608
+ model_unit_to_mm_scale_factor?: number | undefined;
15436
15609
  model_jscad?: any;
15437
15610
  }, {
15438
15611
  type: "cad_component";
@@ -15466,6 +15639,7 @@ declare const any_circuit_element: z.ZodUnion<[z.ZodObject<{
15466
15639
  model_glb_url?: string | undefined;
15467
15640
  model_step_url?: string | undefined;
15468
15641
  model_wrl_url?: string | undefined;
15642
+ model_unit_to_mm_scale_factor?: number | undefined;
15469
15643
  model_jscad?: any;
15470
15644
  }>, z.ZodUnion<[z.ZodObject<{
15471
15645
  type: z.ZodLiteral<"simulation_voltage_source">;
@@ -20294,6 +20468,79 @@ declare const any_soup_element: z.ZodUnion<[z.ZodObject<{
20294
20468
  source_net_id?: string | undefined;
20295
20469
  pcb_copper_pour_id?: string | undefined;
20296
20470
  }>]>, z.ZodObject<{
20471
+ type: z.ZodLiteral<"pcb_component_outside_board_error">;
20472
+ pcb_component_outside_board_error_id: z.ZodDefault<z.ZodOptional<z.ZodString>>;
20473
+ error_type: z.ZodDefault<z.ZodLiteral<"pcb_component_outside_board_error">>;
20474
+ message: z.ZodString;
20475
+ pcb_component_id: z.ZodString;
20476
+ pcb_board_id: z.ZodString;
20477
+ component_center: z.ZodObject<{
20478
+ x: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>;
20479
+ y: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>;
20480
+ }, "strip", z.ZodTypeAny, {
20481
+ x: number;
20482
+ y: number;
20483
+ }, {
20484
+ x: string | number;
20485
+ y: string | number;
20486
+ }>;
20487
+ component_bounds: z.ZodObject<{
20488
+ min_x: z.ZodNumber;
20489
+ max_x: z.ZodNumber;
20490
+ min_y: z.ZodNumber;
20491
+ max_y: z.ZodNumber;
20492
+ }, "strip", z.ZodTypeAny, {
20493
+ min_x: number;
20494
+ max_x: number;
20495
+ min_y: number;
20496
+ max_y: number;
20497
+ }, {
20498
+ min_x: number;
20499
+ max_x: number;
20500
+ min_y: number;
20501
+ max_y: number;
20502
+ }>;
20503
+ subcircuit_id: z.ZodOptional<z.ZodString>;
20504
+ source_component_id: z.ZodOptional<z.ZodString>;
20505
+ }, "strip", z.ZodTypeAny, {
20506
+ message: string;
20507
+ type: "pcb_component_outside_board_error";
20508
+ pcb_component_id: string;
20509
+ error_type: "pcb_component_outside_board_error";
20510
+ pcb_board_id: string;
20511
+ pcb_component_outside_board_error_id: string;
20512
+ component_center: {
20513
+ x: number;
20514
+ y: number;
20515
+ };
20516
+ component_bounds: {
20517
+ min_x: number;
20518
+ max_x: number;
20519
+ min_y: number;
20520
+ max_y: number;
20521
+ };
20522
+ source_component_id?: string | undefined;
20523
+ subcircuit_id?: string | undefined;
20524
+ }, {
20525
+ message: string;
20526
+ type: "pcb_component_outside_board_error";
20527
+ pcb_component_id: string;
20528
+ pcb_board_id: string;
20529
+ component_center: {
20530
+ x: string | number;
20531
+ y: string | number;
20532
+ };
20533
+ component_bounds: {
20534
+ min_x: number;
20535
+ max_x: number;
20536
+ min_y: number;
20537
+ max_y: number;
20538
+ };
20539
+ source_component_id?: string | undefined;
20540
+ subcircuit_id?: string | undefined;
20541
+ error_type?: "pcb_component_outside_board_error" | undefined;
20542
+ pcb_component_outside_board_error_id?: string | undefined;
20543
+ }>, z.ZodObject<{
20297
20544
  type: z.ZodLiteral<"schematic_box">;
20298
20545
  schematic_component_id: z.ZodOptional<z.ZodString>;
20299
20546
  width: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>;
@@ -21372,6 +21619,7 @@ declare const any_soup_element: z.ZodUnion<[z.ZodObject<{
21372
21619
  model_glb_url: z.ZodOptional<z.ZodString>;
21373
21620
  model_step_url: z.ZodOptional<z.ZodString>;
21374
21621
  model_wrl_url: z.ZodOptional<z.ZodString>;
21622
+ model_unit_to_mm_scale_factor: z.ZodOptional<z.ZodNumber>;
21375
21623
  model_jscad: z.ZodOptional<z.ZodAny>;
21376
21624
  }, "strip", z.ZodTypeAny, {
21377
21625
  type: "cad_component";
@@ -21403,6 +21651,7 @@ declare const any_soup_element: z.ZodUnion<[z.ZodObject<{
21403
21651
  model_glb_url?: string | undefined;
21404
21652
  model_step_url?: string | undefined;
21405
21653
  model_wrl_url?: string | undefined;
21654
+ model_unit_to_mm_scale_factor?: number | undefined;
21406
21655
  model_jscad?: any;
21407
21656
  }, {
21408
21657
  type: "cad_component";
@@ -21436,6 +21685,7 @@ declare const any_soup_element: z.ZodUnion<[z.ZodObject<{
21436
21685
  model_glb_url?: string | undefined;
21437
21686
  model_step_url?: string | undefined;
21438
21687
  model_wrl_url?: string | undefined;
21688
+ model_unit_to_mm_scale_factor?: number | undefined;
21439
21689
  model_jscad?: any;
21440
21690
  }>, z.ZodUnion<[z.ZodObject<{
21441
21691
  type: z.ZodLiteral<"simulation_voltage_source">;
@@ -21523,4 +21773,4 @@ type AnySoupElementInput = AnyCircuitElementInput;
21523
21773
  */
21524
21774
  type CircuitJson = AnyCircuitElement[];
21525
21775
 
21526
- export { type AnyCircuitElement, type AnyCircuitElementInput, type AnySoupElement, type AnySoupElementInput, type AnySourceComponent, type AnySourceElement, type BRepShape, type CadComponent, type CadComponentInput, type CircuitJson, type CircuitJsonError, 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 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 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 SchematicBox, type SchematicBoxInput, 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 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, 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_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_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_box, 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_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 };
21776
+ export { type AnyCircuitElement, type AnyCircuitElementInput, type AnySoupElement, type AnySoupElementInput, type AnySourceComponent, type AnySourceElement, type BRepShape, type CadComponent, type CadComponentInput, type CircuitJson, type CircuitJsonError, 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 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 SchematicBox, type SchematicBoxInput, 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 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, 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_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_box, 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_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 };
package/dist/index.mjs CHANGED
@@ -2091,35 +2091,61 @@ var pcb_copper_pour = z99.discriminatedUnion("shape", [
2091
2091
  ]).describe("Defines a copper pour on the PCB.");
2092
2092
  expectTypesMatch(true);
2093
2093
 
2094
- // src/cad/cad_component.ts
2094
+ // src/pcb/pcb_component_outside_board_error.ts
2095
2095
  import { z as z100 } from "zod";
2096
- var cad_component = z100.object({
2097
- type: z100.literal("cad_component"),
2098
- cad_component_id: z100.string(),
2096
+ var pcb_component_outside_board_error = z100.object({
2097
+ type: z100.literal("pcb_component_outside_board_error"),
2098
+ pcb_component_outside_board_error_id: getZodPrefixedIdWithDefault(
2099
+ "pcb_component_outside_board_error"
2100
+ ),
2101
+ error_type: z100.literal("pcb_component_outside_board_error").default("pcb_component_outside_board_error"),
2102
+ message: z100.string(),
2099
2103
  pcb_component_id: z100.string(),
2100
- source_component_id: z100.string(),
2104
+ pcb_board_id: z100.string(),
2105
+ component_center: point,
2106
+ component_bounds: z100.object({
2107
+ min_x: z100.number(),
2108
+ max_x: z100.number(),
2109
+ min_y: z100.number(),
2110
+ max_y: z100.number()
2111
+ }),
2112
+ subcircuit_id: z100.string().optional(),
2113
+ source_component_id: z100.string().optional()
2114
+ }).describe(
2115
+ "Error emitted when a PCB component is placed outside the board boundaries"
2116
+ );
2117
+ expectTypesMatch(true);
2118
+
2119
+ // src/cad/cad_component.ts
2120
+ import { z as z101 } from "zod";
2121
+ var cad_component = z101.object({
2122
+ type: z101.literal("cad_component"),
2123
+ cad_component_id: z101.string(),
2124
+ pcb_component_id: z101.string(),
2125
+ source_component_id: z101.string(),
2101
2126
  position: point3,
2102
2127
  rotation: point3.optional(),
2103
2128
  size: point3.optional(),
2104
2129
  layer: layer_ref.optional(),
2105
- subcircuit_id: z100.string().optional(),
2130
+ subcircuit_id: z101.string().optional(),
2106
2131
  // These are all ways to generate/load the 3d model
2107
- footprinter_string: z100.string().optional(),
2108
- model_obj_url: z100.string().optional(),
2109
- model_stl_url: z100.string().optional(),
2110
- model_3mf_url: z100.string().optional(),
2111
- model_gltf_url: z100.string().optional(),
2112
- model_glb_url: z100.string().optional(),
2113
- model_step_url: z100.string().optional(),
2114
- model_wrl_url: z100.string().optional(),
2115
- model_jscad: z100.any().optional()
2132
+ footprinter_string: z101.string().optional(),
2133
+ model_obj_url: z101.string().optional(),
2134
+ model_stl_url: z101.string().optional(),
2135
+ model_3mf_url: z101.string().optional(),
2136
+ model_gltf_url: z101.string().optional(),
2137
+ model_glb_url: z101.string().optional(),
2138
+ model_step_url: z101.string().optional(),
2139
+ model_wrl_url: z101.string().optional(),
2140
+ model_unit_to_mm_scale_factor: z101.number().optional(),
2141
+ model_jscad: z101.any().optional()
2116
2142
  }).describe("Defines a component on the PCB");
2117
2143
  expectTypesMatch(true);
2118
2144
 
2119
2145
  // src/simulation/simulation_voltage_source.ts
2120
- import { z as z101 } from "zod";
2121
- var wave_shape = z101.enum(["sinewave", "square", "triangle", "sawtooth"]);
2122
- var percentage = z101.union([z101.string(), z101.number()]).transform((val) => {
2146
+ import { z as z102 } from "zod";
2147
+ var wave_shape = z102.enum(["sinewave", "square", "triangle", "sawtooth"]);
2148
+ var percentage = z102.union([z102.string(), z102.number()]).transform((val) => {
2123
2149
  if (typeof val === "string") {
2124
2150
  if (val.endsWith("%")) {
2125
2151
  return parseFloat(val.slice(0, -1)) / 100;
@@ -2128,30 +2154,30 @@ var percentage = z101.union([z101.string(), z101.number()]).transform((val) => {
2128
2154
  }
2129
2155
  return val;
2130
2156
  }).pipe(
2131
- z101.number().min(0, "Duty cycle must be non-negative").max(1, "Duty cycle cannot be greater than 100%")
2157
+ z102.number().min(0, "Duty cycle must be non-negative").max(1, "Duty cycle cannot be greater than 100%")
2132
2158
  );
2133
- var simulation_dc_voltage_source = z101.object({
2134
- type: z101.literal("simulation_voltage_source"),
2159
+ var simulation_dc_voltage_source = z102.object({
2160
+ type: z102.literal("simulation_voltage_source"),
2135
2161
  simulation_voltage_source_id: getZodPrefixedIdWithDefault(
2136
2162
  "simulation_voltage_source"
2137
2163
  ),
2138
- is_dc_source: z101.literal(true).optional().default(true),
2139
- positive_source_port_id: z101.string().optional(),
2140
- negative_source_port_id: z101.string().optional(),
2141
- positive_source_net_id: z101.string().optional(),
2142
- negative_source_net_id: z101.string().optional(),
2164
+ is_dc_source: z102.literal(true).optional().default(true),
2165
+ positive_source_port_id: z102.string().optional(),
2166
+ negative_source_port_id: z102.string().optional(),
2167
+ positive_source_net_id: z102.string().optional(),
2168
+ negative_source_net_id: z102.string().optional(),
2143
2169
  voltage
2144
2170
  }).describe("Defines a DC voltage source for simulation");
2145
- var simulation_ac_voltage_source = z101.object({
2146
- type: z101.literal("simulation_voltage_source"),
2171
+ var simulation_ac_voltage_source = z102.object({
2172
+ type: z102.literal("simulation_voltage_source"),
2147
2173
  simulation_voltage_source_id: getZodPrefixedIdWithDefault(
2148
2174
  "simulation_voltage_source"
2149
2175
  ),
2150
- is_dc_source: z101.literal(false),
2151
- terminal1_source_port_id: z101.string().optional(),
2152
- terminal2_source_port_id: z101.string().optional(),
2153
- terminal1_source_net_id: z101.string().optional(),
2154
- terminal2_source_net_id: z101.string().optional(),
2176
+ is_dc_source: z102.literal(false),
2177
+ terminal1_source_port_id: z102.string().optional(),
2178
+ terminal2_source_port_id: z102.string().optional(),
2179
+ terminal1_source_net_id: z102.string().optional(),
2180
+ terminal2_source_net_id: z102.string().optional(),
2155
2181
  voltage: voltage.optional(),
2156
2182
  frequency: frequency.optional(),
2157
2183
  peak_to_peak_voltage: voltage.optional(),
@@ -2159,14 +2185,14 @@ var simulation_ac_voltage_source = z101.object({
2159
2185
  phase: rotation.optional(),
2160
2186
  duty_cycle: percentage.optional()
2161
2187
  }).describe("Defines an AC voltage source for simulation");
2162
- var simulation_voltage_source = z101.union([simulation_dc_voltage_source, simulation_ac_voltage_source]).describe("Defines a voltage source for simulation");
2188
+ var simulation_voltage_source = z102.union([simulation_dc_voltage_source, simulation_ac_voltage_source]).describe("Defines a voltage source for simulation");
2163
2189
  expectTypesMatch(true);
2164
2190
  expectTypesMatch(true);
2165
2191
  expectTypesMatch(true);
2166
2192
 
2167
2193
  // src/any_circuit_element.ts
2168
- import { z as z102 } from "zod";
2169
- var any_circuit_element = z102.union([
2194
+ import { z as z103 } from "zod";
2195
+ var any_circuit_element = z103.union([
2170
2196
  source_trace,
2171
2197
  source_port,
2172
2198
  any_source_component,
@@ -2231,6 +2257,7 @@ var any_circuit_element = z102.union([
2231
2257
  pcb_ground_plane_region,
2232
2258
  pcb_thermal_spoke,
2233
2259
  pcb_copper_pour,
2260
+ pcb_component_outside_board_error,
2234
2261
  schematic_box,
2235
2262
  schematic_text,
2236
2263
  schematic_line,
@@ -2276,6 +2303,7 @@ export {
2276
2303
  pcb_board,
2277
2304
  pcb_breakout_point,
2278
2305
  pcb_component,
2306
+ pcb_component_outside_board_error,
2279
2307
  pcb_copper_pour,
2280
2308
  pcb_copper_pour_brep,
2281
2309
  pcb_copper_pour_polygon,