@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/lib/index.d.ts
CHANGED
|
@@ -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;
|