@tscircuit/eval 0.0.553 → 0.0.554

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.
@@ -1394,7 +1394,10 @@ declare function runTscircuitCode(filesystemOrCodeString: Record<string, string>
1394
1394
  material: "fr4" | "fr1";
1395
1395
  width?: number | undefined;
1396
1396
  height?: number | undefined;
1397
+ display_offset_x?: string | undefined;
1398
+ display_offset_y?: string | undefined;
1397
1399
  subcircuit_id?: string | undefined;
1400
+ position_mode?: "none" | "relative_to_panel_anchor" | undefined;
1398
1401
  shape?: "rect" | "polygon" | undefined;
1399
1402
  pcb_panel_id?: string | undefined;
1400
1403
  is_subcircuit?: boolean | undefined;
@@ -1402,6 +1405,11 @@ declare function runTscircuitCode(filesystemOrCodeString: Record<string, string>
1402
1405
  x: number;
1403
1406
  y: number;
1404
1407
  }[] | undefined;
1408
+ anchor_position?: {
1409
+ x: number;
1410
+ y: number;
1411
+ } | undefined;
1412
+ anchor_alignment?: "center" | "top_left" | "top_center" | "top_right" | "center_left" | "center_right" | "bottom_left" | "bottom_center" | "bottom_right" | undefined;
1405
1413
  } | {
1406
1414
  type: "pcb_panel";
1407
1415
  width: number;
@@ -1489,14 +1497,14 @@ declare function runTscircuitCode(filesystemOrCodeString: Record<string, string>
1489
1497
  pcb_component_id: string;
1490
1498
  layer: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6";
1491
1499
  text: string;
1492
- pcb_silkscreen_text_id: string;
1493
- font: "tscircuit2024";
1494
- font_size: number;
1495
1500
  anchor_position: {
1496
1501
  x: number;
1497
1502
  y: number;
1498
1503
  };
1499
1504
  anchor_alignment: "center" | "top_left" | "top_center" | "top_right" | "center_left" | "center_right" | "bottom_left" | "bottom_center" | "bottom_right";
1505
+ pcb_silkscreen_text_id: string;
1506
+ font: "tscircuit2024";
1507
+ font_size: number;
1500
1508
  subcircuit_id?: string | undefined;
1501
1509
  pcb_group_id?: string | undefined;
1502
1510
  ccw_rotation?: number | undefined;
@@ -1508,18 +1516,31 @@ declare function runTscircuitCode(filesystemOrCodeString: Record<string, string>
1508
1516
  right: number;
1509
1517
  } | undefined;
1510
1518
  is_mirrored?: boolean | undefined;
1519
+ } | {
1520
+ type: "pcb_silkscreen_pill";
1521
+ width: number;
1522
+ height: number;
1523
+ pcb_component_id: string;
1524
+ center: {
1525
+ x: number;
1526
+ y: number;
1527
+ };
1528
+ layer: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6";
1529
+ pcb_silkscreen_pill_id: string;
1530
+ subcircuit_id?: string | undefined;
1531
+ pcb_group_id?: string | undefined;
1511
1532
  } | {
1512
1533
  type: "pcb_copper_text";
1513
1534
  pcb_component_id: string;
1514
1535
  layer: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6";
1515
1536
  text: string;
1516
- font: "tscircuit2024";
1517
- font_size: number;
1518
1537
  anchor_position: {
1519
1538
  x: number;
1520
1539
  y: number;
1521
1540
  };
1522
1541
  anchor_alignment: "center" | "top_left" | "top_center" | "top_right" | "center_left" | "center_right" | "bottom_left" | "bottom_center" | "bottom_right";
1542
+ font: "tscircuit2024";
1543
+ font_size: number;
1523
1544
  pcb_copper_text_id: string;
1524
1545
  subcircuit_id?: string | undefined;
1525
1546
  pcb_group_id?: string | undefined;
@@ -1654,13 +1675,13 @@ declare function runTscircuitCode(filesystemOrCodeString: Record<string, string>
1654
1675
  pcb_component_id: string;
1655
1676
  layer: "top" | "bottom";
1656
1677
  text: string;
1657
- font: "tscircuit2024";
1658
- font_size: number;
1659
1678
  anchor_position: {
1660
1679
  x: number;
1661
1680
  y: number;
1662
1681
  };
1663
1682
  anchor_alignment: "center" | "top_left" | "top_right" | "bottom_left" | "bottom_right";
1683
+ font: "tscircuit2024";
1684
+ font_size: number;
1664
1685
  pcb_fabrication_note_text_id: string;
1665
1686
  subcircuit_id?: string | undefined;
1666
1687
  pcb_group_id?: string | undefined;
@@ -1713,13 +1734,13 @@ declare function runTscircuitCode(filesystemOrCodeString: Record<string, string>
1713
1734
  } | undefined;
1714
1735
  } | {
1715
1736
  type: "pcb_note_text";
1716
- font: "tscircuit2024";
1717
- font_size: number;
1718
1737
  anchor_position: {
1719
1738
  x: number;
1720
1739
  y: number;
1721
1740
  };
1722
1741
  anchor_alignment: "center" | "top_left" | "top_right" | "bottom_left" | "bottom_right";
1742
+ font: "tscircuit2024";
1743
+ font_size: number;
1723
1744
  pcb_note_text_id: string;
1724
1745
  name?: string | undefined;
1725
1746
  pcb_component_id?: string | undefined;
@@ -2423,6 +2444,29 @@ declare function runTscircuitCode(filesystemOrCodeString: Record<string, string>
2423
2444
  wave_shape?: "square" | "sinewave" | "triangle" | "sawtooth" | undefined;
2424
2445
  phase?: number | undefined;
2425
2446
  duty_cycle?: number | undefined;
2447
+ } | {
2448
+ type: "simulation_current_source";
2449
+ is_dc_source: true;
2450
+ simulation_current_source_id: string;
2451
+ current: number;
2452
+ positive_source_port_id?: string | undefined;
2453
+ negative_source_port_id?: string | undefined;
2454
+ positive_source_net_id?: string | undefined;
2455
+ negative_source_net_id?: string | undefined;
2456
+ } | {
2457
+ type: "simulation_current_source";
2458
+ is_dc_source: false;
2459
+ simulation_current_source_id: string;
2460
+ terminal1_source_port_id?: string | undefined;
2461
+ terminal2_source_port_id?: string | undefined;
2462
+ terminal1_source_net_id?: string | undefined;
2463
+ terminal2_source_net_id?: string | undefined;
2464
+ frequency?: number | undefined;
2465
+ wave_shape?: "square" | "sinewave" | "triangle" | "sawtooth" | undefined;
2466
+ phase?: number | undefined;
2467
+ duty_cycle?: number | undefined;
2468
+ current?: number | undefined;
2469
+ peak_to_peak_current?: number | undefined;
2426
2470
  } | {
2427
2471
  type: "simulation_experiment";
2428
2472
  name: string;
@@ -3727,7 +3771,10 @@ declare const runTscircuitModule: (module: string, opts?: {
3727
3771
  material: "fr4" | "fr1";
3728
3772
  width?: number | undefined;
3729
3773
  height?: number | undefined;
3774
+ display_offset_x?: string | undefined;
3775
+ display_offset_y?: string | undefined;
3730
3776
  subcircuit_id?: string | undefined;
3777
+ position_mode?: "none" | "relative_to_panel_anchor" | undefined;
3731
3778
  shape?: "rect" | "polygon" | undefined;
3732
3779
  pcb_panel_id?: string | undefined;
3733
3780
  is_subcircuit?: boolean | undefined;
@@ -3735,6 +3782,11 @@ declare const runTscircuitModule: (module: string, opts?: {
3735
3782
  x: number;
3736
3783
  y: number;
3737
3784
  }[] | undefined;
3785
+ anchor_position?: {
3786
+ x: number;
3787
+ y: number;
3788
+ } | undefined;
3789
+ anchor_alignment?: "center" | "top_left" | "top_center" | "top_right" | "center_left" | "center_right" | "bottom_left" | "bottom_center" | "bottom_right" | undefined;
3738
3790
  } | {
3739
3791
  type: "pcb_panel";
3740
3792
  width: number;
@@ -3822,14 +3874,14 @@ declare const runTscircuitModule: (module: string, opts?: {
3822
3874
  pcb_component_id: string;
3823
3875
  layer: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6";
3824
3876
  text: string;
3825
- pcb_silkscreen_text_id: string;
3826
- font: "tscircuit2024";
3827
- font_size: number;
3828
3877
  anchor_position: {
3829
3878
  x: number;
3830
3879
  y: number;
3831
3880
  };
3832
3881
  anchor_alignment: "center" | "top_left" | "top_center" | "top_right" | "center_left" | "center_right" | "bottom_left" | "bottom_center" | "bottom_right";
3882
+ pcb_silkscreen_text_id: string;
3883
+ font: "tscircuit2024";
3884
+ font_size: number;
3833
3885
  subcircuit_id?: string | undefined;
3834
3886
  pcb_group_id?: string | undefined;
3835
3887
  ccw_rotation?: number | undefined;
@@ -3841,18 +3893,31 @@ declare const runTscircuitModule: (module: string, opts?: {
3841
3893
  right: number;
3842
3894
  } | undefined;
3843
3895
  is_mirrored?: boolean | undefined;
3896
+ } | {
3897
+ type: "pcb_silkscreen_pill";
3898
+ width: number;
3899
+ height: number;
3900
+ pcb_component_id: string;
3901
+ center: {
3902
+ x: number;
3903
+ y: number;
3904
+ };
3905
+ layer: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6";
3906
+ pcb_silkscreen_pill_id: string;
3907
+ subcircuit_id?: string | undefined;
3908
+ pcb_group_id?: string | undefined;
3844
3909
  } | {
3845
3910
  type: "pcb_copper_text";
3846
3911
  pcb_component_id: string;
3847
3912
  layer: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6";
3848
3913
  text: string;
3849
- font: "tscircuit2024";
3850
- font_size: number;
3851
3914
  anchor_position: {
3852
3915
  x: number;
3853
3916
  y: number;
3854
3917
  };
3855
3918
  anchor_alignment: "center" | "top_left" | "top_center" | "top_right" | "center_left" | "center_right" | "bottom_left" | "bottom_center" | "bottom_right";
3919
+ font: "tscircuit2024";
3920
+ font_size: number;
3856
3921
  pcb_copper_text_id: string;
3857
3922
  subcircuit_id?: string | undefined;
3858
3923
  pcb_group_id?: string | undefined;
@@ -3987,13 +4052,13 @@ declare const runTscircuitModule: (module: string, opts?: {
3987
4052
  pcb_component_id: string;
3988
4053
  layer: "top" | "bottom";
3989
4054
  text: string;
3990
- font: "tscircuit2024";
3991
- font_size: number;
3992
4055
  anchor_position: {
3993
4056
  x: number;
3994
4057
  y: number;
3995
4058
  };
3996
4059
  anchor_alignment: "center" | "top_left" | "top_right" | "bottom_left" | "bottom_right";
4060
+ font: "tscircuit2024";
4061
+ font_size: number;
3997
4062
  pcb_fabrication_note_text_id: string;
3998
4063
  subcircuit_id?: string | undefined;
3999
4064
  pcb_group_id?: string | undefined;
@@ -4046,13 +4111,13 @@ declare const runTscircuitModule: (module: string, opts?: {
4046
4111
  } | undefined;
4047
4112
  } | {
4048
4113
  type: "pcb_note_text";
4049
- font: "tscircuit2024";
4050
- font_size: number;
4051
4114
  anchor_position: {
4052
4115
  x: number;
4053
4116
  y: number;
4054
4117
  };
4055
4118
  anchor_alignment: "center" | "top_left" | "top_right" | "bottom_left" | "bottom_right";
4119
+ font: "tscircuit2024";
4120
+ font_size: number;
4056
4121
  pcb_note_text_id: string;
4057
4122
  name?: string | undefined;
4058
4123
  pcb_component_id?: string | undefined;
@@ -4756,6 +4821,29 @@ declare const runTscircuitModule: (module: string, opts?: {
4756
4821
  wave_shape?: "square" | "sinewave" | "triangle" | "sawtooth" | undefined;
4757
4822
  phase?: number | undefined;
4758
4823
  duty_cycle?: number | undefined;
4824
+ } | {
4825
+ type: "simulation_current_source";
4826
+ is_dc_source: true;
4827
+ simulation_current_source_id: string;
4828
+ current: number;
4829
+ positive_source_port_id?: string | undefined;
4830
+ negative_source_port_id?: string | undefined;
4831
+ positive_source_net_id?: string | undefined;
4832
+ negative_source_net_id?: string | undefined;
4833
+ } | {
4834
+ type: "simulation_current_source";
4835
+ is_dc_source: false;
4836
+ simulation_current_source_id: string;
4837
+ terminal1_source_port_id?: string | undefined;
4838
+ terminal2_source_port_id?: string | undefined;
4839
+ terminal1_source_net_id?: string | undefined;
4840
+ terminal2_source_net_id?: string | undefined;
4841
+ frequency?: number | undefined;
4842
+ wave_shape?: "square" | "sinewave" | "triangle" | "sawtooth" | undefined;
4843
+ phase?: number | undefined;
4844
+ duty_cycle?: number | undefined;
4845
+ current?: number | undefined;
4846
+ peak_to_peak_current?: number | undefined;
4759
4847
  } | {
4760
4848
  type: "simulation_experiment";
4761
4849
  name: string;
@@ -1410,7 +1410,10 @@ declare function runTscircuitCode(filesystemOrCodeString: Record<string, string>
1410
1410
  material: "fr4" | "fr1";
1411
1411
  width?: number | undefined;
1412
1412
  height?: number | undefined;
1413
+ display_offset_x?: string | undefined;
1414
+ display_offset_y?: string | undefined;
1413
1415
  subcircuit_id?: string | undefined;
1416
+ position_mode?: "none" | "relative_to_panel_anchor" | undefined;
1414
1417
  shape?: "rect" | "polygon" | undefined;
1415
1418
  pcb_panel_id?: string | undefined;
1416
1419
  is_subcircuit?: boolean | undefined;
@@ -1418,6 +1421,11 @@ declare function runTscircuitCode(filesystemOrCodeString: Record<string, string>
1418
1421
  x: number;
1419
1422
  y: number;
1420
1423
  }[] | undefined;
1424
+ anchor_position?: {
1425
+ x: number;
1426
+ y: number;
1427
+ } | undefined;
1428
+ anchor_alignment?: "center" | "top_left" | "top_center" | "top_right" | "center_left" | "center_right" | "bottom_left" | "bottom_center" | "bottom_right" | undefined;
1421
1429
  } | {
1422
1430
  type: "pcb_panel";
1423
1431
  width: number;
@@ -1505,14 +1513,14 @@ declare function runTscircuitCode(filesystemOrCodeString: Record<string, string>
1505
1513
  pcb_component_id: string;
1506
1514
  layer: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6";
1507
1515
  text: string;
1508
- pcb_silkscreen_text_id: string;
1509
- font: "tscircuit2024";
1510
- font_size: number;
1511
1516
  anchor_position: {
1512
1517
  x: number;
1513
1518
  y: number;
1514
1519
  };
1515
1520
  anchor_alignment: "center" | "top_left" | "top_center" | "top_right" | "center_left" | "center_right" | "bottom_left" | "bottom_center" | "bottom_right";
1521
+ pcb_silkscreen_text_id: string;
1522
+ font: "tscircuit2024";
1523
+ font_size: number;
1516
1524
  subcircuit_id?: string | undefined;
1517
1525
  pcb_group_id?: string | undefined;
1518
1526
  ccw_rotation?: number | undefined;
@@ -1524,18 +1532,31 @@ declare function runTscircuitCode(filesystemOrCodeString: Record<string, string>
1524
1532
  right: number;
1525
1533
  } | undefined;
1526
1534
  is_mirrored?: boolean | undefined;
1535
+ } | {
1536
+ type: "pcb_silkscreen_pill";
1537
+ width: number;
1538
+ height: number;
1539
+ pcb_component_id: string;
1540
+ center: {
1541
+ x: number;
1542
+ y: number;
1543
+ };
1544
+ layer: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6";
1545
+ pcb_silkscreen_pill_id: string;
1546
+ subcircuit_id?: string | undefined;
1547
+ pcb_group_id?: string | undefined;
1527
1548
  } | {
1528
1549
  type: "pcb_copper_text";
1529
1550
  pcb_component_id: string;
1530
1551
  layer: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6";
1531
1552
  text: string;
1532
- font: "tscircuit2024";
1533
- font_size: number;
1534
1553
  anchor_position: {
1535
1554
  x: number;
1536
1555
  y: number;
1537
1556
  };
1538
1557
  anchor_alignment: "center" | "top_left" | "top_center" | "top_right" | "center_left" | "center_right" | "bottom_left" | "bottom_center" | "bottom_right";
1558
+ font: "tscircuit2024";
1559
+ font_size: number;
1539
1560
  pcb_copper_text_id: string;
1540
1561
  subcircuit_id?: string | undefined;
1541
1562
  pcb_group_id?: string | undefined;
@@ -1670,13 +1691,13 @@ declare function runTscircuitCode(filesystemOrCodeString: Record<string, string>
1670
1691
  pcb_component_id: string;
1671
1692
  layer: "top" | "bottom";
1672
1693
  text: string;
1673
- font: "tscircuit2024";
1674
- font_size: number;
1675
1694
  anchor_position: {
1676
1695
  x: number;
1677
1696
  y: number;
1678
1697
  };
1679
1698
  anchor_alignment: "center" | "top_left" | "top_right" | "bottom_left" | "bottom_right";
1699
+ font: "tscircuit2024";
1700
+ font_size: number;
1680
1701
  pcb_fabrication_note_text_id: string;
1681
1702
  subcircuit_id?: string | undefined;
1682
1703
  pcb_group_id?: string | undefined;
@@ -1729,13 +1750,13 @@ declare function runTscircuitCode(filesystemOrCodeString: Record<string, string>
1729
1750
  } | undefined;
1730
1751
  } | {
1731
1752
  type: "pcb_note_text";
1732
- font: "tscircuit2024";
1733
- font_size: number;
1734
1753
  anchor_position: {
1735
1754
  x: number;
1736
1755
  y: number;
1737
1756
  };
1738
1757
  anchor_alignment: "center" | "top_left" | "top_right" | "bottom_left" | "bottom_right";
1758
+ font: "tscircuit2024";
1759
+ font_size: number;
1739
1760
  pcb_note_text_id: string;
1740
1761
  name?: string | undefined;
1741
1762
  pcb_component_id?: string | undefined;
@@ -2439,6 +2460,29 @@ declare function runTscircuitCode(filesystemOrCodeString: Record<string, string>
2439
2460
  wave_shape?: "square" | "sinewave" | "triangle" | "sawtooth" | undefined;
2440
2461
  phase?: number | undefined;
2441
2462
  duty_cycle?: number | undefined;
2463
+ } | {
2464
+ type: "simulation_current_source";
2465
+ is_dc_source: true;
2466
+ simulation_current_source_id: string;
2467
+ current: number;
2468
+ positive_source_port_id?: string | undefined;
2469
+ negative_source_port_id?: string | undefined;
2470
+ positive_source_net_id?: string | undefined;
2471
+ negative_source_net_id?: string | undefined;
2472
+ } | {
2473
+ type: "simulation_current_source";
2474
+ is_dc_source: false;
2475
+ simulation_current_source_id: string;
2476
+ terminal1_source_port_id?: string | undefined;
2477
+ terminal2_source_port_id?: string | undefined;
2478
+ terminal1_source_net_id?: string | undefined;
2479
+ terminal2_source_net_id?: string | undefined;
2480
+ frequency?: number | undefined;
2481
+ wave_shape?: "square" | "sinewave" | "triangle" | "sawtooth" | undefined;
2482
+ phase?: number | undefined;
2483
+ duty_cycle?: number | undefined;
2484
+ current?: number | undefined;
2485
+ peak_to_peak_current?: number | undefined;
2442
2486
  } | {
2443
2487
  type: "simulation_experiment";
2444
2488
  name: string;
@@ -3743,7 +3787,10 @@ declare const runTscircuitModule: (module: string, opts?: {
3743
3787
  material: "fr4" | "fr1";
3744
3788
  width?: number | undefined;
3745
3789
  height?: number | undefined;
3790
+ display_offset_x?: string | undefined;
3791
+ display_offset_y?: string | undefined;
3746
3792
  subcircuit_id?: string | undefined;
3793
+ position_mode?: "none" | "relative_to_panel_anchor" | undefined;
3747
3794
  shape?: "rect" | "polygon" | undefined;
3748
3795
  pcb_panel_id?: string | undefined;
3749
3796
  is_subcircuit?: boolean | undefined;
@@ -3751,6 +3798,11 @@ declare const runTscircuitModule: (module: string, opts?: {
3751
3798
  x: number;
3752
3799
  y: number;
3753
3800
  }[] | undefined;
3801
+ anchor_position?: {
3802
+ x: number;
3803
+ y: number;
3804
+ } | undefined;
3805
+ anchor_alignment?: "center" | "top_left" | "top_center" | "top_right" | "center_left" | "center_right" | "bottom_left" | "bottom_center" | "bottom_right" | undefined;
3754
3806
  } | {
3755
3807
  type: "pcb_panel";
3756
3808
  width: number;
@@ -3838,14 +3890,14 @@ declare const runTscircuitModule: (module: string, opts?: {
3838
3890
  pcb_component_id: string;
3839
3891
  layer: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6";
3840
3892
  text: string;
3841
- pcb_silkscreen_text_id: string;
3842
- font: "tscircuit2024";
3843
- font_size: number;
3844
3893
  anchor_position: {
3845
3894
  x: number;
3846
3895
  y: number;
3847
3896
  };
3848
3897
  anchor_alignment: "center" | "top_left" | "top_center" | "top_right" | "center_left" | "center_right" | "bottom_left" | "bottom_center" | "bottom_right";
3898
+ pcb_silkscreen_text_id: string;
3899
+ font: "tscircuit2024";
3900
+ font_size: number;
3849
3901
  subcircuit_id?: string | undefined;
3850
3902
  pcb_group_id?: string | undefined;
3851
3903
  ccw_rotation?: number | undefined;
@@ -3857,18 +3909,31 @@ declare const runTscircuitModule: (module: string, opts?: {
3857
3909
  right: number;
3858
3910
  } | undefined;
3859
3911
  is_mirrored?: boolean | undefined;
3912
+ } | {
3913
+ type: "pcb_silkscreen_pill";
3914
+ width: number;
3915
+ height: number;
3916
+ pcb_component_id: string;
3917
+ center: {
3918
+ x: number;
3919
+ y: number;
3920
+ };
3921
+ layer: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6";
3922
+ pcb_silkscreen_pill_id: string;
3923
+ subcircuit_id?: string | undefined;
3924
+ pcb_group_id?: string | undefined;
3860
3925
  } | {
3861
3926
  type: "pcb_copper_text";
3862
3927
  pcb_component_id: string;
3863
3928
  layer: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6";
3864
3929
  text: string;
3865
- font: "tscircuit2024";
3866
- font_size: number;
3867
3930
  anchor_position: {
3868
3931
  x: number;
3869
3932
  y: number;
3870
3933
  };
3871
3934
  anchor_alignment: "center" | "top_left" | "top_center" | "top_right" | "center_left" | "center_right" | "bottom_left" | "bottom_center" | "bottom_right";
3935
+ font: "tscircuit2024";
3936
+ font_size: number;
3872
3937
  pcb_copper_text_id: string;
3873
3938
  subcircuit_id?: string | undefined;
3874
3939
  pcb_group_id?: string | undefined;
@@ -4003,13 +4068,13 @@ declare const runTscircuitModule: (module: string, opts?: {
4003
4068
  pcb_component_id: string;
4004
4069
  layer: "top" | "bottom";
4005
4070
  text: string;
4006
- font: "tscircuit2024";
4007
- font_size: number;
4008
4071
  anchor_position: {
4009
4072
  x: number;
4010
4073
  y: number;
4011
4074
  };
4012
4075
  anchor_alignment: "center" | "top_left" | "top_right" | "bottom_left" | "bottom_right";
4076
+ font: "tscircuit2024";
4077
+ font_size: number;
4013
4078
  pcb_fabrication_note_text_id: string;
4014
4079
  subcircuit_id?: string | undefined;
4015
4080
  pcb_group_id?: string | undefined;
@@ -4062,13 +4127,13 @@ declare const runTscircuitModule: (module: string, opts?: {
4062
4127
  } | undefined;
4063
4128
  } | {
4064
4129
  type: "pcb_note_text";
4065
- font: "tscircuit2024";
4066
- font_size: number;
4067
4130
  anchor_position: {
4068
4131
  x: number;
4069
4132
  y: number;
4070
4133
  };
4071
4134
  anchor_alignment: "center" | "top_left" | "top_right" | "bottom_left" | "bottom_right";
4135
+ font: "tscircuit2024";
4136
+ font_size: number;
4072
4137
  pcb_note_text_id: string;
4073
4138
  name?: string | undefined;
4074
4139
  pcb_component_id?: string | undefined;
@@ -4772,6 +4837,29 @@ declare const runTscircuitModule: (module: string, opts?: {
4772
4837
  wave_shape?: "square" | "sinewave" | "triangle" | "sawtooth" | undefined;
4773
4838
  phase?: number | undefined;
4774
4839
  duty_cycle?: number | undefined;
4840
+ } | {
4841
+ type: "simulation_current_source";
4842
+ is_dc_source: true;
4843
+ simulation_current_source_id: string;
4844
+ current: number;
4845
+ positive_source_port_id?: string | undefined;
4846
+ negative_source_port_id?: string | undefined;
4847
+ positive_source_net_id?: string | undefined;
4848
+ negative_source_net_id?: string | undefined;
4849
+ } | {
4850
+ type: "simulation_current_source";
4851
+ is_dc_source: false;
4852
+ simulation_current_source_id: string;
4853
+ terminal1_source_port_id?: string | undefined;
4854
+ terminal2_source_port_id?: string | undefined;
4855
+ terminal1_source_net_id?: string | undefined;
4856
+ terminal2_source_net_id?: string | undefined;
4857
+ frequency?: number | undefined;
4858
+ wave_shape?: "square" | "sinewave" | "triangle" | "sawtooth" | undefined;
4859
+ phase?: number | undefined;
4860
+ duty_cycle?: number | undefined;
4861
+ current?: number | undefined;
4862
+ peak_to_peak_current?: number | undefined;
4775
4863
  } | {
4776
4864
  type: "simulation_experiment";
4777
4865
  name: string;