@tscircuit/eval 0.0.684 → 0.0.685
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 +200 -64
- package/dist/lib/index.d.ts +200 -64
- package/dist/webworker/entrypoint.js +7 -7
- package/package.json +5 -4
package/dist/lib/index.d.ts
CHANGED
|
@@ -183,11 +183,27 @@ declare function runTscircuitCode(filesystemOrCodeString: Record<string, string>
|
|
|
183
183
|
pin_number?: number | undefined;
|
|
184
184
|
most_frequently_referenced_by_name?: string | undefined;
|
|
185
185
|
must_be_connected?: boolean | undefined;
|
|
186
|
+
is_configured_for_i2c_sda?: boolean | undefined;
|
|
187
|
+
is_configured_for_i2c_scl?: boolean | undefined;
|
|
188
|
+
is_configured_for_spi_mosi?: boolean | undefined;
|
|
189
|
+
is_configured_for_spi_miso?: boolean | undefined;
|
|
190
|
+
is_configured_for_spi_sck?: boolean | undefined;
|
|
191
|
+
is_configured_for_spi_cs?: boolean | undefined;
|
|
192
|
+
is_configured_for_uart_tx?: boolean | undefined;
|
|
193
|
+
is_configured_for_uart_rx?: boolean | undefined;
|
|
194
|
+
supports_i2c_sda?: boolean | undefined;
|
|
195
|
+
supports_i2c_scl?: boolean | undefined;
|
|
196
|
+
supports_spi_mosi?: boolean | undefined;
|
|
197
|
+
supports_spi_miso?: boolean | undefined;
|
|
198
|
+
supports_spi_sck?: boolean | undefined;
|
|
199
|
+
supports_spi_cs?: boolean | undefined;
|
|
200
|
+
supports_uart_tx?: boolean | undefined;
|
|
201
|
+
supports_uart_rx?: boolean | undefined;
|
|
186
202
|
} | {
|
|
187
203
|
type: "source_component_internal_connection";
|
|
188
204
|
source_component_id: string;
|
|
189
|
-
source_component_internal_connection_id: string;
|
|
190
205
|
source_port_ids: string[];
|
|
206
|
+
source_component_internal_connection_id: string;
|
|
191
207
|
subcircuit_id?: string | undefined;
|
|
192
208
|
} | {
|
|
193
209
|
type: "source_component";
|
|
@@ -409,6 +425,20 @@ declare function runTscircuitCode(filesystemOrCodeString: Record<string, string>
|
|
|
409
425
|
display_name?: string | undefined;
|
|
410
426
|
are_pins_interchangeable?: boolean | undefined;
|
|
411
427
|
internally_connected_source_port_ids?: string[][] | undefined;
|
|
428
|
+
} | {
|
|
429
|
+
type: "source_component";
|
|
430
|
+
name: string;
|
|
431
|
+
source_component_id: string;
|
|
432
|
+
ftype: "simple_connector";
|
|
433
|
+
subcircuit_id?: string | undefined;
|
|
434
|
+
source_group_id?: string | undefined;
|
|
435
|
+
manufacturer_part_number?: string | undefined;
|
|
436
|
+
supplier_part_numbers?: Partial<Record<"jlcpcb" | "macrofab" | "pcbway" | "digikey" | "mouser" | "lcsc", string[]>> | undefined;
|
|
437
|
+
display_value?: string | undefined;
|
|
438
|
+
display_name?: string | undefined;
|
|
439
|
+
are_pins_interchangeable?: boolean | undefined;
|
|
440
|
+
internally_connected_source_port_ids?: string[][] | undefined;
|
|
441
|
+
standard?: "usb_c" | "m2" | undefined;
|
|
412
442
|
} | {
|
|
413
443
|
type: "source_component";
|
|
414
444
|
name: string;
|
|
@@ -631,6 +661,13 @@ declare function runTscircuitCode(filesystemOrCodeString: Record<string, string>
|
|
|
631
661
|
warning_type: "source_pin_missing_trace_warning";
|
|
632
662
|
source_pin_missing_trace_warning_id: string;
|
|
633
663
|
subcircuit_id?: string | undefined;
|
|
664
|
+
} | {
|
|
665
|
+
message: string;
|
|
666
|
+
type: "source_i2c_misconfigured_error";
|
|
667
|
+
error_type: "source_i2c_misconfigured_error";
|
|
668
|
+
source_i2c_misconfigured_error_id: string;
|
|
669
|
+
source_port_ids: string[];
|
|
670
|
+
is_fatal?: boolean | undefined;
|
|
634
671
|
} | {
|
|
635
672
|
type: "source_net";
|
|
636
673
|
name: string;
|
|
@@ -976,18 +1013,25 @@ declare function runTscircuitCode(filesystemOrCodeString: Record<string, string>
|
|
|
976
1013
|
source_component_id?: string | undefined;
|
|
977
1014
|
subcircuit_id?: string | undefined;
|
|
978
1015
|
is_fatal?: boolean | undefined;
|
|
1016
|
+
} | {
|
|
1017
|
+
message: string;
|
|
1018
|
+
type: "source_i2c_misconfigured_error";
|
|
1019
|
+
error_type: "source_i2c_misconfigured_error";
|
|
1020
|
+
source_i2c_misconfigured_error_id: string;
|
|
1021
|
+
source_port_ids: string[];
|
|
1022
|
+
is_fatal?: boolean | undefined;
|
|
979
1023
|
} | {
|
|
980
1024
|
type: "pcb_component";
|
|
981
1025
|
width: number;
|
|
982
1026
|
height: number;
|
|
983
1027
|
rotation: number;
|
|
984
1028
|
layer: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6";
|
|
985
|
-
pcb_component_id: string;
|
|
986
|
-
source_component_id: string;
|
|
987
1029
|
center: {
|
|
988
1030
|
x: number;
|
|
989
1031
|
y: number;
|
|
990
1032
|
};
|
|
1033
|
+
pcb_component_id: string;
|
|
1034
|
+
source_component_id: string;
|
|
991
1035
|
obstructs_within_bounds: boolean;
|
|
992
1036
|
display_offset_x?: string | undefined;
|
|
993
1037
|
display_offset_y?: string | undefined;
|
|
@@ -995,9 +1039,18 @@ declare function runTscircuitCode(filesystemOrCodeString: Record<string, string>
|
|
|
995
1039
|
is_allowed_to_be_off_board?: boolean | undefined;
|
|
996
1040
|
subcircuit_id?: string | undefined;
|
|
997
1041
|
pcb_group_id?: string | undefined;
|
|
998
|
-
position_mode?: "packed" | "relative_to_group_anchor" | "none" | undefined;
|
|
1042
|
+
position_mode?: "packed" | "relative_to_group_anchor" | "relative_to_another_component" | "none" | undefined;
|
|
1043
|
+
anchor_position?: {
|
|
1044
|
+
x: number;
|
|
1045
|
+
y: number;
|
|
1046
|
+
} | undefined;
|
|
1047
|
+
anchor_alignment?: "top_left" | "top_center" | "top_right" | "center_left" | "center" | "center_right" | "bottom_left" | "bottom_center" | "bottom_right" | undefined;
|
|
999
1048
|
positioned_relative_to_pcb_group_id?: string | undefined;
|
|
1000
1049
|
positioned_relative_to_pcb_board_id?: string | undefined;
|
|
1050
|
+
cable_insertion_center?: {
|
|
1051
|
+
x: number;
|
|
1052
|
+
y: number;
|
|
1053
|
+
} | undefined;
|
|
1001
1054
|
metadata?: {
|
|
1002
1055
|
kicad_footprint?: {
|
|
1003
1056
|
layer?: string | undefined;
|
|
@@ -1678,6 +1731,11 @@ declare function runTscircuitCode(filesystemOrCodeString: Record<string, string>
|
|
|
1678
1731
|
display_offset_y?: string | undefined;
|
|
1679
1732
|
subcircuit_id?: string | undefined;
|
|
1680
1733
|
position_mode?: "none" | "relative_to_panel_anchor" | undefined;
|
|
1734
|
+
anchor_position?: {
|
|
1735
|
+
x: number;
|
|
1736
|
+
y: number;
|
|
1737
|
+
} | undefined;
|
|
1738
|
+
anchor_alignment?: "top_left" | "top_center" | "top_right" | "center_left" | "center" | "center_right" | "bottom_left" | "bottom_center" | "bottom_right" | undefined;
|
|
1681
1739
|
pcb_panel_id?: string | undefined;
|
|
1682
1740
|
carrier_pcb_board_id?: string | undefined;
|
|
1683
1741
|
is_subcircuit?: boolean | undefined;
|
|
@@ -1686,11 +1744,6 @@ declare function runTscircuitCode(filesystemOrCodeString: Record<string, string>
|
|
|
1686
1744
|
x: number;
|
|
1687
1745
|
y: number;
|
|
1688
1746
|
}[] | undefined;
|
|
1689
|
-
anchor_position?: {
|
|
1690
|
-
x: number;
|
|
1691
|
-
y: number;
|
|
1692
|
-
} | undefined;
|
|
1693
|
-
anchor_alignment?: "center" | "top_left" | "top_center" | "top_right" | "center_left" | "center_right" | "bottom_left" | "bottom_center" | "bottom_right" | undefined;
|
|
1694
1747
|
} | {
|
|
1695
1748
|
type: "pcb_panel";
|
|
1696
1749
|
width: number;
|
|
@@ -1708,8 +1761,8 @@ declare function runTscircuitCode(filesystemOrCodeString: Record<string, string>
|
|
|
1708
1761
|
y: number;
|
|
1709
1762
|
};
|
|
1710
1763
|
pcb_group_id: string;
|
|
1764
|
+
anchor_alignment: "top_left" | "top_center" | "top_right" | "center_left" | "center" | "center_right" | "bottom_left" | "bottom_center" | "bottom_right";
|
|
1711
1765
|
pcb_component_ids: string[];
|
|
1712
|
-
anchor_alignment: "center" | "top_left" | "top_center" | "top_right" | "center_left" | "center_right" | "bottom_left" | "bottom_center" | "bottom_right";
|
|
1713
1766
|
source_group_id: string;
|
|
1714
1767
|
description?: string | undefined;
|
|
1715
1768
|
width?: number | undefined;
|
|
@@ -1719,6 +1772,10 @@ declare function runTscircuitCode(filesystemOrCodeString: Record<string, string>
|
|
|
1719
1772
|
display_offset_y?: string | undefined;
|
|
1720
1773
|
subcircuit_id?: string | undefined;
|
|
1721
1774
|
position_mode?: "packed" | "relative_to_group_anchor" | "none" | undefined;
|
|
1775
|
+
anchor_position?: {
|
|
1776
|
+
x: number;
|
|
1777
|
+
y: number;
|
|
1778
|
+
} | undefined;
|
|
1722
1779
|
positioned_relative_to_pcb_group_id?: string | undefined;
|
|
1723
1780
|
positioned_relative_to_pcb_board_id?: string | undefined;
|
|
1724
1781
|
is_subcircuit?: boolean | undefined;
|
|
@@ -1726,10 +1783,6 @@ declare function runTscircuitCode(filesystemOrCodeString: Record<string, string>
|
|
|
1726
1783
|
x: number;
|
|
1727
1784
|
y: number;
|
|
1728
1785
|
}[] | undefined;
|
|
1729
|
-
anchor_position?: {
|
|
1730
|
-
x: number;
|
|
1731
|
-
y: number;
|
|
1732
|
-
} | undefined;
|
|
1733
1786
|
child_layout_mode?: "packed" | "none" | undefined;
|
|
1734
1787
|
layout_mode?: string | undefined;
|
|
1735
1788
|
autorouter_configuration?: {
|
|
@@ -1778,12 +1831,12 @@ declare function runTscircuitCode(filesystemOrCodeString: Record<string, string>
|
|
|
1778
1831
|
font: "tscircuit2024";
|
|
1779
1832
|
layer: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6";
|
|
1780
1833
|
pcb_component_id: string;
|
|
1781
|
-
text: string;
|
|
1782
1834
|
anchor_position: {
|
|
1783
1835
|
x: number;
|
|
1784
1836
|
y: number;
|
|
1785
1837
|
};
|
|
1786
|
-
anchor_alignment: "
|
|
1838
|
+
anchor_alignment: "top_left" | "top_center" | "top_right" | "center_left" | "center" | "center_right" | "bottom_left" | "bottom_center" | "bottom_right";
|
|
1839
|
+
text: string;
|
|
1787
1840
|
pcb_silkscreen_text_id: string;
|
|
1788
1841
|
font_size: number;
|
|
1789
1842
|
subcircuit_id?: string | undefined;
|
|
@@ -1802,11 +1855,11 @@ declare function runTscircuitCode(filesystemOrCodeString: Record<string, string>
|
|
|
1802
1855
|
width: number;
|
|
1803
1856
|
height: number;
|
|
1804
1857
|
layer: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6";
|
|
1805
|
-
pcb_component_id: string;
|
|
1806
1858
|
center: {
|
|
1807
1859
|
x: number;
|
|
1808
1860
|
y: number;
|
|
1809
1861
|
};
|
|
1862
|
+
pcb_component_id: string;
|
|
1810
1863
|
pcb_silkscreen_pill_id: string;
|
|
1811
1864
|
subcircuit_id?: string | undefined;
|
|
1812
1865
|
pcb_group_id?: string | undefined;
|
|
@@ -1816,12 +1869,12 @@ declare function runTscircuitCode(filesystemOrCodeString: Record<string, string>
|
|
|
1816
1869
|
font: "tscircuit2024";
|
|
1817
1870
|
layer: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6";
|
|
1818
1871
|
pcb_component_id: string;
|
|
1819
|
-
text: string;
|
|
1820
1872
|
anchor_position: {
|
|
1821
1873
|
x: number;
|
|
1822
1874
|
y: number;
|
|
1823
1875
|
};
|
|
1824
|
-
anchor_alignment: "
|
|
1876
|
+
anchor_alignment: "top_left" | "top_center" | "top_right" | "center_left" | "center" | "center_right" | "bottom_left" | "bottom_center" | "bottom_right";
|
|
1877
|
+
text: string;
|
|
1825
1878
|
font_size: number;
|
|
1826
1879
|
pcb_copper_text_id: string;
|
|
1827
1880
|
subcircuit_id?: string | undefined;
|
|
@@ -1840,11 +1893,11 @@ declare function runTscircuitCode(filesystemOrCodeString: Record<string, string>
|
|
|
1840
1893
|
width: number;
|
|
1841
1894
|
height: number;
|
|
1842
1895
|
layer: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6";
|
|
1843
|
-
pcb_component_id: string;
|
|
1844
1896
|
center: {
|
|
1845
1897
|
x: number;
|
|
1846
1898
|
y: number;
|
|
1847
1899
|
};
|
|
1900
|
+
pcb_component_id: string;
|
|
1848
1901
|
stroke_width: number;
|
|
1849
1902
|
pcb_silkscreen_rect_id: string;
|
|
1850
1903
|
subcircuit_id?: string | undefined;
|
|
@@ -1857,11 +1910,11 @@ declare function runTscircuitCode(filesystemOrCodeString: Record<string, string>
|
|
|
1857
1910
|
} | {
|
|
1858
1911
|
type: "pcb_silkscreen_circle";
|
|
1859
1912
|
layer: "top" | "bottom";
|
|
1860
|
-
pcb_component_id: string;
|
|
1861
1913
|
center: {
|
|
1862
1914
|
x: number;
|
|
1863
1915
|
y: number;
|
|
1864
1916
|
};
|
|
1917
|
+
pcb_component_id: string;
|
|
1865
1918
|
radius: number;
|
|
1866
1919
|
stroke_width: number;
|
|
1867
1920
|
pcb_silkscreen_circle_id: string;
|
|
@@ -1870,11 +1923,11 @@ declare function runTscircuitCode(filesystemOrCodeString: Record<string, string>
|
|
|
1870
1923
|
} | {
|
|
1871
1924
|
type: "pcb_silkscreen_oval";
|
|
1872
1925
|
layer: "top" | "bottom";
|
|
1873
|
-
pcb_component_id: string;
|
|
1874
1926
|
center: {
|
|
1875
1927
|
x: number;
|
|
1876
1928
|
y: number;
|
|
1877
1929
|
};
|
|
1930
|
+
pcb_component_id: string;
|
|
1878
1931
|
pcb_silkscreen_oval_id: string;
|
|
1879
1932
|
radius_x: number;
|
|
1880
1933
|
radius_y: number;
|
|
@@ -1974,12 +2027,12 @@ declare function runTscircuitCode(filesystemOrCodeString: Record<string, string>
|
|
|
1974
2027
|
font: "tscircuit2024";
|
|
1975
2028
|
layer: "top" | "bottom";
|
|
1976
2029
|
pcb_component_id: string;
|
|
1977
|
-
text: string;
|
|
1978
2030
|
anchor_position: {
|
|
1979
2031
|
x: number;
|
|
1980
2032
|
y: number;
|
|
1981
2033
|
};
|
|
1982
|
-
anchor_alignment: "
|
|
2034
|
+
anchor_alignment: "top_left" | "top_right" | "center" | "bottom_left" | "bottom_right";
|
|
2035
|
+
text: string;
|
|
1983
2036
|
font_size: number;
|
|
1984
2037
|
pcb_fabrication_note_text_id: string;
|
|
1985
2038
|
subcircuit_id?: string | undefined;
|
|
@@ -1990,11 +2043,11 @@ declare function runTscircuitCode(filesystemOrCodeString: Record<string, string>
|
|
|
1990
2043
|
width: number;
|
|
1991
2044
|
height: number;
|
|
1992
2045
|
layer: "top" | "bottom";
|
|
1993
|
-
pcb_component_id: string;
|
|
1994
2046
|
center: {
|
|
1995
2047
|
x: number;
|
|
1996
2048
|
y: number;
|
|
1997
2049
|
};
|
|
2050
|
+
pcb_component_id: string;
|
|
1998
2051
|
stroke_width: number;
|
|
1999
2052
|
pcb_fabrication_note_rect_id: string;
|
|
2000
2053
|
subcircuit_id?: string | undefined;
|
|
@@ -2038,7 +2091,7 @@ declare function runTscircuitCode(filesystemOrCodeString: Record<string, string>
|
|
|
2038
2091
|
x: number;
|
|
2039
2092
|
y: number;
|
|
2040
2093
|
};
|
|
2041
|
-
anchor_alignment: "
|
|
2094
|
+
anchor_alignment: "top_left" | "top_right" | "center" | "bottom_left" | "bottom_right";
|
|
2042
2095
|
font_size: number;
|
|
2043
2096
|
pcb_note_text_id: string;
|
|
2044
2097
|
name?: string | undefined;
|
|
@@ -2309,6 +2362,21 @@ declare function runTscircuitCode(filesystemOrCodeString: Record<string, string>
|
|
|
2309
2362
|
source_component_id?: string | undefined;
|
|
2310
2363
|
subcircuit_id?: string | undefined;
|
|
2311
2364
|
is_fatal?: boolean | undefined;
|
|
2365
|
+
} | {
|
|
2366
|
+
message: string;
|
|
2367
|
+
type: "pcb_component_not_on_board_edge_error";
|
|
2368
|
+
pcb_component_id: string;
|
|
2369
|
+
error_type: "pcb_component_not_on_board_edge_error";
|
|
2370
|
+
pcb_board_id: string;
|
|
2371
|
+
component_center: {
|
|
2372
|
+
x: number;
|
|
2373
|
+
y: number;
|
|
2374
|
+
};
|
|
2375
|
+
pcb_component_not_on_board_edge_error_id: string;
|
|
2376
|
+
pad_to_nearest_board_edge_distance: number;
|
|
2377
|
+
source_component_id?: string | undefined;
|
|
2378
|
+
subcircuit_id?: string | undefined;
|
|
2379
|
+
is_fatal?: boolean | undefined;
|
|
2312
2380
|
} | {
|
|
2313
2381
|
message: string;
|
|
2314
2382
|
type: "pcb_component_invalid_layer_error";
|
|
@@ -2324,11 +2392,11 @@ declare function runTscircuitCode(filesystemOrCodeString: Record<string, string>
|
|
|
2324
2392
|
width: number;
|
|
2325
2393
|
height: number;
|
|
2326
2394
|
layer: "top" | "bottom";
|
|
2327
|
-
pcb_component_id: string;
|
|
2328
2395
|
center: {
|
|
2329
2396
|
x: number;
|
|
2330
2397
|
y: number;
|
|
2331
2398
|
};
|
|
2399
|
+
pcb_component_id: string;
|
|
2332
2400
|
pcb_courtyard_rect_id: string;
|
|
2333
2401
|
subcircuit_id?: string | undefined;
|
|
2334
2402
|
pcb_group_id?: string | undefined;
|
|
@@ -2359,11 +2427,11 @@ declare function runTscircuitCode(filesystemOrCodeString: Record<string, string>
|
|
|
2359
2427
|
} | {
|
|
2360
2428
|
type: "pcb_courtyard_circle";
|
|
2361
2429
|
layer: "top" | "bottom";
|
|
2362
|
-
pcb_component_id: string;
|
|
2363
2430
|
center: {
|
|
2364
2431
|
x: number;
|
|
2365
2432
|
y: number;
|
|
2366
2433
|
};
|
|
2434
|
+
pcb_component_id: string;
|
|
2367
2435
|
radius: number;
|
|
2368
2436
|
pcb_courtyard_circle_id: string;
|
|
2369
2437
|
subcircuit_id?: string | undefined;
|
|
@@ -2381,7 +2449,7 @@ declare function runTscircuitCode(filesystemOrCodeString: Record<string, string>
|
|
|
2381
2449
|
schematic_symbol_id?: string | undefined;
|
|
2382
2450
|
} | {
|
|
2383
2451
|
type: "schematic_text";
|
|
2384
|
-
anchor: "top" | "bottom" | "
|
|
2452
|
+
anchor: "top" | "bottom" | "top_left" | "top_center" | "top_right" | "center_left" | "center" | "center_right" | "bottom_left" | "bottom_center" | "bottom_right" | "left" | "right";
|
|
2385
2453
|
rotation: number;
|
|
2386
2454
|
text: string;
|
|
2387
2455
|
font_size: number;
|
|
@@ -3956,11 +4024,11 @@ declare function runTscircuitCode(filesystemOrCodeString: Record<string, string>
|
|
|
3956
4024
|
schematic_net_label_id: string;
|
|
3957
4025
|
anchor_side: "top" | "bottom" | "left" | "right";
|
|
3958
4026
|
subcircuit_id?: string | undefined;
|
|
3959
|
-
source_trace_id?: string | undefined;
|
|
3960
4027
|
anchor_position?: {
|
|
3961
4028
|
x: number;
|
|
3962
4029
|
y: number;
|
|
3963
4030
|
} | undefined;
|
|
4031
|
+
source_trace_id?: string | undefined;
|
|
3964
4032
|
symbol_name?: string | undefined;
|
|
3965
4033
|
schematic_trace_id?: string | undefined;
|
|
3966
4034
|
is_movable?: boolean | undefined;
|
|
@@ -4012,7 +4080,7 @@ declare function runTscircuitCode(filesystemOrCodeString: Record<string, string>
|
|
|
4012
4080
|
subcircuit_id?: string | undefined;
|
|
4013
4081
|
color?: string | undefined;
|
|
4014
4082
|
voltage?: number | undefined;
|
|
4015
|
-
label_alignment?: "
|
|
4083
|
+
label_alignment?: "top_left" | "top_center" | "top_right" | "center_left" | "center" | "center_right" | "bottom_left" | "bottom_center" | "bottom_right" | undefined;
|
|
4016
4084
|
} | {
|
|
4017
4085
|
message: string;
|
|
4018
4086
|
type: "schematic_manual_edit_conflict_warning";
|
|
@@ -4052,7 +4120,7 @@ declare function runTscircuitCode(filesystemOrCodeString: Record<string, string>
|
|
|
4052
4120
|
schematic_table_id: string;
|
|
4053
4121
|
column_widths: number[];
|
|
4054
4122
|
row_heights: number[];
|
|
4055
|
-
anchor?: "
|
|
4123
|
+
anchor?: "top_left" | "top_center" | "top_right" | "center_left" | "center" | "center_right" | "bottom_left" | "bottom_center" | "bottom_right" | undefined;
|
|
4056
4124
|
subcircuit_id?: string | undefined;
|
|
4057
4125
|
schematic_component_id?: string | undefined;
|
|
4058
4126
|
cell_padding?: number | undefined;
|
|
@@ -4247,11 +4315,27 @@ declare const runTscircuitModule: (module: string, opts?: {
|
|
|
4247
4315
|
pin_number?: number | undefined;
|
|
4248
4316
|
most_frequently_referenced_by_name?: string | undefined;
|
|
4249
4317
|
must_be_connected?: boolean | undefined;
|
|
4318
|
+
is_configured_for_i2c_sda?: boolean | undefined;
|
|
4319
|
+
is_configured_for_i2c_scl?: boolean | undefined;
|
|
4320
|
+
is_configured_for_spi_mosi?: boolean | undefined;
|
|
4321
|
+
is_configured_for_spi_miso?: boolean | undefined;
|
|
4322
|
+
is_configured_for_spi_sck?: boolean | undefined;
|
|
4323
|
+
is_configured_for_spi_cs?: boolean | undefined;
|
|
4324
|
+
is_configured_for_uart_tx?: boolean | undefined;
|
|
4325
|
+
is_configured_for_uart_rx?: boolean | undefined;
|
|
4326
|
+
supports_i2c_sda?: boolean | undefined;
|
|
4327
|
+
supports_i2c_scl?: boolean | undefined;
|
|
4328
|
+
supports_spi_mosi?: boolean | undefined;
|
|
4329
|
+
supports_spi_miso?: boolean | undefined;
|
|
4330
|
+
supports_spi_sck?: boolean | undefined;
|
|
4331
|
+
supports_spi_cs?: boolean | undefined;
|
|
4332
|
+
supports_uart_tx?: boolean | undefined;
|
|
4333
|
+
supports_uart_rx?: boolean | undefined;
|
|
4250
4334
|
} | {
|
|
4251
4335
|
type: "source_component_internal_connection";
|
|
4252
4336
|
source_component_id: string;
|
|
4253
|
-
source_component_internal_connection_id: string;
|
|
4254
4337
|
source_port_ids: string[];
|
|
4338
|
+
source_component_internal_connection_id: string;
|
|
4255
4339
|
subcircuit_id?: string | undefined;
|
|
4256
4340
|
} | {
|
|
4257
4341
|
type: "source_component";
|
|
@@ -4473,6 +4557,20 @@ declare const runTscircuitModule: (module: string, opts?: {
|
|
|
4473
4557
|
display_name?: string | undefined;
|
|
4474
4558
|
are_pins_interchangeable?: boolean | undefined;
|
|
4475
4559
|
internally_connected_source_port_ids?: string[][] | undefined;
|
|
4560
|
+
} | {
|
|
4561
|
+
type: "source_component";
|
|
4562
|
+
name: string;
|
|
4563
|
+
source_component_id: string;
|
|
4564
|
+
ftype: "simple_connector";
|
|
4565
|
+
subcircuit_id?: string | undefined;
|
|
4566
|
+
source_group_id?: string | undefined;
|
|
4567
|
+
manufacturer_part_number?: string | undefined;
|
|
4568
|
+
supplier_part_numbers?: Partial<Record<"jlcpcb" | "macrofab" | "pcbway" | "digikey" | "mouser" | "lcsc", string[]>> | undefined;
|
|
4569
|
+
display_value?: string | undefined;
|
|
4570
|
+
display_name?: string | undefined;
|
|
4571
|
+
are_pins_interchangeable?: boolean | undefined;
|
|
4572
|
+
internally_connected_source_port_ids?: string[][] | undefined;
|
|
4573
|
+
standard?: "usb_c" | "m2" | undefined;
|
|
4476
4574
|
} | {
|
|
4477
4575
|
type: "source_component";
|
|
4478
4576
|
name: string;
|
|
@@ -4695,6 +4793,13 @@ declare const runTscircuitModule: (module: string, opts?: {
|
|
|
4695
4793
|
warning_type: "source_pin_missing_trace_warning";
|
|
4696
4794
|
source_pin_missing_trace_warning_id: string;
|
|
4697
4795
|
subcircuit_id?: string | undefined;
|
|
4796
|
+
} | {
|
|
4797
|
+
message: string;
|
|
4798
|
+
type: "source_i2c_misconfigured_error";
|
|
4799
|
+
error_type: "source_i2c_misconfigured_error";
|
|
4800
|
+
source_i2c_misconfigured_error_id: string;
|
|
4801
|
+
source_port_ids: string[];
|
|
4802
|
+
is_fatal?: boolean | undefined;
|
|
4698
4803
|
} | {
|
|
4699
4804
|
type: "source_net";
|
|
4700
4805
|
name: string;
|
|
@@ -5040,18 +5145,25 @@ declare const runTscircuitModule: (module: string, opts?: {
|
|
|
5040
5145
|
source_component_id?: string | undefined;
|
|
5041
5146
|
subcircuit_id?: string | undefined;
|
|
5042
5147
|
is_fatal?: boolean | undefined;
|
|
5148
|
+
} | {
|
|
5149
|
+
message: string;
|
|
5150
|
+
type: "source_i2c_misconfigured_error";
|
|
5151
|
+
error_type: "source_i2c_misconfigured_error";
|
|
5152
|
+
source_i2c_misconfigured_error_id: string;
|
|
5153
|
+
source_port_ids: string[];
|
|
5154
|
+
is_fatal?: boolean | undefined;
|
|
5043
5155
|
} | {
|
|
5044
5156
|
type: "pcb_component";
|
|
5045
5157
|
width: number;
|
|
5046
5158
|
height: number;
|
|
5047
5159
|
rotation: number;
|
|
5048
5160
|
layer: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6";
|
|
5049
|
-
pcb_component_id: string;
|
|
5050
|
-
source_component_id: string;
|
|
5051
5161
|
center: {
|
|
5052
5162
|
x: number;
|
|
5053
5163
|
y: number;
|
|
5054
5164
|
};
|
|
5165
|
+
pcb_component_id: string;
|
|
5166
|
+
source_component_id: string;
|
|
5055
5167
|
obstructs_within_bounds: boolean;
|
|
5056
5168
|
display_offset_x?: string | undefined;
|
|
5057
5169
|
display_offset_y?: string | undefined;
|
|
@@ -5059,9 +5171,18 @@ declare const runTscircuitModule: (module: string, opts?: {
|
|
|
5059
5171
|
is_allowed_to_be_off_board?: boolean | undefined;
|
|
5060
5172
|
subcircuit_id?: string | undefined;
|
|
5061
5173
|
pcb_group_id?: string | undefined;
|
|
5062
|
-
position_mode?: "packed" | "relative_to_group_anchor" | "none" | undefined;
|
|
5174
|
+
position_mode?: "packed" | "relative_to_group_anchor" | "relative_to_another_component" | "none" | undefined;
|
|
5175
|
+
anchor_position?: {
|
|
5176
|
+
x: number;
|
|
5177
|
+
y: number;
|
|
5178
|
+
} | undefined;
|
|
5179
|
+
anchor_alignment?: "top_left" | "top_center" | "top_right" | "center_left" | "center" | "center_right" | "bottom_left" | "bottom_center" | "bottom_right" | undefined;
|
|
5063
5180
|
positioned_relative_to_pcb_group_id?: string | undefined;
|
|
5064
5181
|
positioned_relative_to_pcb_board_id?: string | undefined;
|
|
5182
|
+
cable_insertion_center?: {
|
|
5183
|
+
x: number;
|
|
5184
|
+
y: number;
|
|
5185
|
+
} | undefined;
|
|
5065
5186
|
metadata?: {
|
|
5066
5187
|
kicad_footprint?: {
|
|
5067
5188
|
layer?: string | undefined;
|
|
@@ -5742,6 +5863,11 @@ declare const runTscircuitModule: (module: string, opts?: {
|
|
|
5742
5863
|
display_offset_y?: string | undefined;
|
|
5743
5864
|
subcircuit_id?: string | undefined;
|
|
5744
5865
|
position_mode?: "none" | "relative_to_panel_anchor" | undefined;
|
|
5866
|
+
anchor_position?: {
|
|
5867
|
+
x: number;
|
|
5868
|
+
y: number;
|
|
5869
|
+
} | undefined;
|
|
5870
|
+
anchor_alignment?: "top_left" | "top_center" | "top_right" | "center_left" | "center" | "center_right" | "bottom_left" | "bottom_center" | "bottom_right" | undefined;
|
|
5745
5871
|
pcb_panel_id?: string | undefined;
|
|
5746
5872
|
carrier_pcb_board_id?: string | undefined;
|
|
5747
5873
|
is_subcircuit?: boolean | undefined;
|
|
@@ -5750,11 +5876,6 @@ declare const runTscircuitModule: (module: string, opts?: {
|
|
|
5750
5876
|
x: number;
|
|
5751
5877
|
y: number;
|
|
5752
5878
|
}[] | undefined;
|
|
5753
|
-
anchor_position?: {
|
|
5754
|
-
x: number;
|
|
5755
|
-
y: number;
|
|
5756
|
-
} | undefined;
|
|
5757
|
-
anchor_alignment?: "center" | "top_left" | "top_center" | "top_right" | "center_left" | "center_right" | "bottom_left" | "bottom_center" | "bottom_right" | undefined;
|
|
5758
5879
|
} | {
|
|
5759
5880
|
type: "pcb_panel";
|
|
5760
5881
|
width: number;
|
|
@@ -5772,8 +5893,8 @@ declare const runTscircuitModule: (module: string, opts?: {
|
|
|
5772
5893
|
y: number;
|
|
5773
5894
|
};
|
|
5774
5895
|
pcb_group_id: string;
|
|
5896
|
+
anchor_alignment: "top_left" | "top_center" | "top_right" | "center_left" | "center" | "center_right" | "bottom_left" | "bottom_center" | "bottom_right";
|
|
5775
5897
|
pcb_component_ids: string[];
|
|
5776
|
-
anchor_alignment: "center" | "top_left" | "top_center" | "top_right" | "center_left" | "center_right" | "bottom_left" | "bottom_center" | "bottom_right";
|
|
5777
5898
|
source_group_id: string;
|
|
5778
5899
|
description?: string | undefined;
|
|
5779
5900
|
width?: number | undefined;
|
|
@@ -5783,6 +5904,10 @@ declare const runTscircuitModule: (module: string, opts?: {
|
|
|
5783
5904
|
display_offset_y?: string | undefined;
|
|
5784
5905
|
subcircuit_id?: string | undefined;
|
|
5785
5906
|
position_mode?: "packed" | "relative_to_group_anchor" | "none" | undefined;
|
|
5907
|
+
anchor_position?: {
|
|
5908
|
+
x: number;
|
|
5909
|
+
y: number;
|
|
5910
|
+
} | undefined;
|
|
5786
5911
|
positioned_relative_to_pcb_group_id?: string | undefined;
|
|
5787
5912
|
positioned_relative_to_pcb_board_id?: string | undefined;
|
|
5788
5913
|
is_subcircuit?: boolean | undefined;
|
|
@@ -5790,10 +5915,6 @@ declare const runTscircuitModule: (module: string, opts?: {
|
|
|
5790
5915
|
x: number;
|
|
5791
5916
|
y: number;
|
|
5792
5917
|
}[] | undefined;
|
|
5793
|
-
anchor_position?: {
|
|
5794
|
-
x: number;
|
|
5795
|
-
y: number;
|
|
5796
|
-
} | undefined;
|
|
5797
5918
|
child_layout_mode?: "packed" | "none" | undefined;
|
|
5798
5919
|
layout_mode?: string | undefined;
|
|
5799
5920
|
autorouter_configuration?: {
|
|
@@ -5842,12 +5963,12 @@ declare const runTscircuitModule: (module: string, opts?: {
|
|
|
5842
5963
|
font: "tscircuit2024";
|
|
5843
5964
|
layer: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6";
|
|
5844
5965
|
pcb_component_id: string;
|
|
5845
|
-
text: string;
|
|
5846
5966
|
anchor_position: {
|
|
5847
5967
|
x: number;
|
|
5848
5968
|
y: number;
|
|
5849
5969
|
};
|
|
5850
|
-
anchor_alignment: "
|
|
5970
|
+
anchor_alignment: "top_left" | "top_center" | "top_right" | "center_left" | "center" | "center_right" | "bottom_left" | "bottom_center" | "bottom_right";
|
|
5971
|
+
text: string;
|
|
5851
5972
|
pcb_silkscreen_text_id: string;
|
|
5852
5973
|
font_size: number;
|
|
5853
5974
|
subcircuit_id?: string | undefined;
|
|
@@ -5866,11 +5987,11 @@ declare const runTscircuitModule: (module: string, opts?: {
|
|
|
5866
5987
|
width: number;
|
|
5867
5988
|
height: number;
|
|
5868
5989
|
layer: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6";
|
|
5869
|
-
pcb_component_id: string;
|
|
5870
5990
|
center: {
|
|
5871
5991
|
x: number;
|
|
5872
5992
|
y: number;
|
|
5873
5993
|
};
|
|
5994
|
+
pcb_component_id: string;
|
|
5874
5995
|
pcb_silkscreen_pill_id: string;
|
|
5875
5996
|
subcircuit_id?: string | undefined;
|
|
5876
5997
|
pcb_group_id?: string | undefined;
|
|
@@ -5880,12 +6001,12 @@ declare const runTscircuitModule: (module: string, opts?: {
|
|
|
5880
6001
|
font: "tscircuit2024";
|
|
5881
6002
|
layer: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6";
|
|
5882
6003
|
pcb_component_id: string;
|
|
5883
|
-
text: string;
|
|
5884
6004
|
anchor_position: {
|
|
5885
6005
|
x: number;
|
|
5886
6006
|
y: number;
|
|
5887
6007
|
};
|
|
5888
|
-
anchor_alignment: "
|
|
6008
|
+
anchor_alignment: "top_left" | "top_center" | "top_right" | "center_left" | "center" | "center_right" | "bottom_left" | "bottom_center" | "bottom_right";
|
|
6009
|
+
text: string;
|
|
5889
6010
|
font_size: number;
|
|
5890
6011
|
pcb_copper_text_id: string;
|
|
5891
6012
|
subcircuit_id?: string | undefined;
|
|
@@ -5904,11 +6025,11 @@ declare const runTscircuitModule: (module: string, opts?: {
|
|
|
5904
6025
|
width: number;
|
|
5905
6026
|
height: number;
|
|
5906
6027
|
layer: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6";
|
|
5907
|
-
pcb_component_id: string;
|
|
5908
6028
|
center: {
|
|
5909
6029
|
x: number;
|
|
5910
6030
|
y: number;
|
|
5911
6031
|
};
|
|
6032
|
+
pcb_component_id: string;
|
|
5912
6033
|
stroke_width: number;
|
|
5913
6034
|
pcb_silkscreen_rect_id: string;
|
|
5914
6035
|
subcircuit_id?: string | undefined;
|
|
@@ -5921,11 +6042,11 @@ declare const runTscircuitModule: (module: string, opts?: {
|
|
|
5921
6042
|
} | {
|
|
5922
6043
|
type: "pcb_silkscreen_circle";
|
|
5923
6044
|
layer: "top" | "bottom";
|
|
5924
|
-
pcb_component_id: string;
|
|
5925
6045
|
center: {
|
|
5926
6046
|
x: number;
|
|
5927
6047
|
y: number;
|
|
5928
6048
|
};
|
|
6049
|
+
pcb_component_id: string;
|
|
5929
6050
|
radius: number;
|
|
5930
6051
|
stroke_width: number;
|
|
5931
6052
|
pcb_silkscreen_circle_id: string;
|
|
@@ -5934,11 +6055,11 @@ declare const runTscircuitModule: (module: string, opts?: {
|
|
|
5934
6055
|
} | {
|
|
5935
6056
|
type: "pcb_silkscreen_oval";
|
|
5936
6057
|
layer: "top" | "bottom";
|
|
5937
|
-
pcb_component_id: string;
|
|
5938
6058
|
center: {
|
|
5939
6059
|
x: number;
|
|
5940
6060
|
y: number;
|
|
5941
6061
|
};
|
|
6062
|
+
pcb_component_id: string;
|
|
5942
6063
|
pcb_silkscreen_oval_id: string;
|
|
5943
6064
|
radius_x: number;
|
|
5944
6065
|
radius_y: number;
|
|
@@ -6038,12 +6159,12 @@ declare const runTscircuitModule: (module: string, opts?: {
|
|
|
6038
6159
|
font: "tscircuit2024";
|
|
6039
6160
|
layer: "top" | "bottom";
|
|
6040
6161
|
pcb_component_id: string;
|
|
6041
|
-
text: string;
|
|
6042
6162
|
anchor_position: {
|
|
6043
6163
|
x: number;
|
|
6044
6164
|
y: number;
|
|
6045
6165
|
};
|
|
6046
|
-
anchor_alignment: "
|
|
6166
|
+
anchor_alignment: "top_left" | "top_right" | "center" | "bottom_left" | "bottom_right";
|
|
6167
|
+
text: string;
|
|
6047
6168
|
font_size: number;
|
|
6048
6169
|
pcb_fabrication_note_text_id: string;
|
|
6049
6170
|
subcircuit_id?: string | undefined;
|
|
@@ -6054,11 +6175,11 @@ declare const runTscircuitModule: (module: string, opts?: {
|
|
|
6054
6175
|
width: number;
|
|
6055
6176
|
height: number;
|
|
6056
6177
|
layer: "top" | "bottom";
|
|
6057
|
-
pcb_component_id: string;
|
|
6058
6178
|
center: {
|
|
6059
6179
|
x: number;
|
|
6060
6180
|
y: number;
|
|
6061
6181
|
};
|
|
6182
|
+
pcb_component_id: string;
|
|
6062
6183
|
stroke_width: number;
|
|
6063
6184
|
pcb_fabrication_note_rect_id: string;
|
|
6064
6185
|
subcircuit_id?: string | undefined;
|
|
@@ -6102,7 +6223,7 @@ declare const runTscircuitModule: (module: string, opts?: {
|
|
|
6102
6223
|
x: number;
|
|
6103
6224
|
y: number;
|
|
6104
6225
|
};
|
|
6105
|
-
anchor_alignment: "
|
|
6226
|
+
anchor_alignment: "top_left" | "top_right" | "center" | "bottom_left" | "bottom_right";
|
|
6106
6227
|
font_size: number;
|
|
6107
6228
|
pcb_note_text_id: string;
|
|
6108
6229
|
name?: string | undefined;
|
|
@@ -6373,6 +6494,21 @@ declare const runTscircuitModule: (module: string, opts?: {
|
|
|
6373
6494
|
source_component_id?: string | undefined;
|
|
6374
6495
|
subcircuit_id?: string | undefined;
|
|
6375
6496
|
is_fatal?: boolean | undefined;
|
|
6497
|
+
} | {
|
|
6498
|
+
message: string;
|
|
6499
|
+
type: "pcb_component_not_on_board_edge_error";
|
|
6500
|
+
pcb_component_id: string;
|
|
6501
|
+
error_type: "pcb_component_not_on_board_edge_error";
|
|
6502
|
+
pcb_board_id: string;
|
|
6503
|
+
component_center: {
|
|
6504
|
+
x: number;
|
|
6505
|
+
y: number;
|
|
6506
|
+
};
|
|
6507
|
+
pcb_component_not_on_board_edge_error_id: string;
|
|
6508
|
+
pad_to_nearest_board_edge_distance: number;
|
|
6509
|
+
source_component_id?: string | undefined;
|
|
6510
|
+
subcircuit_id?: string | undefined;
|
|
6511
|
+
is_fatal?: boolean | undefined;
|
|
6376
6512
|
} | {
|
|
6377
6513
|
message: string;
|
|
6378
6514
|
type: "pcb_component_invalid_layer_error";
|
|
@@ -6388,11 +6524,11 @@ declare const runTscircuitModule: (module: string, opts?: {
|
|
|
6388
6524
|
width: number;
|
|
6389
6525
|
height: number;
|
|
6390
6526
|
layer: "top" | "bottom";
|
|
6391
|
-
pcb_component_id: string;
|
|
6392
6527
|
center: {
|
|
6393
6528
|
x: number;
|
|
6394
6529
|
y: number;
|
|
6395
6530
|
};
|
|
6531
|
+
pcb_component_id: string;
|
|
6396
6532
|
pcb_courtyard_rect_id: string;
|
|
6397
6533
|
subcircuit_id?: string | undefined;
|
|
6398
6534
|
pcb_group_id?: string | undefined;
|
|
@@ -6423,11 +6559,11 @@ declare const runTscircuitModule: (module: string, opts?: {
|
|
|
6423
6559
|
} | {
|
|
6424
6560
|
type: "pcb_courtyard_circle";
|
|
6425
6561
|
layer: "top" | "bottom";
|
|
6426
|
-
pcb_component_id: string;
|
|
6427
6562
|
center: {
|
|
6428
6563
|
x: number;
|
|
6429
6564
|
y: number;
|
|
6430
6565
|
};
|
|
6566
|
+
pcb_component_id: string;
|
|
6431
6567
|
radius: number;
|
|
6432
6568
|
pcb_courtyard_circle_id: string;
|
|
6433
6569
|
subcircuit_id?: string | undefined;
|
|
@@ -6445,7 +6581,7 @@ declare const runTscircuitModule: (module: string, opts?: {
|
|
|
6445
6581
|
schematic_symbol_id?: string | undefined;
|
|
6446
6582
|
} | {
|
|
6447
6583
|
type: "schematic_text";
|
|
6448
|
-
anchor: "top" | "bottom" | "
|
|
6584
|
+
anchor: "top" | "bottom" | "top_left" | "top_center" | "top_right" | "center_left" | "center" | "center_right" | "bottom_left" | "bottom_center" | "bottom_right" | "left" | "right";
|
|
6449
6585
|
rotation: number;
|
|
6450
6586
|
text: string;
|
|
6451
6587
|
font_size: number;
|
|
@@ -8020,11 +8156,11 @@ declare const runTscircuitModule: (module: string, opts?: {
|
|
|
8020
8156
|
schematic_net_label_id: string;
|
|
8021
8157
|
anchor_side: "top" | "bottom" | "left" | "right";
|
|
8022
8158
|
subcircuit_id?: string | undefined;
|
|
8023
|
-
source_trace_id?: string | undefined;
|
|
8024
8159
|
anchor_position?: {
|
|
8025
8160
|
x: number;
|
|
8026
8161
|
y: number;
|
|
8027
8162
|
} | undefined;
|
|
8163
|
+
source_trace_id?: string | undefined;
|
|
8028
8164
|
symbol_name?: string | undefined;
|
|
8029
8165
|
schematic_trace_id?: string | undefined;
|
|
8030
8166
|
is_movable?: boolean | undefined;
|
|
@@ -8076,7 +8212,7 @@ declare const runTscircuitModule: (module: string, opts?: {
|
|
|
8076
8212
|
subcircuit_id?: string | undefined;
|
|
8077
8213
|
color?: string | undefined;
|
|
8078
8214
|
voltage?: number | undefined;
|
|
8079
|
-
label_alignment?: "
|
|
8215
|
+
label_alignment?: "top_left" | "top_center" | "top_right" | "center_left" | "center" | "center_right" | "bottom_left" | "bottom_center" | "bottom_right" | undefined;
|
|
8080
8216
|
} | {
|
|
8081
8217
|
message: string;
|
|
8082
8218
|
type: "schematic_manual_edit_conflict_warning";
|
|
@@ -8116,7 +8252,7 @@ declare const runTscircuitModule: (module: string, opts?: {
|
|
|
8116
8252
|
schematic_table_id: string;
|
|
8117
8253
|
column_widths: number[];
|
|
8118
8254
|
row_heights: number[];
|
|
8119
|
-
anchor?: "
|
|
8255
|
+
anchor?: "top_left" | "top_center" | "top_right" | "center_left" | "center" | "center_right" | "bottom_left" | "bottom_center" | "bottom_right" | undefined;
|
|
8120
8256
|
subcircuit_id?: string | undefined;
|
|
8121
8257
|
schematic_component_id?: string | undefined;
|
|
8122
8258
|
cell_padding?: number | undefined;
|