@tscircuit/circuit-json-util 0.0.87 → 0.0.88
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 +2 -1
- package/dist/index.d.ts +509 -133
- package/dist/index.js +6 -0
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
package/dist/index.d.ts
CHANGED
|
@@ -90,8 +90,27 @@ declare const transformSchematicElement: (elm: AnyCircuitElement, matrix: Matrix
|
|
|
90
90
|
subcircuit_connectivity_map_key?: string | undefined;
|
|
91
91
|
source_group_id?: string | undefined;
|
|
92
92
|
pin_number?: number | undefined;
|
|
93
|
-
most_frequently_referenced_by_name?: string | undefined;
|
|
94
93
|
must_be_connected?: boolean | undefined;
|
|
94
|
+
provides_power?: boolean | undefined;
|
|
95
|
+
requires_power?: boolean | undefined;
|
|
96
|
+
provides_ground?: boolean | undefined;
|
|
97
|
+
requires_ground?: boolean | undefined;
|
|
98
|
+
provides_voltage?: string | number | undefined;
|
|
99
|
+
requires_voltage?: string | number | undefined;
|
|
100
|
+
do_not_connect?: boolean | undefined;
|
|
101
|
+
include_in_board_pinout?: boolean | undefined;
|
|
102
|
+
can_use_internal_pullup?: boolean | undefined;
|
|
103
|
+
is_using_internal_pullup?: boolean | undefined;
|
|
104
|
+
needs_external_pullup?: boolean | undefined;
|
|
105
|
+
can_use_internal_pulldown?: boolean | undefined;
|
|
106
|
+
is_using_internal_pulldown?: boolean | undefined;
|
|
107
|
+
needs_external_pulldown?: boolean | undefined;
|
|
108
|
+
can_use_open_drain?: boolean | undefined;
|
|
109
|
+
is_using_open_drain?: boolean | undefined;
|
|
110
|
+
can_use_push_pull?: boolean | undefined;
|
|
111
|
+
is_using_push_pull?: boolean | undefined;
|
|
112
|
+
should_have_decoupling_capacitor?: boolean | undefined;
|
|
113
|
+
recommended_decoupling_capacitor_capacitance?: string | number | undefined;
|
|
95
114
|
is_configured_for_i2c_sda?: boolean | undefined;
|
|
96
115
|
is_configured_for_i2c_scl?: boolean | undefined;
|
|
97
116
|
is_configured_for_spi_mosi?: boolean | undefined;
|
|
@@ -108,6 +127,7 @@ declare const transformSchematicElement: (elm: AnyCircuitElement, matrix: Matrix
|
|
|
108
127
|
supports_spi_cs?: boolean | undefined;
|
|
109
128
|
supports_uart_tx?: boolean | undefined;
|
|
110
129
|
supports_uart_rx?: boolean | undefined;
|
|
130
|
+
most_frequently_referenced_by_name?: string | undefined;
|
|
111
131
|
} | {
|
|
112
132
|
type: "source_component_internal_connection";
|
|
113
133
|
source_component_id: string;
|
|
@@ -334,6 +354,20 @@ declare const transformSchematicElement: (elm: AnyCircuitElement, matrix: Matrix
|
|
|
334
354
|
display_name?: string | undefined;
|
|
335
355
|
are_pins_interchangeable?: boolean | undefined;
|
|
336
356
|
internally_connected_source_port_ids?: string[][] | undefined;
|
|
357
|
+
} | {
|
|
358
|
+
type: "source_component";
|
|
359
|
+
name: string;
|
|
360
|
+
source_component_id: string;
|
|
361
|
+
ftype: "simple_connector";
|
|
362
|
+
subcircuit_id?: string | undefined;
|
|
363
|
+
source_group_id?: string | undefined;
|
|
364
|
+
manufacturer_part_number?: string | undefined;
|
|
365
|
+
supplier_part_numbers?: Partial<Record<"jlcpcb" | "macrofab" | "pcbway" | "digikey" | "mouser" | "lcsc", string[]>> | undefined;
|
|
366
|
+
display_value?: string | undefined;
|
|
367
|
+
display_name?: string | undefined;
|
|
368
|
+
are_pins_interchangeable?: boolean | undefined;
|
|
369
|
+
internally_connected_source_port_ids?: string[][] | undefined;
|
|
370
|
+
standard?: "usb_c" | "m2" | undefined;
|
|
337
371
|
} | {
|
|
338
372
|
type: "source_component";
|
|
339
373
|
name: string;
|
|
@@ -891,6 +925,30 @@ declare const transformSchematicElement: (elm: AnyCircuitElement, matrix: Matrix
|
|
|
891
925
|
warning_type: "source_pin_missing_trace_warning";
|
|
892
926
|
source_pin_missing_trace_warning_id: string;
|
|
893
927
|
subcircuit_id?: string | undefined;
|
|
928
|
+
} | {
|
|
929
|
+
message: string;
|
|
930
|
+
type: "source_no_power_pin_defined_warning";
|
|
931
|
+
source_component_id: string;
|
|
932
|
+
warning_type: "source_no_power_pin_defined_warning";
|
|
933
|
+
source_port_ids: string[];
|
|
934
|
+
source_no_power_pin_defined_warning_id: string;
|
|
935
|
+
subcircuit_id?: string | undefined;
|
|
936
|
+
} | {
|
|
937
|
+
message: string;
|
|
938
|
+
type: "source_no_ground_pin_defined_warning";
|
|
939
|
+
source_component_id: string;
|
|
940
|
+
warning_type: "source_no_ground_pin_defined_warning";
|
|
941
|
+
source_port_ids: string[];
|
|
942
|
+
source_no_ground_pin_defined_warning_id: string;
|
|
943
|
+
subcircuit_id?: string | undefined;
|
|
944
|
+
} | {
|
|
945
|
+
message: string;
|
|
946
|
+
type: "source_component_pins_underspecified_warning";
|
|
947
|
+
source_component_id: string;
|
|
948
|
+
warning_type: "source_component_pins_underspecified_warning";
|
|
949
|
+
source_port_ids: string[];
|
|
950
|
+
source_component_pins_underspecified_warning_id: string;
|
|
951
|
+
subcircuit_id?: string | undefined;
|
|
894
952
|
} | {
|
|
895
953
|
message: string;
|
|
896
954
|
type: "source_pin_must_be_connected_error";
|
|
@@ -915,18 +973,26 @@ declare const transformSchematicElement: (elm: AnyCircuitElement, matrix: Matrix
|
|
|
915
973
|
source_i2c_misconfigured_error_id: string;
|
|
916
974
|
source_port_ids: string[];
|
|
917
975
|
is_fatal?: boolean | undefined;
|
|
976
|
+
} | {
|
|
977
|
+
message: string;
|
|
978
|
+
type: "source_ambiguous_port_reference";
|
|
979
|
+
error_type: "source_ambiguous_port_reference";
|
|
980
|
+
source_ambiguous_port_reference_id: string;
|
|
981
|
+
source_component_id?: string | undefined;
|
|
982
|
+
source_port_id?: string | undefined;
|
|
983
|
+
is_fatal?: boolean | undefined;
|
|
918
984
|
} | {
|
|
919
985
|
type: "pcb_component";
|
|
920
986
|
width: number;
|
|
921
987
|
height: number;
|
|
922
988
|
rotation: number;
|
|
923
989
|
layer: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6";
|
|
924
|
-
pcb_component_id: string;
|
|
925
|
-
source_component_id: string;
|
|
926
990
|
center: {
|
|
927
991
|
x: number;
|
|
928
992
|
y: number;
|
|
929
993
|
};
|
|
994
|
+
pcb_component_id: string;
|
|
995
|
+
source_component_id: string;
|
|
930
996
|
obstructs_within_bounds: boolean;
|
|
931
997
|
display_offset_x?: string | undefined;
|
|
932
998
|
display_offset_y?: string | undefined;
|
|
@@ -934,9 +1000,18 @@ declare const transformSchematicElement: (elm: AnyCircuitElement, matrix: Matrix
|
|
|
934
1000
|
is_allowed_to_be_off_board?: boolean | undefined;
|
|
935
1001
|
subcircuit_id?: string | undefined;
|
|
936
1002
|
pcb_group_id?: string | undefined;
|
|
937
|
-
position_mode?: "packed" | "relative_to_group_anchor" | "none" | undefined;
|
|
1003
|
+
position_mode?: "packed" | "relative_to_group_anchor" | "relative_to_another_component" | "none" | undefined;
|
|
1004
|
+
anchor_position?: {
|
|
1005
|
+
x: number;
|
|
1006
|
+
y: number;
|
|
1007
|
+
} | undefined;
|
|
1008
|
+
anchor_alignment?: "top_left" | "top_center" | "top_right" | "center_left" | "center" | "center_right" | "bottom_left" | "bottom_center" | "bottom_right" | undefined;
|
|
938
1009
|
positioned_relative_to_pcb_group_id?: string | undefined;
|
|
939
1010
|
positioned_relative_to_pcb_board_id?: string | undefined;
|
|
1011
|
+
cable_insertion_center?: {
|
|
1012
|
+
x: number;
|
|
1013
|
+
y: number;
|
|
1014
|
+
} | undefined;
|
|
940
1015
|
metadata?: {
|
|
941
1016
|
kicad_footprint?: {
|
|
942
1017
|
layer?: string | undefined;
|
|
@@ -1188,6 +1263,17 @@ declare const transformSchematicElement: (elm: AnyCircuitElement, matrix: Matrix
|
|
|
1188
1263
|
warning_type: "pcb_manual_edit_conflict_warning";
|
|
1189
1264
|
subcircuit_id?: string | undefined;
|
|
1190
1265
|
pcb_group_id?: string | undefined;
|
|
1266
|
+
} | {
|
|
1267
|
+
message: string;
|
|
1268
|
+
type: "pcb_connector_not_in_accessible_orientation_warning";
|
|
1269
|
+
pcb_component_id: string;
|
|
1270
|
+
warning_type: "pcb_connector_not_in_accessible_orientation_warning";
|
|
1271
|
+
pcb_connector_not_in_accessible_orientation_warning_id: string;
|
|
1272
|
+
facing_direction: "x-" | "x+" | "y+" | "y-";
|
|
1273
|
+
recommended_facing_direction: "x-" | "x+" | "y+" | "y-";
|
|
1274
|
+
source_component_id?: string | undefined;
|
|
1275
|
+
subcircuit_id?: string | undefined;
|
|
1276
|
+
pcb_board_id?: string | undefined;
|
|
1191
1277
|
} | {
|
|
1192
1278
|
x: number;
|
|
1193
1279
|
y: number;
|
|
@@ -1617,6 +1703,11 @@ declare const transformSchematicElement: (elm: AnyCircuitElement, matrix: Matrix
|
|
|
1617
1703
|
display_offset_y?: string | undefined;
|
|
1618
1704
|
subcircuit_id?: string | undefined;
|
|
1619
1705
|
position_mode?: "none" | "relative_to_panel_anchor" | undefined;
|
|
1706
|
+
anchor_position?: {
|
|
1707
|
+
x: number;
|
|
1708
|
+
y: number;
|
|
1709
|
+
} | undefined;
|
|
1710
|
+
anchor_alignment?: "top_left" | "top_center" | "top_right" | "center_left" | "center" | "center_right" | "bottom_left" | "bottom_center" | "bottom_right" | undefined;
|
|
1620
1711
|
pcb_panel_id?: string | undefined;
|
|
1621
1712
|
carrier_pcb_board_id?: string | undefined;
|
|
1622
1713
|
is_subcircuit?: boolean | undefined;
|
|
@@ -1625,11 +1716,6 @@ declare const transformSchematicElement: (elm: AnyCircuitElement, matrix: Matrix
|
|
|
1625
1716
|
x: number;
|
|
1626
1717
|
y: number;
|
|
1627
1718
|
}[] | undefined;
|
|
1628
|
-
anchor_position?: {
|
|
1629
|
-
x: number;
|
|
1630
|
-
y: number;
|
|
1631
|
-
} | undefined;
|
|
1632
|
-
anchor_alignment?: "center" | "top_left" | "top_center" | "top_right" | "center_left" | "center_right" | "bottom_left" | "bottom_center" | "bottom_right" | undefined;
|
|
1633
1719
|
} | {
|
|
1634
1720
|
type: "pcb_panel";
|
|
1635
1721
|
width: number;
|
|
@@ -1647,8 +1733,8 @@ declare const transformSchematicElement: (elm: AnyCircuitElement, matrix: Matrix
|
|
|
1647
1733
|
y: number;
|
|
1648
1734
|
};
|
|
1649
1735
|
pcb_group_id: string;
|
|
1736
|
+
anchor_alignment: "top_left" | "top_center" | "top_right" | "center_left" | "center" | "center_right" | "bottom_left" | "bottom_center" | "bottom_right";
|
|
1650
1737
|
pcb_component_ids: string[];
|
|
1651
|
-
anchor_alignment: "center" | "top_left" | "top_center" | "top_right" | "center_left" | "center_right" | "bottom_left" | "bottom_center" | "bottom_right";
|
|
1652
1738
|
source_group_id: string;
|
|
1653
1739
|
description?: string | undefined;
|
|
1654
1740
|
width?: number | undefined;
|
|
@@ -1658,6 +1744,10 @@ declare const transformSchematicElement: (elm: AnyCircuitElement, matrix: Matrix
|
|
|
1658
1744
|
display_offset_y?: string | undefined;
|
|
1659
1745
|
subcircuit_id?: string | undefined;
|
|
1660
1746
|
position_mode?: "packed" | "relative_to_group_anchor" | "none" | undefined;
|
|
1747
|
+
anchor_position?: {
|
|
1748
|
+
x: number;
|
|
1749
|
+
y: number;
|
|
1750
|
+
} | undefined;
|
|
1661
1751
|
positioned_relative_to_pcb_group_id?: string | undefined;
|
|
1662
1752
|
positioned_relative_to_pcb_board_id?: string | undefined;
|
|
1663
1753
|
is_subcircuit?: boolean | undefined;
|
|
@@ -1665,10 +1755,6 @@ declare const transformSchematicElement: (elm: AnyCircuitElement, matrix: Matrix
|
|
|
1665
1755
|
x: number;
|
|
1666
1756
|
y: number;
|
|
1667
1757
|
}[] | undefined;
|
|
1668
|
-
anchor_position?: {
|
|
1669
|
-
x: number;
|
|
1670
|
-
y: number;
|
|
1671
|
-
} | undefined;
|
|
1672
1758
|
child_layout_mode?: "packed" | "none" | undefined;
|
|
1673
1759
|
layout_mode?: string | undefined;
|
|
1674
1760
|
autorouter_configuration?: {
|
|
@@ -1717,12 +1803,12 @@ declare const transformSchematicElement: (elm: AnyCircuitElement, matrix: Matrix
|
|
|
1717
1803
|
font: "tscircuit2024";
|
|
1718
1804
|
layer: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6";
|
|
1719
1805
|
pcb_component_id: string;
|
|
1720
|
-
text: string;
|
|
1721
1806
|
anchor_position: {
|
|
1722
1807
|
x: number;
|
|
1723
1808
|
y: number;
|
|
1724
1809
|
};
|
|
1725
|
-
anchor_alignment: "
|
|
1810
|
+
anchor_alignment: "top_left" | "top_center" | "top_right" | "center_left" | "center" | "center_right" | "bottom_left" | "bottom_center" | "bottom_right";
|
|
1811
|
+
text: string;
|
|
1726
1812
|
pcb_silkscreen_text_id: string;
|
|
1727
1813
|
font_size: number;
|
|
1728
1814
|
subcircuit_id?: string | undefined;
|
|
@@ -1741,11 +1827,11 @@ declare const transformSchematicElement: (elm: AnyCircuitElement, matrix: Matrix
|
|
|
1741
1827
|
width: number;
|
|
1742
1828
|
height: number;
|
|
1743
1829
|
layer: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6";
|
|
1744
|
-
pcb_component_id: string;
|
|
1745
1830
|
center: {
|
|
1746
1831
|
x: number;
|
|
1747
1832
|
y: number;
|
|
1748
1833
|
};
|
|
1834
|
+
pcb_component_id: string;
|
|
1749
1835
|
pcb_silkscreen_pill_id: string;
|
|
1750
1836
|
subcircuit_id?: string | undefined;
|
|
1751
1837
|
pcb_group_id?: string | undefined;
|
|
@@ -1755,12 +1841,12 @@ declare const transformSchematicElement: (elm: AnyCircuitElement, matrix: Matrix
|
|
|
1755
1841
|
font: "tscircuit2024";
|
|
1756
1842
|
layer: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6";
|
|
1757
1843
|
pcb_component_id: string;
|
|
1758
|
-
text: string;
|
|
1759
1844
|
anchor_position: {
|
|
1760
1845
|
x: number;
|
|
1761
1846
|
y: number;
|
|
1762
1847
|
};
|
|
1763
|
-
anchor_alignment: "
|
|
1848
|
+
anchor_alignment: "top_left" | "top_center" | "top_right" | "center_left" | "center" | "center_right" | "bottom_left" | "bottom_center" | "bottom_right";
|
|
1849
|
+
text: string;
|
|
1764
1850
|
font_size: number;
|
|
1765
1851
|
pcb_copper_text_id: string;
|
|
1766
1852
|
subcircuit_id?: string | undefined;
|
|
@@ -1779,11 +1865,11 @@ declare const transformSchematicElement: (elm: AnyCircuitElement, matrix: Matrix
|
|
|
1779
1865
|
width: number;
|
|
1780
1866
|
height: number;
|
|
1781
1867
|
layer: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6";
|
|
1782
|
-
pcb_component_id: string;
|
|
1783
1868
|
center: {
|
|
1784
1869
|
x: number;
|
|
1785
1870
|
y: number;
|
|
1786
1871
|
};
|
|
1872
|
+
pcb_component_id: string;
|
|
1787
1873
|
stroke_width: number;
|
|
1788
1874
|
pcb_silkscreen_rect_id: string;
|
|
1789
1875
|
subcircuit_id?: string | undefined;
|
|
@@ -1796,11 +1882,11 @@ declare const transformSchematicElement: (elm: AnyCircuitElement, matrix: Matrix
|
|
|
1796
1882
|
} | {
|
|
1797
1883
|
type: "pcb_silkscreen_circle";
|
|
1798
1884
|
layer: "top" | "bottom";
|
|
1799
|
-
pcb_component_id: string;
|
|
1800
1885
|
center: {
|
|
1801
1886
|
x: number;
|
|
1802
1887
|
y: number;
|
|
1803
1888
|
};
|
|
1889
|
+
pcb_component_id: string;
|
|
1804
1890
|
radius: number;
|
|
1805
1891
|
stroke_width: number;
|
|
1806
1892
|
pcb_silkscreen_circle_id: string;
|
|
@@ -1809,11 +1895,11 @@ declare const transformSchematicElement: (elm: AnyCircuitElement, matrix: Matrix
|
|
|
1809
1895
|
} | {
|
|
1810
1896
|
type: "pcb_silkscreen_oval";
|
|
1811
1897
|
layer: "top" | "bottom";
|
|
1812
|
-
pcb_component_id: string;
|
|
1813
1898
|
center: {
|
|
1814
1899
|
x: number;
|
|
1815
1900
|
y: number;
|
|
1816
1901
|
};
|
|
1902
|
+
pcb_component_id: string;
|
|
1817
1903
|
pcb_silkscreen_oval_id: string;
|
|
1818
1904
|
radius_x: number;
|
|
1819
1905
|
radius_y: number;
|
|
@@ -1913,12 +1999,12 @@ declare const transformSchematicElement: (elm: AnyCircuitElement, matrix: Matrix
|
|
|
1913
1999
|
font: "tscircuit2024";
|
|
1914
2000
|
layer: "top" | "bottom";
|
|
1915
2001
|
pcb_component_id: string;
|
|
1916
|
-
text: string;
|
|
1917
2002
|
anchor_position: {
|
|
1918
2003
|
x: number;
|
|
1919
2004
|
y: number;
|
|
1920
2005
|
};
|
|
1921
|
-
anchor_alignment: "
|
|
2006
|
+
anchor_alignment: "top_left" | "top_right" | "center" | "bottom_left" | "bottom_right";
|
|
2007
|
+
text: string;
|
|
1922
2008
|
font_size: number;
|
|
1923
2009
|
pcb_fabrication_note_text_id: string;
|
|
1924
2010
|
subcircuit_id?: string | undefined;
|
|
@@ -1929,11 +2015,11 @@ declare const transformSchematicElement: (elm: AnyCircuitElement, matrix: Matrix
|
|
|
1929
2015
|
width: number;
|
|
1930
2016
|
height: number;
|
|
1931
2017
|
layer: "top" | "bottom";
|
|
1932
|
-
pcb_component_id: string;
|
|
1933
2018
|
center: {
|
|
1934
2019
|
x: number;
|
|
1935
2020
|
y: number;
|
|
1936
2021
|
};
|
|
2022
|
+
pcb_component_id: string;
|
|
1937
2023
|
stroke_width: number;
|
|
1938
2024
|
pcb_fabrication_note_rect_id: string;
|
|
1939
2025
|
subcircuit_id?: string | undefined;
|
|
@@ -1977,7 +2063,7 @@ declare const transformSchematicElement: (elm: AnyCircuitElement, matrix: Matrix
|
|
|
1977
2063
|
x: number;
|
|
1978
2064
|
y: number;
|
|
1979
2065
|
};
|
|
1980
|
-
anchor_alignment: "
|
|
2066
|
+
anchor_alignment: "top_left" | "top_right" | "center" | "bottom_left" | "bottom_right";
|
|
1981
2067
|
font_size: number;
|
|
1982
2068
|
pcb_note_text_id: string;
|
|
1983
2069
|
name?: string | undefined;
|
|
@@ -2278,11 +2364,11 @@ declare const transformSchematicElement: (elm: AnyCircuitElement, matrix: Matrix
|
|
|
2278
2364
|
width: number;
|
|
2279
2365
|
height: number;
|
|
2280
2366
|
layer: "top" | "bottom";
|
|
2281
|
-
pcb_component_id: string;
|
|
2282
2367
|
center: {
|
|
2283
2368
|
x: number;
|
|
2284
2369
|
y: number;
|
|
2285
2370
|
};
|
|
2371
|
+
pcb_component_id: string;
|
|
2286
2372
|
pcb_courtyard_rect_id: string;
|
|
2287
2373
|
subcircuit_id?: string | undefined;
|
|
2288
2374
|
pcb_group_id?: string | undefined;
|
|
@@ -2313,11 +2399,11 @@ declare const transformSchematicElement: (elm: AnyCircuitElement, matrix: Matrix
|
|
|
2313
2399
|
} | {
|
|
2314
2400
|
type: "pcb_courtyard_circle";
|
|
2315
2401
|
layer: "top" | "bottom";
|
|
2316
|
-
pcb_component_id: string;
|
|
2317
2402
|
center: {
|
|
2318
2403
|
x: number;
|
|
2319
2404
|
y: number;
|
|
2320
2405
|
};
|
|
2406
|
+
pcb_component_id: string;
|
|
2321
2407
|
radius: number;
|
|
2322
2408
|
pcb_courtyard_circle_id: string;
|
|
2323
2409
|
subcircuit_id?: string | undefined;
|
|
@@ -2335,7 +2421,7 @@ declare const transformSchematicElement: (elm: AnyCircuitElement, matrix: Matrix
|
|
|
2335
2421
|
schematic_symbol_id?: string | undefined;
|
|
2336
2422
|
} | {
|
|
2337
2423
|
type: "schematic_text";
|
|
2338
|
-
anchor: "top" | "bottom" | "
|
|
2424
|
+
anchor: "top" | "bottom" | "top_left" | "top_center" | "top_right" | "center_left" | "center" | "center_right" | "bottom_left" | "bottom_center" | "bottom_right" | "left" | "right";
|
|
2339
2425
|
rotation: number;
|
|
2340
2426
|
text: string;
|
|
2341
2427
|
font_size: number;
|
|
@@ -3835,8 +3921,8 @@ declare const transformSchematicElement: (elm: AnyCircuitElement, matrix: Matrix
|
|
|
3835
3921
|
source_port_id: string;
|
|
3836
3922
|
schematic_port_id: string;
|
|
3837
3923
|
subcircuit_id?: string | undefined;
|
|
3838
|
-
schematic_component_id?: string | undefined;
|
|
3839
3924
|
facing_direction?: "left" | "right" | "up" | "down" | undefined;
|
|
3925
|
+
schematic_component_id?: string | undefined;
|
|
3840
3926
|
distance_from_component_edge?: number | undefined;
|
|
3841
3927
|
side_of_component?: "top" | "bottom" | "left" | "right" | undefined;
|
|
3842
3928
|
true_ccw_index?: number | undefined;
|
|
@@ -3910,11 +3996,11 @@ declare const transformSchematicElement: (elm: AnyCircuitElement, matrix: Matrix
|
|
|
3910
3996
|
schematic_net_label_id: string;
|
|
3911
3997
|
anchor_side: "top" | "bottom" | "left" | "right";
|
|
3912
3998
|
subcircuit_id?: string | undefined;
|
|
3913
|
-
source_trace_id?: string | undefined;
|
|
3914
3999
|
anchor_position?: {
|
|
3915
4000
|
x: number;
|
|
3916
4001
|
y: number;
|
|
3917
4002
|
} | undefined;
|
|
4003
|
+
source_trace_id?: string | undefined;
|
|
3918
4004
|
symbol_name?: string | undefined;
|
|
3919
4005
|
schematic_trace_id?: string | undefined;
|
|
3920
4006
|
is_movable?: boolean | undefined;
|
|
@@ -3966,7 +4052,7 @@ declare const transformSchematicElement: (elm: AnyCircuitElement, matrix: Matrix
|
|
|
3966
4052
|
subcircuit_id?: string | undefined;
|
|
3967
4053
|
color?: string | undefined;
|
|
3968
4054
|
voltage?: number | undefined;
|
|
3969
|
-
label_alignment?: "
|
|
4055
|
+
label_alignment?: "top_left" | "top_center" | "top_right" | "center_left" | "center" | "center_right" | "bottom_left" | "bottom_center" | "bottom_right" | undefined;
|
|
3970
4056
|
} | {
|
|
3971
4057
|
message: string;
|
|
3972
4058
|
type: "schematic_manual_edit_conflict_warning";
|
|
@@ -4006,7 +4092,7 @@ declare const transformSchematicElement: (elm: AnyCircuitElement, matrix: Matrix
|
|
|
4006
4092
|
schematic_table_id: string;
|
|
4007
4093
|
column_widths: number[];
|
|
4008
4094
|
row_heights: number[];
|
|
4009
|
-
anchor?: "
|
|
4095
|
+
anchor?: "top_left" | "top_center" | "top_right" | "center_left" | "center" | "center_right" | "bottom_left" | "bottom_center" | "bottom_right" | undefined;
|
|
4010
4096
|
subcircuit_id?: string | undefined;
|
|
4011
4097
|
schematic_component_id?: string | undefined;
|
|
4012
4098
|
cell_padding?: number | undefined;
|
|
@@ -4041,6 +4127,7 @@ declare const transformSchematicElement: (elm: AnyCircuitElement, matrix: Matrix
|
|
|
4041
4127
|
z: number;
|
|
4042
4128
|
};
|
|
4043
4129
|
cad_component_id: string;
|
|
4130
|
+
model_object_fit: "contain_within_bounds" | "fill_bounds";
|
|
4044
4131
|
rotation?: {
|
|
4045
4132
|
x: number;
|
|
4046
4133
|
y: number;
|
|
@@ -4067,6 +4154,13 @@ declare const transformSchematicElement: (elm: AnyCircuitElement, matrix: Matrix
|
|
|
4067
4154
|
mimetype: string;
|
|
4068
4155
|
} | undefined;
|
|
4069
4156
|
model_unit_to_mm_scale_factor?: number | undefined;
|
|
4157
|
+
model_board_normal_direction?: "y+" | "z+" | undefined;
|
|
4158
|
+
model_origin_position?: {
|
|
4159
|
+
x: number;
|
|
4160
|
+
y: number;
|
|
4161
|
+
z: number;
|
|
4162
|
+
} | undefined;
|
|
4163
|
+
model_origin_alignment?: "unknown" | "center" | "center_of_component_on_board_surface" | undefined;
|
|
4070
4164
|
model_jscad?: any;
|
|
4071
4165
|
show_as_translucent_model?: boolean | undefined;
|
|
4072
4166
|
} | {
|
|
@@ -4193,8 +4287,27 @@ declare const transformSchematicElements: (elms: AnyCircuitElement[], matrix: Ma
|
|
|
4193
4287
|
subcircuit_connectivity_map_key?: string | undefined;
|
|
4194
4288
|
source_group_id?: string | undefined;
|
|
4195
4289
|
pin_number?: number | undefined;
|
|
4196
|
-
most_frequently_referenced_by_name?: string | undefined;
|
|
4197
4290
|
must_be_connected?: boolean | undefined;
|
|
4291
|
+
provides_power?: boolean | undefined;
|
|
4292
|
+
requires_power?: boolean | undefined;
|
|
4293
|
+
provides_ground?: boolean | undefined;
|
|
4294
|
+
requires_ground?: boolean | undefined;
|
|
4295
|
+
provides_voltage?: string | number | undefined;
|
|
4296
|
+
requires_voltage?: string | number | undefined;
|
|
4297
|
+
do_not_connect?: boolean | undefined;
|
|
4298
|
+
include_in_board_pinout?: boolean | undefined;
|
|
4299
|
+
can_use_internal_pullup?: boolean | undefined;
|
|
4300
|
+
is_using_internal_pullup?: boolean | undefined;
|
|
4301
|
+
needs_external_pullup?: boolean | undefined;
|
|
4302
|
+
can_use_internal_pulldown?: boolean | undefined;
|
|
4303
|
+
is_using_internal_pulldown?: boolean | undefined;
|
|
4304
|
+
needs_external_pulldown?: boolean | undefined;
|
|
4305
|
+
can_use_open_drain?: boolean | undefined;
|
|
4306
|
+
is_using_open_drain?: boolean | undefined;
|
|
4307
|
+
can_use_push_pull?: boolean | undefined;
|
|
4308
|
+
is_using_push_pull?: boolean | undefined;
|
|
4309
|
+
should_have_decoupling_capacitor?: boolean | undefined;
|
|
4310
|
+
recommended_decoupling_capacitor_capacitance?: string | number | undefined;
|
|
4198
4311
|
is_configured_for_i2c_sda?: boolean | undefined;
|
|
4199
4312
|
is_configured_for_i2c_scl?: boolean | undefined;
|
|
4200
4313
|
is_configured_for_spi_mosi?: boolean | undefined;
|
|
@@ -4211,6 +4324,7 @@ declare const transformSchematicElements: (elms: AnyCircuitElement[], matrix: Ma
|
|
|
4211
4324
|
supports_spi_cs?: boolean | undefined;
|
|
4212
4325
|
supports_uart_tx?: boolean | undefined;
|
|
4213
4326
|
supports_uart_rx?: boolean | undefined;
|
|
4327
|
+
most_frequently_referenced_by_name?: string | undefined;
|
|
4214
4328
|
} | {
|
|
4215
4329
|
type: "source_component_internal_connection";
|
|
4216
4330
|
source_component_id: string;
|
|
@@ -4437,6 +4551,20 @@ declare const transformSchematicElements: (elms: AnyCircuitElement[], matrix: Ma
|
|
|
4437
4551
|
display_name?: string | undefined;
|
|
4438
4552
|
are_pins_interchangeable?: boolean | undefined;
|
|
4439
4553
|
internally_connected_source_port_ids?: string[][] | undefined;
|
|
4554
|
+
} | {
|
|
4555
|
+
type: "source_component";
|
|
4556
|
+
name: string;
|
|
4557
|
+
source_component_id: string;
|
|
4558
|
+
ftype: "simple_connector";
|
|
4559
|
+
subcircuit_id?: string | undefined;
|
|
4560
|
+
source_group_id?: string | undefined;
|
|
4561
|
+
manufacturer_part_number?: string | undefined;
|
|
4562
|
+
supplier_part_numbers?: Partial<Record<"jlcpcb" | "macrofab" | "pcbway" | "digikey" | "mouser" | "lcsc", string[]>> | undefined;
|
|
4563
|
+
display_value?: string | undefined;
|
|
4564
|
+
display_name?: string | undefined;
|
|
4565
|
+
are_pins_interchangeable?: boolean | undefined;
|
|
4566
|
+
internally_connected_source_port_ids?: string[][] | undefined;
|
|
4567
|
+
standard?: "usb_c" | "m2" | undefined;
|
|
4440
4568
|
} | {
|
|
4441
4569
|
type: "source_component";
|
|
4442
4570
|
name: string;
|
|
@@ -4994,6 +5122,30 @@ declare const transformSchematicElements: (elms: AnyCircuitElement[], matrix: Ma
|
|
|
4994
5122
|
warning_type: "source_pin_missing_trace_warning";
|
|
4995
5123
|
source_pin_missing_trace_warning_id: string;
|
|
4996
5124
|
subcircuit_id?: string | undefined;
|
|
5125
|
+
} | {
|
|
5126
|
+
message: string;
|
|
5127
|
+
type: "source_no_power_pin_defined_warning";
|
|
5128
|
+
source_component_id: string;
|
|
5129
|
+
warning_type: "source_no_power_pin_defined_warning";
|
|
5130
|
+
source_port_ids: string[];
|
|
5131
|
+
source_no_power_pin_defined_warning_id: string;
|
|
5132
|
+
subcircuit_id?: string | undefined;
|
|
5133
|
+
} | {
|
|
5134
|
+
message: string;
|
|
5135
|
+
type: "source_no_ground_pin_defined_warning";
|
|
5136
|
+
source_component_id: string;
|
|
5137
|
+
warning_type: "source_no_ground_pin_defined_warning";
|
|
5138
|
+
source_port_ids: string[];
|
|
5139
|
+
source_no_ground_pin_defined_warning_id: string;
|
|
5140
|
+
subcircuit_id?: string | undefined;
|
|
5141
|
+
} | {
|
|
5142
|
+
message: string;
|
|
5143
|
+
type: "source_component_pins_underspecified_warning";
|
|
5144
|
+
source_component_id: string;
|
|
5145
|
+
warning_type: "source_component_pins_underspecified_warning";
|
|
5146
|
+
source_port_ids: string[];
|
|
5147
|
+
source_component_pins_underspecified_warning_id: string;
|
|
5148
|
+
subcircuit_id?: string | undefined;
|
|
4997
5149
|
} | {
|
|
4998
5150
|
message: string;
|
|
4999
5151
|
type: "source_pin_must_be_connected_error";
|
|
@@ -5018,18 +5170,26 @@ declare const transformSchematicElements: (elms: AnyCircuitElement[], matrix: Ma
|
|
|
5018
5170
|
source_i2c_misconfigured_error_id: string;
|
|
5019
5171
|
source_port_ids: string[];
|
|
5020
5172
|
is_fatal?: boolean | undefined;
|
|
5173
|
+
} | {
|
|
5174
|
+
message: string;
|
|
5175
|
+
type: "source_ambiguous_port_reference";
|
|
5176
|
+
error_type: "source_ambiguous_port_reference";
|
|
5177
|
+
source_ambiguous_port_reference_id: string;
|
|
5178
|
+
source_component_id?: string | undefined;
|
|
5179
|
+
source_port_id?: string | undefined;
|
|
5180
|
+
is_fatal?: boolean | undefined;
|
|
5021
5181
|
} | {
|
|
5022
5182
|
type: "pcb_component";
|
|
5023
5183
|
width: number;
|
|
5024
5184
|
height: number;
|
|
5025
5185
|
rotation: number;
|
|
5026
5186
|
layer: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6";
|
|
5027
|
-
pcb_component_id: string;
|
|
5028
|
-
source_component_id: string;
|
|
5029
5187
|
center: {
|
|
5030
5188
|
x: number;
|
|
5031
5189
|
y: number;
|
|
5032
5190
|
};
|
|
5191
|
+
pcb_component_id: string;
|
|
5192
|
+
source_component_id: string;
|
|
5033
5193
|
obstructs_within_bounds: boolean;
|
|
5034
5194
|
display_offset_x?: string | undefined;
|
|
5035
5195
|
display_offset_y?: string | undefined;
|
|
@@ -5037,9 +5197,18 @@ declare const transformSchematicElements: (elms: AnyCircuitElement[], matrix: Ma
|
|
|
5037
5197
|
is_allowed_to_be_off_board?: boolean | undefined;
|
|
5038
5198
|
subcircuit_id?: string | undefined;
|
|
5039
5199
|
pcb_group_id?: string | undefined;
|
|
5040
|
-
position_mode?: "packed" | "relative_to_group_anchor" | "none" | undefined;
|
|
5200
|
+
position_mode?: "packed" | "relative_to_group_anchor" | "relative_to_another_component" | "none" | undefined;
|
|
5201
|
+
anchor_position?: {
|
|
5202
|
+
x: number;
|
|
5203
|
+
y: number;
|
|
5204
|
+
} | undefined;
|
|
5205
|
+
anchor_alignment?: "top_left" | "top_center" | "top_right" | "center_left" | "center" | "center_right" | "bottom_left" | "bottom_center" | "bottom_right" | undefined;
|
|
5041
5206
|
positioned_relative_to_pcb_group_id?: string | undefined;
|
|
5042
5207
|
positioned_relative_to_pcb_board_id?: string | undefined;
|
|
5208
|
+
cable_insertion_center?: {
|
|
5209
|
+
x: number;
|
|
5210
|
+
y: number;
|
|
5211
|
+
} | undefined;
|
|
5043
5212
|
metadata?: {
|
|
5044
5213
|
kicad_footprint?: {
|
|
5045
5214
|
layer?: string | undefined;
|
|
@@ -5291,6 +5460,17 @@ declare const transformSchematicElements: (elms: AnyCircuitElement[], matrix: Ma
|
|
|
5291
5460
|
warning_type: "pcb_manual_edit_conflict_warning";
|
|
5292
5461
|
subcircuit_id?: string | undefined;
|
|
5293
5462
|
pcb_group_id?: string | undefined;
|
|
5463
|
+
} | {
|
|
5464
|
+
message: string;
|
|
5465
|
+
type: "pcb_connector_not_in_accessible_orientation_warning";
|
|
5466
|
+
pcb_component_id: string;
|
|
5467
|
+
warning_type: "pcb_connector_not_in_accessible_orientation_warning";
|
|
5468
|
+
pcb_connector_not_in_accessible_orientation_warning_id: string;
|
|
5469
|
+
facing_direction: "x-" | "x+" | "y+" | "y-";
|
|
5470
|
+
recommended_facing_direction: "x-" | "x+" | "y+" | "y-";
|
|
5471
|
+
source_component_id?: string | undefined;
|
|
5472
|
+
subcircuit_id?: string | undefined;
|
|
5473
|
+
pcb_board_id?: string | undefined;
|
|
5294
5474
|
} | {
|
|
5295
5475
|
x: number;
|
|
5296
5476
|
y: number;
|
|
@@ -5720,6 +5900,11 @@ declare const transformSchematicElements: (elms: AnyCircuitElement[], matrix: Ma
|
|
|
5720
5900
|
display_offset_y?: string | undefined;
|
|
5721
5901
|
subcircuit_id?: string | undefined;
|
|
5722
5902
|
position_mode?: "none" | "relative_to_panel_anchor" | undefined;
|
|
5903
|
+
anchor_position?: {
|
|
5904
|
+
x: number;
|
|
5905
|
+
y: number;
|
|
5906
|
+
} | undefined;
|
|
5907
|
+
anchor_alignment?: "top_left" | "top_center" | "top_right" | "center_left" | "center" | "center_right" | "bottom_left" | "bottom_center" | "bottom_right" | undefined;
|
|
5723
5908
|
pcb_panel_id?: string | undefined;
|
|
5724
5909
|
carrier_pcb_board_id?: string | undefined;
|
|
5725
5910
|
is_subcircuit?: boolean | undefined;
|
|
@@ -5728,11 +5913,6 @@ declare const transformSchematicElements: (elms: AnyCircuitElement[], matrix: Ma
|
|
|
5728
5913
|
x: number;
|
|
5729
5914
|
y: number;
|
|
5730
5915
|
}[] | undefined;
|
|
5731
|
-
anchor_position?: {
|
|
5732
|
-
x: number;
|
|
5733
|
-
y: number;
|
|
5734
|
-
} | undefined;
|
|
5735
|
-
anchor_alignment?: "center" | "top_left" | "top_center" | "top_right" | "center_left" | "center_right" | "bottom_left" | "bottom_center" | "bottom_right" | undefined;
|
|
5736
5916
|
} | {
|
|
5737
5917
|
type: "pcb_panel";
|
|
5738
5918
|
width: number;
|
|
@@ -5750,8 +5930,8 @@ declare const transformSchematicElements: (elms: AnyCircuitElement[], matrix: Ma
|
|
|
5750
5930
|
y: number;
|
|
5751
5931
|
};
|
|
5752
5932
|
pcb_group_id: string;
|
|
5933
|
+
anchor_alignment: "top_left" | "top_center" | "top_right" | "center_left" | "center" | "center_right" | "bottom_left" | "bottom_center" | "bottom_right";
|
|
5753
5934
|
pcb_component_ids: string[];
|
|
5754
|
-
anchor_alignment: "center" | "top_left" | "top_center" | "top_right" | "center_left" | "center_right" | "bottom_left" | "bottom_center" | "bottom_right";
|
|
5755
5935
|
source_group_id: string;
|
|
5756
5936
|
description?: string | undefined;
|
|
5757
5937
|
width?: number | undefined;
|
|
@@ -5761,6 +5941,10 @@ declare const transformSchematicElements: (elms: AnyCircuitElement[], matrix: Ma
|
|
|
5761
5941
|
display_offset_y?: string | undefined;
|
|
5762
5942
|
subcircuit_id?: string | undefined;
|
|
5763
5943
|
position_mode?: "packed" | "relative_to_group_anchor" | "none" | undefined;
|
|
5944
|
+
anchor_position?: {
|
|
5945
|
+
x: number;
|
|
5946
|
+
y: number;
|
|
5947
|
+
} | undefined;
|
|
5764
5948
|
positioned_relative_to_pcb_group_id?: string | undefined;
|
|
5765
5949
|
positioned_relative_to_pcb_board_id?: string | undefined;
|
|
5766
5950
|
is_subcircuit?: boolean | undefined;
|
|
@@ -5768,10 +5952,6 @@ declare const transformSchematicElements: (elms: AnyCircuitElement[], matrix: Ma
|
|
|
5768
5952
|
x: number;
|
|
5769
5953
|
y: number;
|
|
5770
5954
|
}[] | undefined;
|
|
5771
|
-
anchor_position?: {
|
|
5772
|
-
x: number;
|
|
5773
|
-
y: number;
|
|
5774
|
-
} | undefined;
|
|
5775
5955
|
child_layout_mode?: "packed" | "none" | undefined;
|
|
5776
5956
|
layout_mode?: string | undefined;
|
|
5777
5957
|
autorouter_configuration?: {
|
|
@@ -5820,12 +6000,12 @@ declare const transformSchematicElements: (elms: AnyCircuitElement[], matrix: Ma
|
|
|
5820
6000
|
font: "tscircuit2024";
|
|
5821
6001
|
layer: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6";
|
|
5822
6002
|
pcb_component_id: string;
|
|
5823
|
-
text: string;
|
|
5824
6003
|
anchor_position: {
|
|
5825
6004
|
x: number;
|
|
5826
6005
|
y: number;
|
|
5827
6006
|
};
|
|
5828
|
-
anchor_alignment: "
|
|
6007
|
+
anchor_alignment: "top_left" | "top_center" | "top_right" | "center_left" | "center" | "center_right" | "bottom_left" | "bottom_center" | "bottom_right";
|
|
6008
|
+
text: string;
|
|
5829
6009
|
pcb_silkscreen_text_id: string;
|
|
5830
6010
|
font_size: number;
|
|
5831
6011
|
subcircuit_id?: string | undefined;
|
|
@@ -5844,11 +6024,11 @@ declare const transformSchematicElements: (elms: AnyCircuitElement[], matrix: Ma
|
|
|
5844
6024
|
width: number;
|
|
5845
6025
|
height: number;
|
|
5846
6026
|
layer: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6";
|
|
5847
|
-
pcb_component_id: string;
|
|
5848
6027
|
center: {
|
|
5849
6028
|
x: number;
|
|
5850
6029
|
y: number;
|
|
5851
6030
|
};
|
|
6031
|
+
pcb_component_id: string;
|
|
5852
6032
|
pcb_silkscreen_pill_id: string;
|
|
5853
6033
|
subcircuit_id?: string | undefined;
|
|
5854
6034
|
pcb_group_id?: string | undefined;
|
|
@@ -5858,12 +6038,12 @@ declare const transformSchematicElements: (elms: AnyCircuitElement[], matrix: Ma
|
|
|
5858
6038
|
font: "tscircuit2024";
|
|
5859
6039
|
layer: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6";
|
|
5860
6040
|
pcb_component_id: string;
|
|
5861
|
-
text: string;
|
|
5862
6041
|
anchor_position: {
|
|
5863
6042
|
x: number;
|
|
5864
6043
|
y: number;
|
|
5865
6044
|
};
|
|
5866
|
-
anchor_alignment: "
|
|
6045
|
+
anchor_alignment: "top_left" | "top_center" | "top_right" | "center_left" | "center" | "center_right" | "bottom_left" | "bottom_center" | "bottom_right";
|
|
6046
|
+
text: string;
|
|
5867
6047
|
font_size: number;
|
|
5868
6048
|
pcb_copper_text_id: string;
|
|
5869
6049
|
subcircuit_id?: string | undefined;
|
|
@@ -5882,11 +6062,11 @@ declare const transformSchematicElements: (elms: AnyCircuitElement[], matrix: Ma
|
|
|
5882
6062
|
width: number;
|
|
5883
6063
|
height: number;
|
|
5884
6064
|
layer: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6";
|
|
5885
|
-
pcb_component_id: string;
|
|
5886
6065
|
center: {
|
|
5887
6066
|
x: number;
|
|
5888
6067
|
y: number;
|
|
5889
6068
|
};
|
|
6069
|
+
pcb_component_id: string;
|
|
5890
6070
|
stroke_width: number;
|
|
5891
6071
|
pcb_silkscreen_rect_id: string;
|
|
5892
6072
|
subcircuit_id?: string | undefined;
|
|
@@ -5899,11 +6079,11 @@ declare const transformSchematicElements: (elms: AnyCircuitElement[], matrix: Ma
|
|
|
5899
6079
|
} | {
|
|
5900
6080
|
type: "pcb_silkscreen_circle";
|
|
5901
6081
|
layer: "top" | "bottom";
|
|
5902
|
-
pcb_component_id: string;
|
|
5903
6082
|
center: {
|
|
5904
6083
|
x: number;
|
|
5905
6084
|
y: number;
|
|
5906
6085
|
};
|
|
6086
|
+
pcb_component_id: string;
|
|
5907
6087
|
radius: number;
|
|
5908
6088
|
stroke_width: number;
|
|
5909
6089
|
pcb_silkscreen_circle_id: string;
|
|
@@ -5912,11 +6092,11 @@ declare const transformSchematicElements: (elms: AnyCircuitElement[], matrix: Ma
|
|
|
5912
6092
|
} | {
|
|
5913
6093
|
type: "pcb_silkscreen_oval";
|
|
5914
6094
|
layer: "top" | "bottom";
|
|
5915
|
-
pcb_component_id: string;
|
|
5916
6095
|
center: {
|
|
5917
6096
|
x: number;
|
|
5918
6097
|
y: number;
|
|
5919
6098
|
};
|
|
6099
|
+
pcb_component_id: string;
|
|
5920
6100
|
pcb_silkscreen_oval_id: string;
|
|
5921
6101
|
radius_x: number;
|
|
5922
6102
|
radius_y: number;
|
|
@@ -6016,12 +6196,12 @@ declare const transformSchematicElements: (elms: AnyCircuitElement[], matrix: Ma
|
|
|
6016
6196
|
font: "tscircuit2024";
|
|
6017
6197
|
layer: "top" | "bottom";
|
|
6018
6198
|
pcb_component_id: string;
|
|
6019
|
-
text: string;
|
|
6020
6199
|
anchor_position: {
|
|
6021
6200
|
x: number;
|
|
6022
6201
|
y: number;
|
|
6023
6202
|
};
|
|
6024
|
-
anchor_alignment: "
|
|
6203
|
+
anchor_alignment: "top_left" | "top_right" | "center" | "bottom_left" | "bottom_right";
|
|
6204
|
+
text: string;
|
|
6025
6205
|
font_size: number;
|
|
6026
6206
|
pcb_fabrication_note_text_id: string;
|
|
6027
6207
|
subcircuit_id?: string | undefined;
|
|
@@ -6032,11 +6212,11 @@ declare const transformSchematicElements: (elms: AnyCircuitElement[], matrix: Ma
|
|
|
6032
6212
|
width: number;
|
|
6033
6213
|
height: number;
|
|
6034
6214
|
layer: "top" | "bottom";
|
|
6035
|
-
pcb_component_id: string;
|
|
6036
6215
|
center: {
|
|
6037
6216
|
x: number;
|
|
6038
6217
|
y: number;
|
|
6039
6218
|
};
|
|
6219
|
+
pcb_component_id: string;
|
|
6040
6220
|
stroke_width: number;
|
|
6041
6221
|
pcb_fabrication_note_rect_id: string;
|
|
6042
6222
|
subcircuit_id?: string | undefined;
|
|
@@ -6080,7 +6260,7 @@ declare const transformSchematicElements: (elms: AnyCircuitElement[], matrix: Ma
|
|
|
6080
6260
|
x: number;
|
|
6081
6261
|
y: number;
|
|
6082
6262
|
};
|
|
6083
|
-
anchor_alignment: "
|
|
6263
|
+
anchor_alignment: "top_left" | "top_right" | "center" | "bottom_left" | "bottom_right";
|
|
6084
6264
|
font_size: number;
|
|
6085
6265
|
pcb_note_text_id: string;
|
|
6086
6266
|
name?: string | undefined;
|
|
@@ -6381,11 +6561,11 @@ declare const transformSchematicElements: (elms: AnyCircuitElement[], matrix: Ma
|
|
|
6381
6561
|
width: number;
|
|
6382
6562
|
height: number;
|
|
6383
6563
|
layer: "top" | "bottom";
|
|
6384
|
-
pcb_component_id: string;
|
|
6385
6564
|
center: {
|
|
6386
6565
|
x: number;
|
|
6387
6566
|
y: number;
|
|
6388
6567
|
};
|
|
6568
|
+
pcb_component_id: string;
|
|
6389
6569
|
pcb_courtyard_rect_id: string;
|
|
6390
6570
|
subcircuit_id?: string | undefined;
|
|
6391
6571
|
pcb_group_id?: string | undefined;
|
|
@@ -6416,11 +6596,11 @@ declare const transformSchematicElements: (elms: AnyCircuitElement[], matrix: Ma
|
|
|
6416
6596
|
} | {
|
|
6417
6597
|
type: "pcb_courtyard_circle";
|
|
6418
6598
|
layer: "top" | "bottom";
|
|
6419
|
-
pcb_component_id: string;
|
|
6420
6599
|
center: {
|
|
6421
6600
|
x: number;
|
|
6422
6601
|
y: number;
|
|
6423
6602
|
};
|
|
6603
|
+
pcb_component_id: string;
|
|
6424
6604
|
radius: number;
|
|
6425
6605
|
pcb_courtyard_circle_id: string;
|
|
6426
6606
|
subcircuit_id?: string | undefined;
|
|
@@ -6438,7 +6618,7 @@ declare const transformSchematicElements: (elms: AnyCircuitElement[], matrix: Ma
|
|
|
6438
6618
|
schematic_symbol_id?: string | undefined;
|
|
6439
6619
|
} | {
|
|
6440
6620
|
type: "schematic_text";
|
|
6441
|
-
anchor: "top" | "bottom" | "
|
|
6621
|
+
anchor: "top" | "bottom" | "top_left" | "top_center" | "top_right" | "center_left" | "center" | "center_right" | "bottom_left" | "bottom_center" | "bottom_right" | "left" | "right";
|
|
6442
6622
|
rotation: number;
|
|
6443
6623
|
text: string;
|
|
6444
6624
|
font_size: number;
|
|
@@ -7938,8 +8118,8 @@ declare const transformSchematicElements: (elms: AnyCircuitElement[], matrix: Ma
|
|
|
7938
8118
|
source_port_id: string;
|
|
7939
8119
|
schematic_port_id: string;
|
|
7940
8120
|
subcircuit_id?: string | undefined;
|
|
7941
|
-
schematic_component_id?: string | undefined;
|
|
7942
8121
|
facing_direction?: "left" | "right" | "up" | "down" | undefined;
|
|
8122
|
+
schematic_component_id?: string | undefined;
|
|
7943
8123
|
distance_from_component_edge?: number | undefined;
|
|
7944
8124
|
side_of_component?: "top" | "bottom" | "left" | "right" | undefined;
|
|
7945
8125
|
true_ccw_index?: number | undefined;
|
|
@@ -8013,11 +8193,11 @@ declare const transformSchematicElements: (elms: AnyCircuitElement[], matrix: Ma
|
|
|
8013
8193
|
schematic_net_label_id: string;
|
|
8014
8194
|
anchor_side: "top" | "bottom" | "left" | "right";
|
|
8015
8195
|
subcircuit_id?: string | undefined;
|
|
8016
|
-
source_trace_id?: string | undefined;
|
|
8017
8196
|
anchor_position?: {
|
|
8018
8197
|
x: number;
|
|
8019
8198
|
y: number;
|
|
8020
8199
|
} | undefined;
|
|
8200
|
+
source_trace_id?: string | undefined;
|
|
8021
8201
|
symbol_name?: string | undefined;
|
|
8022
8202
|
schematic_trace_id?: string | undefined;
|
|
8023
8203
|
is_movable?: boolean | undefined;
|
|
@@ -8069,7 +8249,7 @@ declare const transformSchematicElements: (elms: AnyCircuitElement[], matrix: Ma
|
|
|
8069
8249
|
subcircuit_id?: string | undefined;
|
|
8070
8250
|
color?: string | undefined;
|
|
8071
8251
|
voltage?: number | undefined;
|
|
8072
|
-
label_alignment?: "
|
|
8252
|
+
label_alignment?: "top_left" | "top_center" | "top_right" | "center_left" | "center" | "center_right" | "bottom_left" | "bottom_center" | "bottom_right" | undefined;
|
|
8073
8253
|
} | {
|
|
8074
8254
|
message: string;
|
|
8075
8255
|
type: "schematic_manual_edit_conflict_warning";
|
|
@@ -8109,7 +8289,7 @@ declare const transformSchematicElements: (elms: AnyCircuitElement[], matrix: Ma
|
|
|
8109
8289
|
schematic_table_id: string;
|
|
8110
8290
|
column_widths: number[];
|
|
8111
8291
|
row_heights: number[];
|
|
8112
|
-
anchor?: "
|
|
8292
|
+
anchor?: "top_left" | "top_center" | "top_right" | "center_left" | "center" | "center_right" | "bottom_left" | "bottom_center" | "bottom_right" | undefined;
|
|
8113
8293
|
subcircuit_id?: string | undefined;
|
|
8114
8294
|
schematic_component_id?: string | undefined;
|
|
8115
8295
|
cell_padding?: number | undefined;
|
|
@@ -8144,6 +8324,7 @@ declare const transformSchematicElements: (elms: AnyCircuitElement[], matrix: Ma
|
|
|
8144
8324
|
z: number;
|
|
8145
8325
|
};
|
|
8146
8326
|
cad_component_id: string;
|
|
8327
|
+
model_object_fit: "contain_within_bounds" | "fill_bounds";
|
|
8147
8328
|
rotation?: {
|
|
8148
8329
|
x: number;
|
|
8149
8330
|
y: number;
|
|
@@ -8170,6 +8351,13 @@ declare const transformSchematicElements: (elms: AnyCircuitElement[], matrix: Ma
|
|
|
8170
8351
|
mimetype: string;
|
|
8171
8352
|
} | undefined;
|
|
8172
8353
|
model_unit_to_mm_scale_factor?: number | undefined;
|
|
8354
|
+
model_board_normal_direction?: "y+" | "z+" | undefined;
|
|
8355
|
+
model_origin_position?: {
|
|
8356
|
+
x: number;
|
|
8357
|
+
y: number;
|
|
8358
|
+
z: number;
|
|
8359
|
+
} | undefined;
|
|
8360
|
+
model_origin_alignment?: "unknown" | "center" | "center_of_component_on_board_surface" | undefined;
|
|
8173
8361
|
model_jscad?: any;
|
|
8174
8362
|
show_as_translucent_model?: boolean | undefined;
|
|
8175
8363
|
} | {
|
|
@@ -8296,8 +8484,27 @@ declare const transformPCBElement: (elm: AnyCircuitElement, matrix: Matrix) => {
|
|
|
8296
8484
|
subcircuit_connectivity_map_key?: string | undefined;
|
|
8297
8485
|
source_group_id?: string | undefined;
|
|
8298
8486
|
pin_number?: number | undefined;
|
|
8299
|
-
most_frequently_referenced_by_name?: string | undefined;
|
|
8300
8487
|
must_be_connected?: boolean | undefined;
|
|
8488
|
+
provides_power?: boolean | undefined;
|
|
8489
|
+
requires_power?: boolean | undefined;
|
|
8490
|
+
provides_ground?: boolean | undefined;
|
|
8491
|
+
requires_ground?: boolean | undefined;
|
|
8492
|
+
provides_voltage?: string | number | undefined;
|
|
8493
|
+
requires_voltage?: string | number | undefined;
|
|
8494
|
+
do_not_connect?: boolean | undefined;
|
|
8495
|
+
include_in_board_pinout?: boolean | undefined;
|
|
8496
|
+
can_use_internal_pullup?: boolean | undefined;
|
|
8497
|
+
is_using_internal_pullup?: boolean | undefined;
|
|
8498
|
+
needs_external_pullup?: boolean | undefined;
|
|
8499
|
+
can_use_internal_pulldown?: boolean | undefined;
|
|
8500
|
+
is_using_internal_pulldown?: boolean | undefined;
|
|
8501
|
+
needs_external_pulldown?: boolean | undefined;
|
|
8502
|
+
can_use_open_drain?: boolean | undefined;
|
|
8503
|
+
is_using_open_drain?: boolean | undefined;
|
|
8504
|
+
can_use_push_pull?: boolean | undefined;
|
|
8505
|
+
is_using_push_pull?: boolean | undefined;
|
|
8506
|
+
should_have_decoupling_capacitor?: boolean | undefined;
|
|
8507
|
+
recommended_decoupling_capacitor_capacitance?: string | number | undefined;
|
|
8301
8508
|
is_configured_for_i2c_sda?: boolean | undefined;
|
|
8302
8509
|
is_configured_for_i2c_scl?: boolean | undefined;
|
|
8303
8510
|
is_configured_for_spi_mosi?: boolean | undefined;
|
|
@@ -8314,6 +8521,7 @@ declare const transformPCBElement: (elm: AnyCircuitElement, matrix: Matrix) => {
|
|
|
8314
8521
|
supports_spi_cs?: boolean | undefined;
|
|
8315
8522
|
supports_uart_tx?: boolean | undefined;
|
|
8316
8523
|
supports_uart_rx?: boolean | undefined;
|
|
8524
|
+
most_frequently_referenced_by_name?: string | undefined;
|
|
8317
8525
|
} | {
|
|
8318
8526
|
type: "source_component_internal_connection";
|
|
8319
8527
|
source_component_id: string;
|
|
@@ -8540,6 +8748,20 @@ declare const transformPCBElement: (elm: AnyCircuitElement, matrix: Matrix) => {
|
|
|
8540
8748
|
display_name?: string | undefined;
|
|
8541
8749
|
are_pins_interchangeable?: boolean | undefined;
|
|
8542
8750
|
internally_connected_source_port_ids?: string[][] | undefined;
|
|
8751
|
+
} | {
|
|
8752
|
+
type: "source_component";
|
|
8753
|
+
name: string;
|
|
8754
|
+
source_component_id: string;
|
|
8755
|
+
ftype: "simple_connector";
|
|
8756
|
+
subcircuit_id?: string | undefined;
|
|
8757
|
+
source_group_id?: string | undefined;
|
|
8758
|
+
manufacturer_part_number?: string | undefined;
|
|
8759
|
+
supplier_part_numbers?: Partial<Record<"jlcpcb" | "macrofab" | "pcbway" | "digikey" | "mouser" | "lcsc", string[]>> | undefined;
|
|
8760
|
+
display_value?: string | undefined;
|
|
8761
|
+
display_name?: string | undefined;
|
|
8762
|
+
are_pins_interchangeable?: boolean | undefined;
|
|
8763
|
+
internally_connected_source_port_ids?: string[][] | undefined;
|
|
8764
|
+
standard?: "usb_c" | "m2" | undefined;
|
|
8543
8765
|
} | {
|
|
8544
8766
|
type: "source_component";
|
|
8545
8767
|
name: string;
|
|
@@ -9097,6 +9319,30 @@ declare const transformPCBElement: (elm: AnyCircuitElement, matrix: Matrix) => {
|
|
|
9097
9319
|
warning_type: "source_pin_missing_trace_warning";
|
|
9098
9320
|
source_pin_missing_trace_warning_id: string;
|
|
9099
9321
|
subcircuit_id?: string | undefined;
|
|
9322
|
+
} | {
|
|
9323
|
+
message: string;
|
|
9324
|
+
type: "source_no_power_pin_defined_warning";
|
|
9325
|
+
source_component_id: string;
|
|
9326
|
+
warning_type: "source_no_power_pin_defined_warning";
|
|
9327
|
+
source_port_ids: string[];
|
|
9328
|
+
source_no_power_pin_defined_warning_id: string;
|
|
9329
|
+
subcircuit_id?: string | undefined;
|
|
9330
|
+
} | {
|
|
9331
|
+
message: string;
|
|
9332
|
+
type: "source_no_ground_pin_defined_warning";
|
|
9333
|
+
source_component_id: string;
|
|
9334
|
+
warning_type: "source_no_ground_pin_defined_warning";
|
|
9335
|
+
source_port_ids: string[];
|
|
9336
|
+
source_no_ground_pin_defined_warning_id: string;
|
|
9337
|
+
subcircuit_id?: string | undefined;
|
|
9338
|
+
} | {
|
|
9339
|
+
message: string;
|
|
9340
|
+
type: "source_component_pins_underspecified_warning";
|
|
9341
|
+
source_component_id: string;
|
|
9342
|
+
warning_type: "source_component_pins_underspecified_warning";
|
|
9343
|
+
source_port_ids: string[];
|
|
9344
|
+
source_component_pins_underspecified_warning_id: string;
|
|
9345
|
+
subcircuit_id?: string | undefined;
|
|
9100
9346
|
} | {
|
|
9101
9347
|
message: string;
|
|
9102
9348
|
type: "source_pin_must_be_connected_error";
|
|
@@ -9121,18 +9367,26 @@ declare const transformPCBElement: (elm: AnyCircuitElement, matrix: Matrix) => {
|
|
|
9121
9367
|
source_i2c_misconfigured_error_id: string;
|
|
9122
9368
|
source_port_ids: string[];
|
|
9123
9369
|
is_fatal?: boolean | undefined;
|
|
9370
|
+
} | {
|
|
9371
|
+
message: string;
|
|
9372
|
+
type: "source_ambiguous_port_reference";
|
|
9373
|
+
error_type: "source_ambiguous_port_reference";
|
|
9374
|
+
source_ambiguous_port_reference_id: string;
|
|
9375
|
+
source_component_id?: string | undefined;
|
|
9376
|
+
source_port_id?: string | undefined;
|
|
9377
|
+
is_fatal?: boolean | undefined;
|
|
9124
9378
|
} | {
|
|
9125
9379
|
type: "pcb_component";
|
|
9126
9380
|
width: number;
|
|
9127
9381
|
height: number;
|
|
9128
9382
|
rotation: number;
|
|
9129
9383
|
layer: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6";
|
|
9130
|
-
pcb_component_id: string;
|
|
9131
|
-
source_component_id: string;
|
|
9132
9384
|
center: {
|
|
9133
9385
|
x: number;
|
|
9134
9386
|
y: number;
|
|
9135
9387
|
};
|
|
9388
|
+
pcb_component_id: string;
|
|
9389
|
+
source_component_id: string;
|
|
9136
9390
|
obstructs_within_bounds: boolean;
|
|
9137
9391
|
display_offset_x?: string | undefined;
|
|
9138
9392
|
display_offset_y?: string | undefined;
|
|
@@ -9140,9 +9394,18 @@ declare const transformPCBElement: (elm: AnyCircuitElement, matrix: Matrix) => {
|
|
|
9140
9394
|
is_allowed_to_be_off_board?: boolean | undefined;
|
|
9141
9395
|
subcircuit_id?: string | undefined;
|
|
9142
9396
|
pcb_group_id?: string | undefined;
|
|
9143
|
-
position_mode?: "packed" | "relative_to_group_anchor" | "none" | undefined;
|
|
9397
|
+
position_mode?: "packed" | "relative_to_group_anchor" | "relative_to_another_component" | "none" | undefined;
|
|
9398
|
+
anchor_position?: {
|
|
9399
|
+
x: number;
|
|
9400
|
+
y: number;
|
|
9401
|
+
} | undefined;
|
|
9402
|
+
anchor_alignment?: "top_left" | "top_center" | "top_right" | "center_left" | "center" | "center_right" | "bottom_left" | "bottom_center" | "bottom_right" | undefined;
|
|
9144
9403
|
positioned_relative_to_pcb_group_id?: string | undefined;
|
|
9145
9404
|
positioned_relative_to_pcb_board_id?: string | undefined;
|
|
9405
|
+
cable_insertion_center?: {
|
|
9406
|
+
x: number;
|
|
9407
|
+
y: number;
|
|
9408
|
+
} | undefined;
|
|
9146
9409
|
metadata?: {
|
|
9147
9410
|
kicad_footprint?: {
|
|
9148
9411
|
layer?: string | undefined;
|
|
@@ -9394,6 +9657,17 @@ declare const transformPCBElement: (elm: AnyCircuitElement, matrix: Matrix) => {
|
|
|
9394
9657
|
warning_type: "pcb_manual_edit_conflict_warning";
|
|
9395
9658
|
subcircuit_id?: string | undefined;
|
|
9396
9659
|
pcb_group_id?: string | undefined;
|
|
9660
|
+
} | {
|
|
9661
|
+
message: string;
|
|
9662
|
+
type: "pcb_connector_not_in_accessible_orientation_warning";
|
|
9663
|
+
pcb_component_id: string;
|
|
9664
|
+
warning_type: "pcb_connector_not_in_accessible_orientation_warning";
|
|
9665
|
+
pcb_connector_not_in_accessible_orientation_warning_id: string;
|
|
9666
|
+
facing_direction: "x-" | "x+" | "y+" | "y-";
|
|
9667
|
+
recommended_facing_direction: "x-" | "x+" | "y+" | "y-";
|
|
9668
|
+
source_component_id?: string | undefined;
|
|
9669
|
+
subcircuit_id?: string | undefined;
|
|
9670
|
+
pcb_board_id?: string | undefined;
|
|
9397
9671
|
} | {
|
|
9398
9672
|
x: number;
|
|
9399
9673
|
y: number;
|
|
@@ -9823,6 +10097,11 @@ declare const transformPCBElement: (elm: AnyCircuitElement, matrix: Matrix) => {
|
|
|
9823
10097
|
display_offset_y?: string | undefined;
|
|
9824
10098
|
subcircuit_id?: string | undefined;
|
|
9825
10099
|
position_mode?: "none" | "relative_to_panel_anchor" | undefined;
|
|
10100
|
+
anchor_position?: {
|
|
10101
|
+
x: number;
|
|
10102
|
+
y: number;
|
|
10103
|
+
} | undefined;
|
|
10104
|
+
anchor_alignment?: "top_left" | "top_center" | "top_right" | "center_left" | "center" | "center_right" | "bottom_left" | "bottom_center" | "bottom_right" | undefined;
|
|
9826
10105
|
pcb_panel_id?: string | undefined;
|
|
9827
10106
|
carrier_pcb_board_id?: string | undefined;
|
|
9828
10107
|
is_subcircuit?: boolean | undefined;
|
|
@@ -9831,11 +10110,6 @@ declare const transformPCBElement: (elm: AnyCircuitElement, matrix: Matrix) => {
|
|
|
9831
10110
|
x: number;
|
|
9832
10111
|
y: number;
|
|
9833
10112
|
}[] | undefined;
|
|
9834
|
-
anchor_position?: {
|
|
9835
|
-
x: number;
|
|
9836
|
-
y: number;
|
|
9837
|
-
} | undefined;
|
|
9838
|
-
anchor_alignment?: "center" | "top_left" | "top_center" | "top_right" | "center_left" | "center_right" | "bottom_left" | "bottom_center" | "bottom_right" | undefined;
|
|
9839
10113
|
} | {
|
|
9840
10114
|
type: "pcb_panel";
|
|
9841
10115
|
width: number;
|
|
@@ -9853,8 +10127,8 @@ declare const transformPCBElement: (elm: AnyCircuitElement, matrix: Matrix) => {
|
|
|
9853
10127
|
y: number;
|
|
9854
10128
|
};
|
|
9855
10129
|
pcb_group_id: string;
|
|
10130
|
+
anchor_alignment: "top_left" | "top_center" | "top_right" | "center_left" | "center" | "center_right" | "bottom_left" | "bottom_center" | "bottom_right";
|
|
9856
10131
|
pcb_component_ids: string[];
|
|
9857
|
-
anchor_alignment: "center" | "top_left" | "top_center" | "top_right" | "center_left" | "center_right" | "bottom_left" | "bottom_center" | "bottom_right";
|
|
9858
10132
|
source_group_id: string;
|
|
9859
10133
|
description?: string | undefined;
|
|
9860
10134
|
width?: number | undefined;
|
|
@@ -9864,6 +10138,10 @@ declare const transformPCBElement: (elm: AnyCircuitElement, matrix: Matrix) => {
|
|
|
9864
10138
|
display_offset_y?: string | undefined;
|
|
9865
10139
|
subcircuit_id?: string | undefined;
|
|
9866
10140
|
position_mode?: "packed" | "relative_to_group_anchor" | "none" | undefined;
|
|
10141
|
+
anchor_position?: {
|
|
10142
|
+
x: number;
|
|
10143
|
+
y: number;
|
|
10144
|
+
} | undefined;
|
|
9867
10145
|
positioned_relative_to_pcb_group_id?: string | undefined;
|
|
9868
10146
|
positioned_relative_to_pcb_board_id?: string | undefined;
|
|
9869
10147
|
is_subcircuit?: boolean | undefined;
|
|
@@ -9871,10 +10149,6 @@ declare const transformPCBElement: (elm: AnyCircuitElement, matrix: Matrix) => {
|
|
|
9871
10149
|
x: number;
|
|
9872
10150
|
y: number;
|
|
9873
10151
|
}[] | undefined;
|
|
9874
|
-
anchor_position?: {
|
|
9875
|
-
x: number;
|
|
9876
|
-
y: number;
|
|
9877
|
-
} | undefined;
|
|
9878
10152
|
child_layout_mode?: "packed" | "none" | undefined;
|
|
9879
10153
|
layout_mode?: string | undefined;
|
|
9880
10154
|
autorouter_configuration?: {
|
|
@@ -9923,12 +10197,12 @@ declare const transformPCBElement: (elm: AnyCircuitElement, matrix: Matrix) => {
|
|
|
9923
10197
|
font: "tscircuit2024";
|
|
9924
10198
|
layer: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6";
|
|
9925
10199
|
pcb_component_id: string;
|
|
9926
|
-
text: string;
|
|
9927
10200
|
anchor_position: {
|
|
9928
10201
|
x: number;
|
|
9929
10202
|
y: number;
|
|
9930
10203
|
};
|
|
9931
|
-
anchor_alignment: "
|
|
10204
|
+
anchor_alignment: "top_left" | "top_center" | "top_right" | "center_left" | "center" | "center_right" | "bottom_left" | "bottom_center" | "bottom_right";
|
|
10205
|
+
text: string;
|
|
9932
10206
|
pcb_silkscreen_text_id: string;
|
|
9933
10207
|
font_size: number;
|
|
9934
10208
|
subcircuit_id?: string | undefined;
|
|
@@ -9947,11 +10221,11 @@ declare const transformPCBElement: (elm: AnyCircuitElement, matrix: Matrix) => {
|
|
|
9947
10221
|
width: number;
|
|
9948
10222
|
height: number;
|
|
9949
10223
|
layer: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6";
|
|
9950
|
-
pcb_component_id: string;
|
|
9951
10224
|
center: {
|
|
9952
10225
|
x: number;
|
|
9953
10226
|
y: number;
|
|
9954
10227
|
};
|
|
10228
|
+
pcb_component_id: string;
|
|
9955
10229
|
pcb_silkscreen_pill_id: string;
|
|
9956
10230
|
subcircuit_id?: string | undefined;
|
|
9957
10231
|
pcb_group_id?: string | undefined;
|
|
@@ -9961,12 +10235,12 @@ declare const transformPCBElement: (elm: AnyCircuitElement, matrix: Matrix) => {
|
|
|
9961
10235
|
font: "tscircuit2024";
|
|
9962
10236
|
layer: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6";
|
|
9963
10237
|
pcb_component_id: string;
|
|
9964
|
-
text: string;
|
|
9965
10238
|
anchor_position: {
|
|
9966
10239
|
x: number;
|
|
9967
10240
|
y: number;
|
|
9968
10241
|
};
|
|
9969
|
-
anchor_alignment: "
|
|
10242
|
+
anchor_alignment: "top_left" | "top_center" | "top_right" | "center_left" | "center" | "center_right" | "bottom_left" | "bottom_center" | "bottom_right";
|
|
10243
|
+
text: string;
|
|
9970
10244
|
font_size: number;
|
|
9971
10245
|
pcb_copper_text_id: string;
|
|
9972
10246
|
subcircuit_id?: string | undefined;
|
|
@@ -9985,11 +10259,11 @@ declare const transformPCBElement: (elm: AnyCircuitElement, matrix: Matrix) => {
|
|
|
9985
10259
|
width: number;
|
|
9986
10260
|
height: number;
|
|
9987
10261
|
layer: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6";
|
|
9988
|
-
pcb_component_id: string;
|
|
9989
10262
|
center: {
|
|
9990
10263
|
x: number;
|
|
9991
10264
|
y: number;
|
|
9992
10265
|
};
|
|
10266
|
+
pcb_component_id: string;
|
|
9993
10267
|
stroke_width: number;
|
|
9994
10268
|
pcb_silkscreen_rect_id: string;
|
|
9995
10269
|
subcircuit_id?: string | undefined;
|
|
@@ -10002,11 +10276,11 @@ declare const transformPCBElement: (elm: AnyCircuitElement, matrix: Matrix) => {
|
|
|
10002
10276
|
} | {
|
|
10003
10277
|
type: "pcb_silkscreen_circle";
|
|
10004
10278
|
layer: "top" | "bottom";
|
|
10005
|
-
pcb_component_id: string;
|
|
10006
10279
|
center: {
|
|
10007
10280
|
x: number;
|
|
10008
10281
|
y: number;
|
|
10009
10282
|
};
|
|
10283
|
+
pcb_component_id: string;
|
|
10010
10284
|
radius: number;
|
|
10011
10285
|
stroke_width: number;
|
|
10012
10286
|
pcb_silkscreen_circle_id: string;
|
|
@@ -10015,11 +10289,11 @@ declare const transformPCBElement: (elm: AnyCircuitElement, matrix: Matrix) => {
|
|
|
10015
10289
|
} | {
|
|
10016
10290
|
type: "pcb_silkscreen_oval";
|
|
10017
10291
|
layer: "top" | "bottom";
|
|
10018
|
-
pcb_component_id: string;
|
|
10019
10292
|
center: {
|
|
10020
10293
|
x: number;
|
|
10021
10294
|
y: number;
|
|
10022
10295
|
};
|
|
10296
|
+
pcb_component_id: string;
|
|
10023
10297
|
pcb_silkscreen_oval_id: string;
|
|
10024
10298
|
radius_x: number;
|
|
10025
10299
|
radius_y: number;
|
|
@@ -10119,12 +10393,12 @@ declare const transformPCBElement: (elm: AnyCircuitElement, matrix: Matrix) => {
|
|
|
10119
10393
|
font: "tscircuit2024";
|
|
10120
10394
|
layer: "top" | "bottom";
|
|
10121
10395
|
pcb_component_id: string;
|
|
10122
|
-
text: string;
|
|
10123
10396
|
anchor_position: {
|
|
10124
10397
|
x: number;
|
|
10125
10398
|
y: number;
|
|
10126
10399
|
};
|
|
10127
|
-
anchor_alignment: "
|
|
10400
|
+
anchor_alignment: "top_left" | "top_right" | "center" | "bottom_left" | "bottom_right";
|
|
10401
|
+
text: string;
|
|
10128
10402
|
font_size: number;
|
|
10129
10403
|
pcb_fabrication_note_text_id: string;
|
|
10130
10404
|
subcircuit_id?: string | undefined;
|
|
@@ -10135,11 +10409,11 @@ declare const transformPCBElement: (elm: AnyCircuitElement, matrix: Matrix) => {
|
|
|
10135
10409
|
width: number;
|
|
10136
10410
|
height: number;
|
|
10137
10411
|
layer: "top" | "bottom";
|
|
10138
|
-
pcb_component_id: string;
|
|
10139
10412
|
center: {
|
|
10140
10413
|
x: number;
|
|
10141
10414
|
y: number;
|
|
10142
10415
|
};
|
|
10416
|
+
pcb_component_id: string;
|
|
10143
10417
|
stroke_width: number;
|
|
10144
10418
|
pcb_fabrication_note_rect_id: string;
|
|
10145
10419
|
subcircuit_id?: string | undefined;
|
|
@@ -10183,7 +10457,7 @@ declare const transformPCBElement: (elm: AnyCircuitElement, matrix: Matrix) => {
|
|
|
10183
10457
|
x: number;
|
|
10184
10458
|
y: number;
|
|
10185
10459
|
};
|
|
10186
|
-
anchor_alignment: "
|
|
10460
|
+
anchor_alignment: "top_left" | "top_right" | "center" | "bottom_left" | "bottom_right";
|
|
10187
10461
|
font_size: number;
|
|
10188
10462
|
pcb_note_text_id: string;
|
|
10189
10463
|
name?: string | undefined;
|
|
@@ -10484,11 +10758,11 @@ declare const transformPCBElement: (elm: AnyCircuitElement, matrix: Matrix) => {
|
|
|
10484
10758
|
width: number;
|
|
10485
10759
|
height: number;
|
|
10486
10760
|
layer: "top" | "bottom";
|
|
10487
|
-
pcb_component_id: string;
|
|
10488
10761
|
center: {
|
|
10489
10762
|
x: number;
|
|
10490
10763
|
y: number;
|
|
10491
10764
|
};
|
|
10765
|
+
pcb_component_id: string;
|
|
10492
10766
|
pcb_courtyard_rect_id: string;
|
|
10493
10767
|
subcircuit_id?: string | undefined;
|
|
10494
10768
|
pcb_group_id?: string | undefined;
|
|
@@ -10519,11 +10793,11 @@ declare const transformPCBElement: (elm: AnyCircuitElement, matrix: Matrix) => {
|
|
|
10519
10793
|
} | {
|
|
10520
10794
|
type: "pcb_courtyard_circle";
|
|
10521
10795
|
layer: "top" | "bottom";
|
|
10522
|
-
pcb_component_id: string;
|
|
10523
10796
|
center: {
|
|
10524
10797
|
x: number;
|
|
10525
10798
|
y: number;
|
|
10526
10799
|
};
|
|
10800
|
+
pcb_component_id: string;
|
|
10527
10801
|
radius: number;
|
|
10528
10802
|
pcb_courtyard_circle_id: string;
|
|
10529
10803
|
subcircuit_id?: string | undefined;
|
|
@@ -10541,7 +10815,7 @@ declare const transformPCBElement: (elm: AnyCircuitElement, matrix: Matrix) => {
|
|
|
10541
10815
|
schematic_symbol_id?: string | undefined;
|
|
10542
10816
|
} | {
|
|
10543
10817
|
type: "schematic_text";
|
|
10544
|
-
anchor: "top" | "bottom" | "
|
|
10818
|
+
anchor: "top" | "bottom" | "top_left" | "top_center" | "top_right" | "center_left" | "center" | "center_right" | "bottom_left" | "bottom_center" | "bottom_right" | "left" | "right";
|
|
10545
10819
|
rotation: number;
|
|
10546
10820
|
text: string;
|
|
10547
10821
|
font_size: number;
|
|
@@ -12041,8 +12315,8 @@ declare const transformPCBElement: (elm: AnyCircuitElement, matrix: Matrix) => {
|
|
|
12041
12315
|
source_port_id: string;
|
|
12042
12316
|
schematic_port_id: string;
|
|
12043
12317
|
subcircuit_id?: string | undefined;
|
|
12044
|
-
schematic_component_id?: string | undefined;
|
|
12045
12318
|
facing_direction?: "left" | "right" | "up" | "down" | undefined;
|
|
12319
|
+
schematic_component_id?: string | undefined;
|
|
12046
12320
|
distance_from_component_edge?: number | undefined;
|
|
12047
12321
|
side_of_component?: "top" | "bottom" | "left" | "right" | undefined;
|
|
12048
12322
|
true_ccw_index?: number | undefined;
|
|
@@ -12116,11 +12390,11 @@ declare const transformPCBElement: (elm: AnyCircuitElement, matrix: Matrix) => {
|
|
|
12116
12390
|
schematic_net_label_id: string;
|
|
12117
12391
|
anchor_side: "top" | "bottom" | "left" | "right";
|
|
12118
12392
|
subcircuit_id?: string | undefined;
|
|
12119
|
-
source_trace_id?: string | undefined;
|
|
12120
12393
|
anchor_position?: {
|
|
12121
12394
|
x: number;
|
|
12122
12395
|
y: number;
|
|
12123
12396
|
} | undefined;
|
|
12397
|
+
source_trace_id?: string | undefined;
|
|
12124
12398
|
symbol_name?: string | undefined;
|
|
12125
12399
|
schematic_trace_id?: string | undefined;
|
|
12126
12400
|
is_movable?: boolean | undefined;
|
|
@@ -12172,7 +12446,7 @@ declare const transformPCBElement: (elm: AnyCircuitElement, matrix: Matrix) => {
|
|
|
12172
12446
|
subcircuit_id?: string | undefined;
|
|
12173
12447
|
color?: string | undefined;
|
|
12174
12448
|
voltage?: number | undefined;
|
|
12175
|
-
label_alignment?: "
|
|
12449
|
+
label_alignment?: "top_left" | "top_center" | "top_right" | "center_left" | "center" | "center_right" | "bottom_left" | "bottom_center" | "bottom_right" | undefined;
|
|
12176
12450
|
} | {
|
|
12177
12451
|
message: string;
|
|
12178
12452
|
type: "schematic_manual_edit_conflict_warning";
|
|
@@ -12212,7 +12486,7 @@ declare const transformPCBElement: (elm: AnyCircuitElement, matrix: Matrix) => {
|
|
|
12212
12486
|
schematic_table_id: string;
|
|
12213
12487
|
column_widths: number[];
|
|
12214
12488
|
row_heights: number[];
|
|
12215
|
-
anchor?: "
|
|
12489
|
+
anchor?: "top_left" | "top_center" | "top_right" | "center_left" | "center" | "center_right" | "bottom_left" | "bottom_center" | "bottom_right" | undefined;
|
|
12216
12490
|
subcircuit_id?: string | undefined;
|
|
12217
12491
|
schematic_component_id?: string | undefined;
|
|
12218
12492
|
cell_padding?: number | undefined;
|
|
@@ -12247,6 +12521,7 @@ declare const transformPCBElement: (elm: AnyCircuitElement, matrix: Matrix) => {
|
|
|
12247
12521
|
z: number;
|
|
12248
12522
|
};
|
|
12249
12523
|
cad_component_id: string;
|
|
12524
|
+
model_object_fit: "contain_within_bounds" | "fill_bounds";
|
|
12250
12525
|
rotation?: {
|
|
12251
12526
|
x: number;
|
|
12252
12527
|
y: number;
|
|
@@ -12273,6 +12548,13 @@ declare const transformPCBElement: (elm: AnyCircuitElement, matrix: Matrix) => {
|
|
|
12273
12548
|
mimetype: string;
|
|
12274
12549
|
} | undefined;
|
|
12275
12550
|
model_unit_to_mm_scale_factor?: number | undefined;
|
|
12551
|
+
model_board_normal_direction?: "y+" | "z+" | undefined;
|
|
12552
|
+
model_origin_position?: {
|
|
12553
|
+
x: number;
|
|
12554
|
+
y: number;
|
|
12555
|
+
z: number;
|
|
12556
|
+
} | undefined;
|
|
12557
|
+
model_origin_alignment?: "unknown" | "center" | "center_of_component_on_board_surface" | undefined;
|
|
12276
12558
|
model_jscad?: any;
|
|
12277
12559
|
show_as_translucent_model?: boolean | undefined;
|
|
12278
12560
|
} | {
|
|
@@ -12399,8 +12681,27 @@ declare const transformPCBElements: (elms: AnyCircuitElement[], matrix: Matrix)
|
|
|
12399
12681
|
subcircuit_connectivity_map_key?: string | undefined;
|
|
12400
12682
|
source_group_id?: string | undefined;
|
|
12401
12683
|
pin_number?: number | undefined;
|
|
12402
|
-
most_frequently_referenced_by_name?: string | undefined;
|
|
12403
12684
|
must_be_connected?: boolean | undefined;
|
|
12685
|
+
provides_power?: boolean | undefined;
|
|
12686
|
+
requires_power?: boolean | undefined;
|
|
12687
|
+
provides_ground?: boolean | undefined;
|
|
12688
|
+
requires_ground?: boolean | undefined;
|
|
12689
|
+
provides_voltage?: string | number | undefined;
|
|
12690
|
+
requires_voltage?: string | number | undefined;
|
|
12691
|
+
do_not_connect?: boolean | undefined;
|
|
12692
|
+
include_in_board_pinout?: boolean | undefined;
|
|
12693
|
+
can_use_internal_pullup?: boolean | undefined;
|
|
12694
|
+
is_using_internal_pullup?: boolean | undefined;
|
|
12695
|
+
needs_external_pullup?: boolean | undefined;
|
|
12696
|
+
can_use_internal_pulldown?: boolean | undefined;
|
|
12697
|
+
is_using_internal_pulldown?: boolean | undefined;
|
|
12698
|
+
needs_external_pulldown?: boolean | undefined;
|
|
12699
|
+
can_use_open_drain?: boolean | undefined;
|
|
12700
|
+
is_using_open_drain?: boolean | undefined;
|
|
12701
|
+
can_use_push_pull?: boolean | undefined;
|
|
12702
|
+
is_using_push_pull?: boolean | undefined;
|
|
12703
|
+
should_have_decoupling_capacitor?: boolean | undefined;
|
|
12704
|
+
recommended_decoupling_capacitor_capacitance?: string | number | undefined;
|
|
12404
12705
|
is_configured_for_i2c_sda?: boolean | undefined;
|
|
12405
12706
|
is_configured_for_i2c_scl?: boolean | undefined;
|
|
12406
12707
|
is_configured_for_spi_mosi?: boolean | undefined;
|
|
@@ -12417,6 +12718,7 @@ declare const transformPCBElements: (elms: AnyCircuitElement[], matrix: Matrix)
|
|
|
12417
12718
|
supports_spi_cs?: boolean | undefined;
|
|
12418
12719
|
supports_uart_tx?: boolean | undefined;
|
|
12419
12720
|
supports_uart_rx?: boolean | undefined;
|
|
12721
|
+
most_frequently_referenced_by_name?: string | undefined;
|
|
12420
12722
|
} | {
|
|
12421
12723
|
type: "source_component_internal_connection";
|
|
12422
12724
|
source_component_id: string;
|
|
@@ -12643,6 +12945,20 @@ declare const transformPCBElements: (elms: AnyCircuitElement[], matrix: Matrix)
|
|
|
12643
12945
|
display_name?: string | undefined;
|
|
12644
12946
|
are_pins_interchangeable?: boolean | undefined;
|
|
12645
12947
|
internally_connected_source_port_ids?: string[][] | undefined;
|
|
12948
|
+
} | {
|
|
12949
|
+
type: "source_component";
|
|
12950
|
+
name: string;
|
|
12951
|
+
source_component_id: string;
|
|
12952
|
+
ftype: "simple_connector";
|
|
12953
|
+
subcircuit_id?: string | undefined;
|
|
12954
|
+
source_group_id?: string | undefined;
|
|
12955
|
+
manufacturer_part_number?: string | undefined;
|
|
12956
|
+
supplier_part_numbers?: Partial<Record<"jlcpcb" | "macrofab" | "pcbway" | "digikey" | "mouser" | "lcsc", string[]>> | undefined;
|
|
12957
|
+
display_value?: string | undefined;
|
|
12958
|
+
display_name?: string | undefined;
|
|
12959
|
+
are_pins_interchangeable?: boolean | undefined;
|
|
12960
|
+
internally_connected_source_port_ids?: string[][] | undefined;
|
|
12961
|
+
standard?: "usb_c" | "m2" | undefined;
|
|
12646
12962
|
} | {
|
|
12647
12963
|
type: "source_component";
|
|
12648
12964
|
name: string;
|
|
@@ -13200,6 +13516,30 @@ declare const transformPCBElements: (elms: AnyCircuitElement[], matrix: Matrix)
|
|
|
13200
13516
|
warning_type: "source_pin_missing_trace_warning";
|
|
13201
13517
|
source_pin_missing_trace_warning_id: string;
|
|
13202
13518
|
subcircuit_id?: string | undefined;
|
|
13519
|
+
} | {
|
|
13520
|
+
message: string;
|
|
13521
|
+
type: "source_no_power_pin_defined_warning";
|
|
13522
|
+
source_component_id: string;
|
|
13523
|
+
warning_type: "source_no_power_pin_defined_warning";
|
|
13524
|
+
source_port_ids: string[];
|
|
13525
|
+
source_no_power_pin_defined_warning_id: string;
|
|
13526
|
+
subcircuit_id?: string | undefined;
|
|
13527
|
+
} | {
|
|
13528
|
+
message: string;
|
|
13529
|
+
type: "source_no_ground_pin_defined_warning";
|
|
13530
|
+
source_component_id: string;
|
|
13531
|
+
warning_type: "source_no_ground_pin_defined_warning";
|
|
13532
|
+
source_port_ids: string[];
|
|
13533
|
+
source_no_ground_pin_defined_warning_id: string;
|
|
13534
|
+
subcircuit_id?: string | undefined;
|
|
13535
|
+
} | {
|
|
13536
|
+
message: string;
|
|
13537
|
+
type: "source_component_pins_underspecified_warning";
|
|
13538
|
+
source_component_id: string;
|
|
13539
|
+
warning_type: "source_component_pins_underspecified_warning";
|
|
13540
|
+
source_port_ids: string[];
|
|
13541
|
+
source_component_pins_underspecified_warning_id: string;
|
|
13542
|
+
subcircuit_id?: string | undefined;
|
|
13203
13543
|
} | {
|
|
13204
13544
|
message: string;
|
|
13205
13545
|
type: "source_pin_must_be_connected_error";
|
|
@@ -13224,18 +13564,26 @@ declare const transformPCBElements: (elms: AnyCircuitElement[], matrix: Matrix)
|
|
|
13224
13564
|
source_i2c_misconfigured_error_id: string;
|
|
13225
13565
|
source_port_ids: string[];
|
|
13226
13566
|
is_fatal?: boolean | undefined;
|
|
13567
|
+
} | {
|
|
13568
|
+
message: string;
|
|
13569
|
+
type: "source_ambiguous_port_reference";
|
|
13570
|
+
error_type: "source_ambiguous_port_reference";
|
|
13571
|
+
source_ambiguous_port_reference_id: string;
|
|
13572
|
+
source_component_id?: string | undefined;
|
|
13573
|
+
source_port_id?: string | undefined;
|
|
13574
|
+
is_fatal?: boolean | undefined;
|
|
13227
13575
|
} | {
|
|
13228
13576
|
type: "pcb_component";
|
|
13229
13577
|
width: number;
|
|
13230
13578
|
height: number;
|
|
13231
13579
|
rotation: number;
|
|
13232
13580
|
layer: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6";
|
|
13233
|
-
pcb_component_id: string;
|
|
13234
|
-
source_component_id: string;
|
|
13235
13581
|
center: {
|
|
13236
13582
|
x: number;
|
|
13237
13583
|
y: number;
|
|
13238
13584
|
};
|
|
13585
|
+
pcb_component_id: string;
|
|
13586
|
+
source_component_id: string;
|
|
13239
13587
|
obstructs_within_bounds: boolean;
|
|
13240
13588
|
display_offset_x?: string | undefined;
|
|
13241
13589
|
display_offset_y?: string | undefined;
|
|
@@ -13243,9 +13591,18 @@ declare const transformPCBElements: (elms: AnyCircuitElement[], matrix: Matrix)
|
|
|
13243
13591
|
is_allowed_to_be_off_board?: boolean | undefined;
|
|
13244
13592
|
subcircuit_id?: string | undefined;
|
|
13245
13593
|
pcb_group_id?: string | undefined;
|
|
13246
|
-
position_mode?: "packed" | "relative_to_group_anchor" | "none" | undefined;
|
|
13594
|
+
position_mode?: "packed" | "relative_to_group_anchor" | "relative_to_another_component" | "none" | undefined;
|
|
13595
|
+
anchor_position?: {
|
|
13596
|
+
x: number;
|
|
13597
|
+
y: number;
|
|
13598
|
+
} | undefined;
|
|
13599
|
+
anchor_alignment?: "top_left" | "top_center" | "top_right" | "center_left" | "center" | "center_right" | "bottom_left" | "bottom_center" | "bottom_right" | undefined;
|
|
13247
13600
|
positioned_relative_to_pcb_group_id?: string | undefined;
|
|
13248
13601
|
positioned_relative_to_pcb_board_id?: string | undefined;
|
|
13602
|
+
cable_insertion_center?: {
|
|
13603
|
+
x: number;
|
|
13604
|
+
y: number;
|
|
13605
|
+
} | undefined;
|
|
13249
13606
|
metadata?: {
|
|
13250
13607
|
kicad_footprint?: {
|
|
13251
13608
|
layer?: string | undefined;
|
|
@@ -13497,6 +13854,17 @@ declare const transformPCBElements: (elms: AnyCircuitElement[], matrix: Matrix)
|
|
|
13497
13854
|
warning_type: "pcb_manual_edit_conflict_warning";
|
|
13498
13855
|
subcircuit_id?: string | undefined;
|
|
13499
13856
|
pcb_group_id?: string | undefined;
|
|
13857
|
+
} | {
|
|
13858
|
+
message: string;
|
|
13859
|
+
type: "pcb_connector_not_in_accessible_orientation_warning";
|
|
13860
|
+
pcb_component_id: string;
|
|
13861
|
+
warning_type: "pcb_connector_not_in_accessible_orientation_warning";
|
|
13862
|
+
pcb_connector_not_in_accessible_orientation_warning_id: string;
|
|
13863
|
+
facing_direction: "x-" | "x+" | "y+" | "y-";
|
|
13864
|
+
recommended_facing_direction: "x-" | "x+" | "y+" | "y-";
|
|
13865
|
+
source_component_id?: string | undefined;
|
|
13866
|
+
subcircuit_id?: string | undefined;
|
|
13867
|
+
pcb_board_id?: string | undefined;
|
|
13500
13868
|
} | {
|
|
13501
13869
|
x: number;
|
|
13502
13870
|
y: number;
|
|
@@ -13926,6 +14294,11 @@ declare const transformPCBElements: (elms: AnyCircuitElement[], matrix: Matrix)
|
|
|
13926
14294
|
display_offset_y?: string | undefined;
|
|
13927
14295
|
subcircuit_id?: string | undefined;
|
|
13928
14296
|
position_mode?: "none" | "relative_to_panel_anchor" | undefined;
|
|
14297
|
+
anchor_position?: {
|
|
14298
|
+
x: number;
|
|
14299
|
+
y: number;
|
|
14300
|
+
} | undefined;
|
|
14301
|
+
anchor_alignment?: "top_left" | "top_center" | "top_right" | "center_left" | "center" | "center_right" | "bottom_left" | "bottom_center" | "bottom_right" | undefined;
|
|
13929
14302
|
pcb_panel_id?: string | undefined;
|
|
13930
14303
|
carrier_pcb_board_id?: string | undefined;
|
|
13931
14304
|
is_subcircuit?: boolean | undefined;
|
|
@@ -13934,11 +14307,6 @@ declare const transformPCBElements: (elms: AnyCircuitElement[], matrix: Matrix)
|
|
|
13934
14307
|
x: number;
|
|
13935
14308
|
y: number;
|
|
13936
14309
|
}[] | undefined;
|
|
13937
|
-
anchor_position?: {
|
|
13938
|
-
x: number;
|
|
13939
|
-
y: number;
|
|
13940
|
-
} | undefined;
|
|
13941
|
-
anchor_alignment?: "center" | "top_left" | "top_center" | "top_right" | "center_left" | "center_right" | "bottom_left" | "bottom_center" | "bottom_right" | undefined;
|
|
13942
14310
|
} | {
|
|
13943
14311
|
type: "pcb_panel";
|
|
13944
14312
|
width: number;
|
|
@@ -13956,8 +14324,8 @@ declare const transformPCBElements: (elms: AnyCircuitElement[], matrix: Matrix)
|
|
|
13956
14324
|
y: number;
|
|
13957
14325
|
};
|
|
13958
14326
|
pcb_group_id: string;
|
|
14327
|
+
anchor_alignment: "top_left" | "top_center" | "top_right" | "center_left" | "center" | "center_right" | "bottom_left" | "bottom_center" | "bottom_right";
|
|
13959
14328
|
pcb_component_ids: string[];
|
|
13960
|
-
anchor_alignment: "center" | "top_left" | "top_center" | "top_right" | "center_left" | "center_right" | "bottom_left" | "bottom_center" | "bottom_right";
|
|
13961
14329
|
source_group_id: string;
|
|
13962
14330
|
description?: string | undefined;
|
|
13963
14331
|
width?: number | undefined;
|
|
@@ -13967,6 +14335,10 @@ declare const transformPCBElements: (elms: AnyCircuitElement[], matrix: Matrix)
|
|
|
13967
14335
|
display_offset_y?: string | undefined;
|
|
13968
14336
|
subcircuit_id?: string | undefined;
|
|
13969
14337
|
position_mode?: "packed" | "relative_to_group_anchor" | "none" | undefined;
|
|
14338
|
+
anchor_position?: {
|
|
14339
|
+
x: number;
|
|
14340
|
+
y: number;
|
|
14341
|
+
} | undefined;
|
|
13970
14342
|
positioned_relative_to_pcb_group_id?: string | undefined;
|
|
13971
14343
|
positioned_relative_to_pcb_board_id?: string | undefined;
|
|
13972
14344
|
is_subcircuit?: boolean | undefined;
|
|
@@ -13974,10 +14346,6 @@ declare const transformPCBElements: (elms: AnyCircuitElement[], matrix: Matrix)
|
|
|
13974
14346
|
x: number;
|
|
13975
14347
|
y: number;
|
|
13976
14348
|
}[] | undefined;
|
|
13977
|
-
anchor_position?: {
|
|
13978
|
-
x: number;
|
|
13979
|
-
y: number;
|
|
13980
|
-
} | undefined;
|
|
13981
14349
|
child_layout_mode?: "packed" | "none" | undefined;
|
|
13982
14350
|
layout_mode?: string | undefined;
|
|
13983
14351
|
autorouter_configuration?: {
|
|
@@ -14026,12 +14394,12 @@ declare const transformPCBElements: (elms: AnyCircuitElement[], matrix: Matrix)
|
|
|
14026
14394
|
font: "tscircuit2024";
|
|
14027
14395
|
layer: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6";
|
|
14028
14396
|
pcb_component_id: string;
|
|
14029
|
-
text: string;
|
|
14030
14397
|
anchor_position: {
|
|
14031
14398
|
x: number;
|
|
14032
14399
|
y: number;
|
|
14033
14400
|
};
|
|
14034
|
-
anchor_alignment: "
|
|
14401
|
+
anchor_alignment: "top_left" | "top_center" | "top_right" | "center_left" | "center" | "center_right" | "bottom_left" | "bottom_center" | "bottom_right";
|
|
14402
|
+
text: string;
|
|
14035
14403
|
pcb_silkscreen_text_id: string;
|
|
14036
14404
|
font_size: number;
|
|
14037
14405
|
subcircuit_id?: string | undefined;
|
|
@@ -14050,11 +14418,11 @@ declare const transformPCBElements: (elms: AnyCircuitElement[], matrix: Matrix)
|
|
|
14050
14418
|
width: number;
|
|
14051
14419
|
height: number;
|
|
14052
14420
|
layer: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6";
|
|
14053
|
-
pcb_component_id: string;
|
|
14054
14421
|
center: {
|
|
14055
14422
|
x: number;
|
|
14056
14423
|
y: number;
|
|
14057
14424
|
};
|
|
14425
|
+
pcb_component_id: string;
|
|
14058
14426
|
pcb_silkscreen_pill_id: string;
|
|
14059
14427
|
subcircuit_id?: string | undefined;
|
|
14060
14428
|
pcb_group_id?: string | undefined;
|
|
@@ -14064,12 +14432,12 @@ declare const transformPCBElements: (elms: AnyCircuitElement[], matrix: Matrix)
|
|
|
14064
14432
|
font: "tscircuit2024";
|
|
14065
14433
|
layer: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6";
|
|
14066
14434
|
pcb_component_id: string;
|
|
14067
|
-
text: string;
|
|
14068
14435
|
anchor_position: {
|
|
14069
14436
|
x: number;
|
|
14070
14437
|
y: number;
|
|
14071
14438
|
};
|
|
14072
|
-
anchor_alignment: "
|
|
14439
|
+
anchor_alignment: "top_left" | "top_center" | "top_right" | "center_left" | "center" | "center_right" | "bottom_left" | "bottom_center" | "bottom_right";
|
|
14440
|
+
text: string;
|
|
14073
14441
|
font_size: number;
|
|
14074
14442
|
pcb_copper_text_id: string;
|
|
14075
14443
|
subcircuit_id?: string | undefined;
|
|
@@ -14088,11 +14456,11 @@ declare const transformPCBElements: (elms: AnyCircuitElement[], matrix: Matrix)
|
|
|
14088
14456
|
width: number;
|
|
14089
14457
|
height: number;
|
|
14090
14458
|
layer: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6";
|
|
14091
|
-
pcb_component_id: string;
|
|
14092
14459
|
center: {
|
|
14093
14460
|
x: number;
|
|
14094
14461
|
y: number;
|
|
14095
14462
|
};
|
|
14463
|
+
pcb_component_id: string;
|
|
14096
14464
|
stroke_width: number;
|
|
14097
14465
|
pcb_silkscreen_rect_id: string;
|
|
14098
14466
|
subcircuit_id?: string | undefined;
|
|
@@ -14105,11 +14473,11 @@ declare const transformPCBElements: (elms: AnyCircuitElement[], matrix: Matrix)
|
|
|
14105
14473
|
} | {
|
|
14106
14474
|
type: "pcb_silkscreen_circle";
|
|
14107
14475
|
layer: "top" | "bottom";
|
|
14108
|
-
pcb_component_id: string;
|
|
14109
14476
|
center: {
|
|
14110
14477
|
x: number;
|
|
14111
14478
|
y: number;
|
|
14112
14479
|
};
|
|
14480
|
+
pcb_component_id: string;
|
|
14113
14481
|
radius: number;
|
|
14114
14482
|
stroke_width: number;
|
|
14115
14483
|
pcb_silkscreen_circle_id: string;
|
|
@@ -14118,11 +14486,11 @@ declare const transformPCBElements: (elms: AnyCircuitElement[], matrix: Matrix)
|
|
|
14118
14486
|
} | {
|
|
14119
14487
|
type: "pcb_silkscreen_oval";
|
|
14120
14488
|
layer: "top" | "bottom";
|
|
14121
|
-
pcb_component_id: string;
|
|
14122
14489
|
center: {
|
|
14123
14490
|
x: number;
|
|
14124
14491
|
y: number;
|
|
14125
14492
|
};
|
|
14493
|
+
pcb_component_id: string;
|
|
14126
14494
|
pcb_silkscreen_oval_id: string;
|
|
14127
14495
|
radius_x: number;
|
|
14128
14496
|
radius_y: number;
|
|
@@ -14222,12 +14590,12 @@ declare const transformPCBElements: (elms: AnyCircuitElement[], matrix: Matrix)
|
|
|
14222
14590
|
font: "tscircuit2024";
|
|
14223
14591
|
layer: "top" | "bottom";
|
|
14224
14592
|
pcb_component_id: string;
|
|
14225
|
-
text: string;
|
|
14226
14593
|
anchor_position: {
|
|
14227
14594
|
x: number;
|
|
14228
14595
|
y: number;
|
|
14229
14596
|
};
|
|
14230
|
-
anchor_alignment: "
|
|
14597
|
+
anchor_alignment: "top_left" | "top_right" | "center" | "bottom_left" | "bottom_right";
|
|
14598
|
+
text: string;
|
|
14231
14599
|
font_size: number;
|
|
14232
14600
|
pcb_fabrication_note_text_id: string;
|
|
14233
14601
|
subcircuit_id?: string | undefined;
|
|
@@ -14238,11 +14606,11 @@ declare const transformPCBElements: (elms: AnyCircuitElement[], matrix: Matrix)
|
|
|
14238
14606
|
width: number;
|
|
14239
14607
|
height: number;
|
|
14240
14608
|
layer: "top" | "bottom";
|
|
14241
|
-
pcb_component_id: string;
|
|
14242
14609
|
center: {
|
|
14243
14610
|
x: number;
|
|
14244
14611
|
y: number;
|
|
14245
14612
|
};
|
|
14613
|
+
pcb_component_id: string;
|
|
14246
14614
|
stroke_width: number;
|
|
14247
14615
|
pcb_fabrication_note_rect_id: string;
|
|
14248
14616
|
subcircuit_id?: string | undefined;
|
|
@@ -14286,7 +14654,7 @@ declare const transformPCBElements: (elms: AnyCircuitElement[], matrix: Matrix)
|
|
|
14286
14654
|
x: number;
|
|
14287
14655
|
y: number;
|
|
14288
14656
|
};
|
|
14289
|
-
anchor_alignment: "
|
|
14657
|
+
anchor_alignment: "top_left" | "top_right" | "center" | "bottom_left" | "bottom_right";
|
|
14290
14658
|
font_size: number;
|
|
14291
14659
|
pcb_note_text_id: string;
|
|
14292
14660
|
name?: string | undefined;
|
|
@@ -14587,11 +14955,11 @@ declare const transformPCBElements: (elms: AnyCircuitElement[], matrix: Matrix)
|
|
|
14587
14955
|
width: number;
|
|
14588
14956
|
height: number;
|
|
14589
14957
|
layer: "top" | "bottom";
|
|
14590
|
-
pcb_component_id: string;
|
|
14591
14958
|
center: {
|
|
14592
14959
|
x: number;
|
|
14593
14960
|
y: number;
|
|
14594
14961
|
};
|
|
14962
|
+
pcb_component_id: string;
|
|
14595
14963
|
pcb_courtyard_rect_id: string;
|
|
14596
14964
|
subcircuit_id?: string | undefined;
|
|
14597
14965
|
pcb_group_id?: string | undefined;
|
|
@@ -14622,11 +14990,11 @@ declare const transformPCBElements: (elms: AnyCircuitElement[], matrix: Matrix)
|
|
|
14622
14990
|
} | {
|
|
14623
14991
|
type: "pcb_courtyard_circle";
|
|
14624
14992
|
layer: "top" | "bottom";
|
|
14625
|
-
pcb_component_id: string;
|
|
14626
14993
|
center: {
|
|
14627
14994
|
x: number;
|
|
14628
14995
|
y: number;
|
|
14629
14996
|
};
|
|
14997
|
+
pcb_component_id: string;
|
|
14630
14998
|
radius: number;
|
|
14631
14999
|
pcb_courtyard_circle_id: string;
|
|
14632
15000
|
subcircuit_id?: string | undefined;
|
|
@@ -14644,7 +15012,7 @@ declare const transformPCBElements: (elms: AnyCircuitElement[], matrix: Matrix)
|
|
|
14644
15012
|
schematic_symbol_id?: string | undefined;
|
|
14645
15013
|
} | {
|
|
14646
15014
|
type: "schematic_text";
|
|
14647
|
-
anchor: "top" | "bottom" | "
|
|
15015
|
+
anchor: "top" | "bottom" | "top_left" | "top_center" | "top_right" | "center_left" | "center" | "center_right" | "bottom_left" | "bottom_center" | "bottom_right" | "left" | "right";
|
|
14648
15016
|
rotation: number;
|
|
14649
15017
|
text: string;
|
|
14650
15018
|
font_size: number;
|
|
@@ -16144,8 +16512,8 @@ declare const transformPCBElements: (elms: AnyCircuitElement[], matrix: Matrix)
|
|
|
16144
16512
|
source_port_id: string;
|
|
16145
16513
|
schematic_port_id: string;
|
|
16146
16514
|
subcircuit_id?: string | undefined;
|
|
16147
|
-
schematic_component_id?: string | undefined;
|
|
16148
16515
|
facing_direction?: "left" | "right" | "up" | "down" | undefined;
|
|
16516
|
+
schematic_component_id?: string | undefined;
|
|
16149
16517
|
distance_from_component_edge?: number | undefined;
|
|
16150
16518
|
side_of_component?: "top" | "bottom" | "left" | "right" | undefined;
|
|
16151
16519
|
true_ccw_index?: number | undefined;
|
|
@@ -16219,11 +16587,11 @@ declare const transformPCBElements: (elms: AnyCircuitElement[], matrix: Matrix)
|
|
|
16219
16587
|
schematic_net_label_id: string;
|
|
16220
16588
|
anchor_side: "top" | "bottom" | "left" | "right";
|
|
16221
16589
|
subcircuit_id?: string | undefined;
|
|
16222
|
-
source_trace_id?: string | undefined;
|
|
16223
16590
|
anchor_position?: {
|
|
16224
16591
|
x: number;
|
|
16225
16592
|
y: number;
|
|
16226
16593
|
} | undefined;
|
|
16594
|
+
source_trace_id?: string | undefined;
|
|
16227
16595
|
symbol_name?: string | undefined;
|
|
16228
16596
|
schematic_trace_id?: string | undefined;
|
|
16229
16597
|
is_movable?: boolean | undefined;
|
|
@@ -16275,7 +16643,7 @@ declare const transformPCBElements: (elms: AnyCircuitElement[], matrix: Matrix)
|
|
|
16275
16643
|
subcircuit_id?: string | undefined;
|
|
16276
16644
|
color?: string | undefined;
|
|
16277
16645
|
voltage?: number | undefined;
|
|
16278
|
-
label_alignment?: "
|
|
16646
|
+
label_alignment?: "top_left" | "top_center" | "top_right" | "center_left" | "center" | "center_right" | "bottom_left" | "bottom_center" | "bottom_right" | undefined;
|
|
16279
16647
|
} | {
|
|
16280
16648
|
message: string;
|
|
16281
16649
|
type: "schematic_manual_edit_conflict_warning";
|
|
@@ -16315,7 +16683,7 @@ declare const transformPCBElements: (elms: AnyCircuitElement[], matrix: Matrix)
|
|
|
16315
16683
|
schematic_table_id: string;
|
|
16316
16684
|
column_widths: number[];
|
|
16317
16685
|
row_heights: number[];
|
|
16318
|
-
anchor?: "
|
|
16686
|
+
anchor?: "top_left" | "top_center" | "top_right" | "center_left" | "center" | "center_right" | "bottom_left" | "bottom_center" | "bottom_right" | undefined;
|
|
16319
16687
|
subcircuit_id?: string | undefined;
|
|
16320
16688
|
schematic_component_id?: string | undefined;
|
|
16321
16689
|
cell_padding?: number | undefined;
|
|
@@ -16350,6 +16718,7 @@ declare const transformPCBElements: (elms: AnyCircuitElement[], matrix: Matrix)
|
|
|
16350
16718
|
z: number;
|
|
16351
16719
|
};
|
|
16352
16720
|
cad_component_id: string;
|
|
16721
|
+
model_object_fit: "contain_within_bounds" | "fill_bounds";
|
|
16353
16722
|
rotation?: {
|
|
16354
16723
|
x: number;
|
|
16355
16724
|
y: number;
|
|
@@ -16376,6 +16745,13 @@ declare const transformPCBElements: (elms: AnyCircuitElement[], matrix: Matrix)
|
|
|
16376
16745
|
mimetype: string;
|
|
16377
16746
|
} | undefined;
|
|
16378
16747
|
model_unit_to_mm_scale_factor?: number | undefined;
|
|
16748
|
+
model_board_normal_direction?: "y+" | "z+" | undefined;
|
|
16749
|
+
model_origin_position?: {
|
|
16750
|
+
x: number;
|
|
16751
|
+
y: number;
|
|
16752
|
+
z: number;
|
|
16753
|
+
} | undefined;
|
|
16754
|
+
model_origin_alignment?: "unknown" | "center" | "center_of_component_on_board_surface" | undefined;
|
|
16379
16755
|
model_jscad?: any;
|
|
16380
16756
|
show_as_translucent_model?: boolean | undefined;
|
|
16381
16757
|
} | {
|
|
@@ -16623,7 +16999,7 @@ declare const computeGapBetweenCopper: (elm1: AnyCircuitElement, elm2: AnyCircui
|
|
|
16623
16999
|
|
|
16624
17000
|
declare const computeClearanceBetweenElements: (elm1: AnyCircuitElement, elm2: AnyCircuitElement) => number;
|
|
16625
17001
|
|
|
16626
|
-
type DrcCategory = "netlist" | "placement" | "routing" | "unknown";
|
|
17002
|
+
type DrcCategory = "netlist" | "pin_specification" | "placement" | "routing" | "unknown";
|
|
16627
17003
|
type DrcLike = {
|
|
16628
17004
|
type?: string;
|
|
16629
17005
|
error_type?: string;
|