@tscircuit/eval 0.0.553 → 0.0.555
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/dist/blob-url.js +1 -1
- package/dist/eval/index.d.ts +106 -18
- package/dist/eval/index.js +19 -2
- package/dist/lib/index.d.ts +106 -18
- package/dist/lib/index.js +19 -2
- package/dist/webworker/entrypoint.js +6 -6
- package/package.json +3 -3
package/dist/eval/index.d.ts
CHANGED
|
@@ -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;
|