@tscircuit/circuit-json-util 0.0.87 → 0.0.89
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 +597 -133
- package/dist/index.js +21 -1
- package/dist/index.js.map +1 -1
- package/package.json +3 -3
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;
|
|
@@ -512,6 +546,17 @@ declare const transformSchematicElement: (elm: AnyCircuitElement, matrix: Matrix
|
|
|
512
546
|
property_name: string;
|
|
513
547
|
subcircuit_id?: string | undefined;
|
|
514
548
|
is_fatal?: boolean | undefined;
|
|
549
|
+
} | {
|
|
550
|
+
message: string;
|
|
551
|
+
type: "source_invalid_component_property_error";
|
|
552
|
+
source_component_id: string;
|
|
553
|
+
error_type: "source_invalid_component_property_error";
|
|
554
|
+
property_name: string;
|
|
555
|
+
source_invalid_component_property_error_id: string;
|
|
556
|
+
subcircuit_id?: string | undefined;
|
|
557
|
+
is_fatal?: boolean | undefined;
|
|
558
|
+
property_value?: unknown;
|
|
559
|
+
expected_format?: string | undefined;
|
|
515
560
|
} | {
|
|
516
561
|
message: string;
|
|
517
562
|
type: "source_failed_to_create_component_error";
|
|
@@ -872,6 +917,17 @@ declare const transformSchematicElement: (elm: AnyCircuitElement, matrix: Matrix
|
|
|
872
917
|
software_used_string?: string | undefined;
|
|
873
918
|
project_url?: string | undefined;
|
|
874
919
|
created_at?: string | undefined;
|
|
920
|
+
} | {
|
|
921
|
+
message: string;
|
|
922
|
+
type: "source_invalid_component_property_error";
|
|
923
|
+
source_component_id: string;
|
|
924
|
+
error_type: "source_invalid_component_property_error";
|
|
925
|
+
property_name: string;
|
|
926
|
+
source_invalid_component_property_error_id: string;
|
|
927
|
+
subcircuit_id?: string | undefined;
|
|
928
|
+
is_fatal?: boolean | undefined;
|
|
929
|
+
property_value?: unknown;
|
|
930
|
+
expected_format?: string | undefined;
|
|
875
931
|
} | {
|
|
876
932
|
message: string;
|
|
877
933
|
type: "source_trace_not_connected_error";
|
|
@@ -891,6 +947,30 @@ declare const transformSchematicElement: (elm: AnyCircuitElement, matrix: Matrix
|
|
|
891
947
|
warning_type: "source_pin_missing_trace_warning";
|
|
892
948
|
source_pin_missing_trace_warning_id: string;
|
|
893
949
|
subcircuit_id?: string | undefined;
|
|
950
|
+
} | {
|
|
951
|
+
message: string;
|
|
952
|
+
type: "source_no_power_pin_defined_warning";
|
|
953
|
+
source_component_id: string;
|
|
954
|
+
warning_type: "source_no_power_pin_defined_warning";
|
|
955
|
+
source_port_ids: string[];
|
|
956
|
+
source_no_power_pin_defined_warning_id: string;
|
|
957
|
+
subcircuit_id?: string | undefined;
|
|
958
|
+
} | {
|
|
959
|
+
message: string;
|
|
960
|
+
type: "source_no_ground_pin_defined_warning";
|
|
961
|
+
source_component_id: string;
|
|
962
|
+
warning_type: "source_no_ground_pin_defined_warning";
|
|
963
|
+
source_port_ids: string[];
|
|
964
|
+
source_no_ground_pin_defined_warning_id: string;
|
|
965
|
+
subcircuit_id?: string | undefined;
|
|
966
|
+
} | {
|
|
967
|
+
message: string;
|
|
968
|
+
type: "source_component_pins_underspecified_warning";
|
|
969
|
+
source_component_id: string;
|
|
970
|
+
warning_type: "source_component_pins_underspecified_warning";
|
|
971
|
+
source_port_ids: string[];
|
|
972
|
+
source_component_pins_underspecified_warning_id: string;
|
|
973
|
+
subcircuit_id?: string | undefined;
|
|
894
974
|
} | {
|
|
895
975
|
message: string;
|
|
896
976
|
type: "source_pin_must_be_connected_error";
|
|
@@ -915,18 +995,26 @@ declare const transformSchematicElement: (elm: AnyCircuitElement, matrix: Matrix
|
|
|
915
995
|
source_i2c_misconfigured_error_id: string;
|
|
916
996
|
source_port_ids: string[];
|
|
917
997
|
is_fatal?: boolean | undefined;
|
|
998
|
+
} | {
|
|
999
|
+
message: string;
|
|
1000
|
+
type: "source_ambiguous_port_reference";
|
|
1001
|
+
error_type: "source_ambiguous_port_reference";
|
|
1002
|
+
source_ambiguous_port_reference_id: string;
|
|
1003
|
+
source_component_id?: string | undefined;
|
|
1004
|
+
source_port_id?: string | undefined;
|
|
1005
|
+
is_fatal?: boolean | undefined;
|
|
918
1006
|
} | {
|
|
919
1007
|
type: "pcb_component";
|
|
920
1008
|
width: number;
|
|
921
1009
|
height: number;
|
|
922
1010
|
rotation: number;
|
|
923
1011
|
layer: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6";
|
|
924
|
-
pcb_component_id: string;
|
|
925
|
-
source_component_id: string;
|
|
926
1012
|
center: {
|
|
927
1013
|
x: number;
|
|
928
1014
|
y: number;
|
|
929
1015
|
};
|
|
1016
|
+
pcb_component_id: string;
|
|
1017
|
+
source_component_id: string;
|
|
930
1018
|
obstructs_within_bounds: boolean;
|
|
931
1019
|
display_offset_x?: string | undefined;
|
|
932
1020
|
display_offset_y?: string | undefined;
|
|
@@ -934,9 +1022,18 @@ declare const transformSchematicElement: (elm: AnyCircuitElement, matrix: Matrix
|
|
|
934
1022
|
is_allowed_to_be_off_board?: boolean | undefined;
|
|
935
1023
|
subcircuit_id?: string | undefined;
|
|
936
1024
|
pcb_group_id?: string | undefined;
|
|
937
|
-
position_mode?: "packed" | "relative_to_group_anchor" | "none" | undefined;
|
|
1025
|
+
position_mode?: "packed" | "relative_to_group_anchor" | "relative_to_another_component" | "none" | undefined;
|
|
1026
|
+
anchor_position?: {
|
|
1027
|
+
x: number;
|
|
1028
|
+
y: number;
|
|
1029
|
+
} | undefined;
|
|
1030
|
+
anchor_alignment?: "top_left" | "top_center" | "top_right" | "center_left" | "center" | "center_right" | "bottom_left" | "bottom_center" | "bottom_right" | undefined;
|
|
938
1031
|
positioned_relative_to_pcb_group_id?: string | undefined;
|
|
939
1032
|
positioned_relative_to_pcb_board_id?: string | undefined;
|
|
1033
|
+
cable_insertion_center?: {
|
|
1034
|
+
x: number;
|
|
1035
|
+
y: number;
|
|
1036
|
+
} | undefined;
|
|
940
1037
|
metadata?: {
|
|
941
1038
|
kicad_footprint?: {
|
|
942
1039
|
layer?: string | undefined;
|
|
@@ -1188,6 +1285,17 @@ declare const transformSchematicElement: (elm: AnyCircuitElement, matrix: Matrix
|
|
|
1188
1285
|
warning_type: "pcb_manual_edit_conflict_warning";
|
|
1189
1286
|
subcircuit_id?: string | undefined;
|
|
1190
1287
|
pcb_group_id?: string | undefined;
|
|
1288
|
+
} | {
|
|
1289
|
+
message: string;
|
|
1290
|
+
type: "pcb_connector_not_in_accessible_orientation_warning";
|
|
1291
|
+
pcb_component_id: string;
|
|
1292
|
+
warning_type: "pcb_connector_not_in_accessible_orientation_warning";
|
|
1293
|
+
pcb_connector_not_in_accessible_orientation_warning_id: string;
|
|
1294
|
+
facing_direction: "x-" | "x+" | "y+" | "y-";
|
|
1295
|
+
recommended_facing_direction: "x-" | "x+" | "y+" | "y-";
|
|
1296
|
+
source_component_id?: string | undefined;
|
|
1297
|
+
subcircuit_id?: string | undefined;
|
|
1298
|
+
pcb_board_id?: string | undefined;
|
|
1191
1299
|
} | {
|
|
1192
1300
|
x: number;
|
|
1193
1301
|
y: number;
|
|
@@ -1617,6 +1725,11 @@ declare const transformSchematicElement: (elm: AnyCircuitElement, matrix: Matrix
|
|
|
1617
1725
|
display_offset_y?: string | undefined;
|
|
1618
1726
|
subcircuit_id?: string | undefined;
|
|
1619
1727
|
position_mode?: "none" | "relative_to_panel_anchor" | undefined;
|
|
1728
|
+
anchor_position?: {
|
|
1729
|
+
x: number;
|
|
1730
|
+
y: number;
|
|
1731
|
+
} | undefined;
|
|
1732
|
+
anchor_alignment?: "top_left" | "top_center" | "top_right" | "center_left" | "center" | "center_right" | "bottom_left" | "bottom_center" | "bottom_right" | undefined;
|
|
1620
1733
|
pcb_panel_id?: string | undefined;
|
|
1621
1734
|
carrier_pcb_board_id?: string | undefined;
|
|
1622
1735
|
is_subcircuit?: boolean | undefined;
|
|
@@ -1625,11 +1738,6 @@ declare const transformSchematicElement: (elm: AnyCircuitElement, matrix: Matrix
|
|
|
1625
1738
|
x: number;
|
|
1626
1739
|
y: number;
|
|
1627
1740
|
}[] | 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
1741
|
} | {
|
|
1634
1742
|
type: "pcb_panel";
|
|
1635
1743
|
width: number;
|
|
@@ -1647,8 +1755,8 @@ declare const transformSchematicElement: (elm: AnyCircuitElement, matrix: Matrix
|
|
|
1647
1755
|
y: number;
|
|
1648
1756
|
};
|
|
1649
1757
|
pcb_group_id: string;
|
|
1758
|
+
anchor_alignment: "top_left" | "top_center" | "top_right" | "center_left" | "center" | "center_right" | "bottom_left" | "bottom_center" | "bottom_right";
|
|
1650
1759
|
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
1760
|
source_group_id: string;
|
|
1653
1761
|
description?: string | undefined;
|
|
1654
1762
|
width?: number | undefined;
|
|
@@ -1658,6 +1766,10 @@ declare const transformSchematicElement: (elm: AnyCircuitElement, matrix: Matrix
|
|
|
1658
1766
|
display_offset_y?: string | undefined;
|
|
1659
1767
|
subcircuit_id?: string | undefined;
|
|
1660
1768
|
position_mode?: "packed" | "relative_to_group_anchor" | "none" | undefined;
|
|
1769
|
+
anchor_position?: {
|
|
1770
|
+
x: number;
|
|
1771
|
+
y: number;
|
|
1772
|
+
} | undefined;
|
|
1661
1773
|
positioned_relative_to_pcb_group_id?: string | undefined;
|
|
1662
1774
|
positioned_relative_to_pcb_board_id?: string | undefined;
|
|
1663
1775
|
is_subcircuit?: boolean | undefined;
|
|
@@ -1665,10 +1777,6 @@ declare const transformSchematicElement: (elm: AnyCircuitElement, matrix: Matrix
|
|
|
1665
1777
|
x: number;
|
|
1666
1778
|
y: number;
|
|
1667
1779
|
}[] | undefined;
|
|
1668
|
-
anchor_position?: {
|
|
1669
|
-
x: number;
|
|
1670
|
-
y: number;
|
|
1671
|
-
} | undefined;
|
|
1672
1780
|
child_layout_mode?: "packed" | "none" | undefined;
|
|
1673
1781
|
layout_mode?: string | undefined;
|
|
1674
1782
|
autorouter_configuration?: {
|
|
@@ -1717,12 +1825,12 @@ declare const transformSchematicElement: (elm: AnyCircuitElement, matrix: Matrix
|
|
|
1717
1825
|
font: "tscircuit2024";
|
|
1718
1826
|
layer: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6";
|
|
1719
1827
|
pcb_component_id: string;
|
|
1720
|
-
text: string;
|
|
1721
1828
|
anchor_position: {
|
|
1722
1829
|
x: number;
|
|
1723
1830
|
y: number;
|
|
1724
1831
|
};
|
|
1725
|
-
anchor_alignment: "
|
|
1832
|
+
anchor_alignment: "top_left" | "top_center" | "top_right" | "center_left" | "center" | "center_right" | "bottom_left" | "bottom_center" | "bottom_right";
|
|
1833
|
+
text: string;
|
|
1726
1834
|
pcb_silkscreen_text_id: string;
|
|
1727
1835
|
font_size: number;
|
|
1728
1836
|
subcircuit_id?: string | undefined;
|
|
@@ -1741,11 +1849,11 @@ declare const transformSchematicElement: (elm: AnyCircuitElement, matrix: Matrix
|
|
|
1741
1849
|
width: number;
|
|
1742
1850
|
height: number;
|
|
1743
1851
|
layer: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6";
|
|
1744
|
-
pcb_component_id: string;
|
|
1745
1852
|
center: {
|
|
1746
1853
|
x: number;
|
|
1747
1854
|
y: number;
|
|
1748
1855
|
};
|
|
1856
|
+
pcb_component_id: string;
|
|
1749
1857
|
pcb_silkscreen_pill_id: string;
|
|
1750
1858
|
subcircuit_id?: string | undefined;
|
|
1751
1859
|
pcb_group_id?: string | undefined;
|
|
@@ -1755,12 +1863,12 @@ declare const transformSchematicElement: (elm: AnyCircuitElement, matrix: Matrix
|
|
|
1755
1863
|
font: "tscircuit2024";
|
|
1756
1864
|
layer: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6";
|
|
1757
1865
|
pcb_component_id: string;
|
|
1758
|
-
text: string;
|
|
1759
1866
|
anchor_position: {
|
|
1760
1867
|
x: number;
|
|
1761
1868
|
y: number;
|
|
1762
1869
|
};
|
|
1763
|
-
anchor_alignment: "
|
|
1870
|
+
anchor_alignment: "top_left" | "top_center" | "top_right" | "center_left" | "center" | "center_right" | "bottom_left" | "bottom_center" | "bottom_right";
|
|
1871
|
+
text: string;
|
|
1764
1872
|
font_size: number;
|
|
1765
1873
|
pcb_copper_text_id: string;
|
|
1766
1874
|
subcircuit_id?: string | undefined;
|
|
@@ -1779,11 +1887,11 @@ declare const transformSchematicElement: (elm: AnyCircuitElement, matrix: Matrix
|
|
|
1779
1887
|
width: number;
|
|
1780
1888
|
height: number;
|
|
1781
1889
|
layer: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6";
|
|
1782
|
-
pcb_component_id: string;
|
|
1783
1890
|
center: {
|
|
1784
1891
|
x: number;
|
|
1785
1892
|
y: number;
|
|
1786
1893
|
};
|
|
1894
|
+
pcb_component_id: string;
|
|
1787
1895
|
stroke_width: number;
|
|
1788
1896
|
pcb_silkscreen_rect_id: string;
|
|
1789
1897
|
subcircuit_id?: string | undefined;
|
|
@@ -1796,11 +1904,11 @@ declare const transformSchematicElement: (elm: AnyCircuitElement, matrix: Matrix
|
|
|
1796
1904
|
} | {
|
|
1797
1905
|
type: "pcb_silkscreen_circle";
|
|
1798
1906
|
layer: "top" | "bottom";
|
|
1799
|
-
pcb_component_id: string;
|
|
1800
1907
|
center: {
|
|
1801
1908
|
x: number;
|
|
1802
1909
|
y: number;
|
|
1803
1910
|
};
|
|
1911
|
+
pcb_component_id: string;
|
|
1804
1912
|
radius: number;
|
|
1805
1913
|
stroke_width: number;
|
|
1806
1914
|
pcb_silkscreen_circle_id: string;
|
|
@@ -1809,11 +1917,11 @@ declare const transformSchematicElement: (elm: AnyCircuitElement, matrix: Matrix
|
|
|
1809
1917
|
} | {
|
|
1810
1918
|
type: "pcb_silkscreen_oval";
|
|
1811
1919
|
layer: "top" | "bottom";
|
|
1812
|
-
pcb_component_id: string;
|
|
1813
1920
|
center: {
|
|
1814
1921
|
x: number;
|
|
1815
1922
|
y: number;
|
|
1816
1923
|
};
|
|
1924
|
+
pcb_component_id: string;
|
|
1817
1925
|
pcb_silkscreen_oval_id: string;
|
|
1818
1926
|
radius_x: number;
|
|
1819
1927
|
radius_y: number;
|
|
@@ -1913,12 +2021,12 @@ declare const transformSchematicElement: (elm: AnyCircuitElement, matrix: Matrix
|
|
|
1913
2021
|
font: "tscircuit2024";
|
|
1914
2022
|
layer: "top" | "bottom";
|
|
1915
2023
|
pcb_component_id: string;
|
|
1916
|
-
text: string;
|
|
1917
2024
|
anchor_position: {
|
|
1918
2025
|
x: number;
|
|
1919
2026
|
y: number;
|
|
1920
2027
|
};
|
|
1921
|
-
anchor_alignment: "
|
|
2028
|
+
anchor_alignment: "top_left" | "top_right" | "center" | "bottom_left" | "bottom_right";
|
|
2029
|
+
text: string;
|
|
1922
2030
|
font_size: number;
|
|
1923
2031
|
pcb_fabrication_note_text_id: string;
|
|
1924
2032
|
subcircuit_id?: string | undefined;
|
|
@@ -1929,11 +2037,11 @@ declare const transformSchematicElement: (elm: AnyCircuitElement, matrix: Matrix
|
|
|
1929
2037
|
width: number;
|
|
1930
2038
|
height: number;
|
|
1931
2039
|
layer: "top" | "bottom";
|
|
1932
|
-
pcb_component_id: string;
|
|
1933
2040
|
center: {
|
|
1934
2041
|
x: number;
|
|
1935
2042
|
y: number;
|
|
1936
2043
|
};
|
|
2044
|
+
pcb_component_id: string;
|
|
1937
2045
|
stroke_width: number;
|
|
1938
2046
|
pcb_fabrication_note_rect_id: string;
|
|
1939
2047
|
subcircuit_id?: string | undefined;
|
|
@@ -1977,7 +2085,7 @@ declare const transformSchematicElement: (elm: AnyCircuitElement, matrix: Matrix
|
|
|
1977
2085
|
x: number;
|
|
1978
2086
|
y: number;
|
|
1979
2087
|
};
|
|
1980
|
-
anchor_alignment: "
|
|
2088
|
+
anchor_alignment: "top_left" | "top_right" | "center" | "bottom_left" | "bottom_right";
|
|
1981
2089
|
font_size: number;
|
|
1982
2090
|
pcb_note_text_id: string;
|
|
1983
2091
|
name?: string | undefined;
|
|
@@ -2278,11 +2386,11 @@ declare const transformSchematicElement: (elm: AnyCircuitElement, matrix: Matrix
|
|
|
2278
2386
|
width: number;
|
|
2279
2387
|
height: number;
|
|
2280
2388
|
layer: "top" | "bottom";
|
|
2281
|
-
pcb_component_id: string;
|
|
2282
2389
|
center: {
|
|
2283
2390
|
x: number;
|
|
2284
2391
|
y: number;
|
|
2285
2392
|
};
|
|
2393
|
+
pcb_component_id: string;
|
|
2286
2394
|
pcb_courtyard_rect_id: string;
|
|
2287
2395
|
subcircuit_id?: string | undefined;
|
|
2288
2396
|
pcb_group_id?: string | undefined;
|
|
@@ -2313,11 +2421,11 @@ declare const transformSchematicElement: (elm: AnyCircuitElement, matrix: Matrix
|
|
|
2313
2421
|
} | {
|
|
2314
2422
|
type: "pcb_courtyard_circle";
|
|
2315
2423
|
layer: "top" | "bottom";
|
|
2316
|
-
pcb_component_id: string;
|
|
2317
2424
|
center: {
|
|
2318
2425
|
x: number;
|
|
2319
2426
|
y: number;
|
|
2320
2427
|
};
|
|
2428
|
+
pcb_component_id: string;
|
|
2321
2429
|
radius: number;
|
|
2322
2430
|
pcb_courtyard_circle_id: string;
|
|
2323
2431
|
subcircuit_id?: string | undefined;
|
|
@@ -2335,7 +2443,7 @@ declare const transformSchematicElement: (elm: AnyCircuitElement, matrix: Matrix
|
|
|
2335
2443
|
schematic_symbol_id?: string | undefined;
|
|
2336
2444
|
} | {
|
|
2337
2445
|
type: "schematic_text";
|
|
2338
|
-
anchor: "top" | "bottom" | "
|
|
2446
|
+
anchor: "top" | "bottom" | "top_left" | "top_center" | "top_right" | "center_left" | "center" | "center_right" | "bottom_left" | "bottom_center" | "bottom_right" | "left" | "right";
|
|
2339
2447
|
rotation: number;
|
|
2340
2448
|
text: string;
|
|
2341
2449
|
font_size: number;
|
|
@@ -3835,8 +3943,8 @@ declare const transformSchematicElement: (elm: AnyCircuitElement, matrix: Matrix
|
|
|
3835
3943
|
source_port_id: string;
|
|
3836
3944
|
schematic_port_id: string;
|
|
3837
3945
|
subcircuit_id?: string | undefined;
|
|
3838
|
-
schematic_component_id?: string | undefined;
|
|
3839
3946
|
facing_direction?: "left" | "right" | "up" | "down" | undefined;
|
|
3947
|
+
schematic_component_id?: string | undefined;
|
|
3840
3948
|
distance_from_component_edge?: number | undefined;
|
|
3841
3949
|
side_of_component?: "top" | "bottom" | "left" | "right" | undefined;
|
|
3842
3950
|
true_ccw_index?: number | undefined;
|
|
@@ -3910,11 +4018,11 @@ declare const transformSchematicElement: (elm: AnyCircuitElement, matrix: Matrix
|
|
|
3910
4018
|
schematic_net_label_id: string;
|
|
3911
4019
|
anchor_side: "top" | "bottom" | "left" | "right";
|
|
3912
4020
|
subcircuit_id?: string | undefined;
|
|
3913
|
-
source_trace_id?: string | undefined;
|
|
3914
4021
|
anchor_position?: {
|
|
3915
4022
|
x: number;
|
|
3916
4023
|
y: number;
|
|
3917
4024
|
} | undefined;
|
|
4025
|
+
source_trace_id?: string | undefined;
|
|
3918
4026
|
symbol_name?: string | undefined;
|
|
3919
4027
|
schematic_trace_id?: string | undefined;
|
|
3920
4028
|
is_movable?: boolean | undefined;
|
|
@@ -3966,7 +4074,7 @@ declare const transformSchematicElement: (elm: AnyCircuitElement, matrix: Matrix
|
|
|
3966
4074
|
subcircuit_id?: string | undefined;
|
|
3967
4075
|
color?: string | undefined;
|
|
3968
4076
|
voltage?: number | undefined;
|
|
3969
|
-
label_alignment?: "
|
|
4077
|
+
label_alignment?: "top_left" | "top_center" | "top_right" | "center_left" | "center" | "center_right" | "bottom_left" | "bottom_center" | "bottom_right" | undefined;
|
|
3970
4078
|
} | {
|
|
3971
4079
|
message: string;
|
|
3972
4080
|
type: "schematic_manual_edit_conflict_warning";
|
|
@@ -4006,7 +4114,7 @@ declare const transformSchematicElement: (elm: AnyCircuitElement, matrix: Matrix
|
|
|
4006
4114
|
schematic_table_id: string;
|
|
4007
4115
|
column_widths: number[];
|
|
4008
4116
|
row_heights: number[];
|
|
4009
|
-
anchor?: "
|
|
4117
|
+
anchor?: "top_left" | "top_center" | "top_right" | "center_left" | "center" | "center_right" | "bottom_left" | "bottom_center" | "bottom_right" | undefined;
|
|
4010
4118
|
subcircuit_id?: string | undefined;
|
|
4011
4119
|
schematic_component_id?: string | undefined;
|
|
4012
4120
|
cell_padding?: number | undefined;
|
|
@@ -4041,6 +4149,7 @@ declare const transformSchematicElement: (elm: AnyCircuitElement, matrix: Matrix
|
|
|
4041
4149
|
z: number;
|
|
4042
4150
|
};
|
|
4043
4151
|
cad_component_id: string;
|
|
4152
|
+
model_object_fit: "contain_within_bounds" | "fill_bounds";
|
|
4044
4153
|
rotation?: {
|
|
4045
4154
|
x: number;
|
|
4046
4155
|
y: number;
|
|
@@ -4067,6 +4176,13 @@ declare const transformSchematicElement: (elm: AnyCircuitElement, matrix: Matrix
|
|
|
4067
4176
|
mimetype: string;
|
|
4068
4177
|
} | undefined;
|
|
4069
4178
|
model_unit_to_mm_scale_factor?: number | undefined;
|
|
4179
|
+
model_board_normal_direction?: "y+" | "z+" | undefined;
|
|
4180
|
+
model_origin_position?: {
|
|
4181
|
+
x: number;
|
|
4182
|
+
y: number;
|
|
4183
|
+
z: number;
|
|
4184
|
+
} | undefined;
|
|
4185
|
+
model_origin_alignment?: "unknown" | "center" | "center_of_component_on_board_surface" | undefined;
|
|
4070
4186
|
model_jscad?: any;
|
|
4071
4187
|
show_as_translucent_model?: boolean | undefined;
|
|
4072
4188
|
} | {
|
|
@@ -4193,8 +4309,27 @@ declare const transformSchematicElements: (elms: AnyCircuitElement[], matrix: Ma
|
|
|
4193
4309
|
subcircuit_connectivity_map_key?: string | undefined;
|
|
4194
4310
|
source_group_id?: string | undefined;
|
|
4195
4311
|
pin_number?: number | undefined;
|
|
4196
|
-
most_frequently_referenced_by_name?: string | undefined;
|
|
4197
4312
|
must_be_connected?: boolean | undefined;
|
|
4313
|
+
provides_power?: boolean | undefined;
|
|
4314
|
+
requires_power?: boolean | undefined;
|
|
4315
|
+
provides_ground?: boolean | undefined;
|
|
4316
|
+
requires_ground?: boolean | undefined;
|
|
4317
|
+
provides_voltage?: string | number | undefined;
|
|
4318
|
+
requires_voltage?: string | number | undefined;
|
|
4319
|
+
do_not_connect?: boolean | undefined;
|
|
4320
|
+
include_in_board_pinout?: boolean | undefined;
|
|
4321
|
+
can_use_internal_pullup?: boolean | undefined;
|
|
4322
|
+
is_using_internal_pullup?: boolean | undefined;
|
|
4323
|
+
needs_external_pullup?: boolean | undefined;
|
|
4324
|
+
can_use_internal_pulldown?: boolean | undefined;
|
|
4325
|
+
is_using_internal_pulldown?: boolean | undefined;
|
|
4326
|
+
needs_external_pulldown?: boolean | undefined;
|
|
4327
|
+
can_use_open_drain?: boolean | undefined;
|
|
4328
|
+
is_using_open_drain?: boolean | undefined;
|
|
4329
|
+
can_use_push_pull?: boolean | undefined;
|
|
4330
|
+
is_using_push_pull?: boolean | undefined;
|
|
4331
|
+
should_have_decoupling_capacitor?: boolean | undefined;
|
|
4332
|
+
recommended_decoupling_capacitor_capacitance?: string | number | undefined;
|
|
4198
4333
|
is_configured_for_i2c_sda?: boolean | undefined;
|
|
4199
4334
|
is_configured_for_i2c_scl?: boolean | undefined;
|
|
4200
4335
|
is_configured_for_spi_mosi?: boolean | undefined;
|
|
@@ -4211,6 +4346,7 @@ declare const transformSchematicElements: (elms: AnyCircuitElement[], matrix: Ma
|
|
|
4211
4346
|
supports_spi_cs?: boolean | undefined;
|
|
4212
4347
|
supports_uart_tx?: boolean | undefined;
|
|
4213
4348
|
supports_uart_rx?: boolean | undefined;
|
|
4349
|
+
most_frequently_referenced_by_name?: string | undefined;
|
|
4214
4350
|
} | {
|
|
4215
4351
|
type: "source_component_internal_connection";
|
|
4216
4352
|
source_component_id: string;
|
|
@@ -4437,6 +4573,20 @@ declare const transformSchematicElements: (elms: AnyCircuitElement[], matrix: Ma
|
|
|
4437
4573
|
display_name?: string | undefined;
|
|
4438
4574
|
are_pins_interchangeable?: boolean | undefined;
|
|
4439
4575
|
internally_connected_source_port_ids?: string[][] | undefined;
|
|
4576
|
+
} | {
|
|
4577
|
+
type: "source_component";
|
|
4578
|
+
name: string;
|
|
4579
|
+
source_component_id: string;
|
|
4580
|
+
ftype: "simple_connector";
|
|
4581
|
+
subcircuit_id?: string | undefined;
|
|
4582
|
+
source_group_id?: string | undefined;
|
|
4583
|
+
manufacturer_part_number?: string | undefined;
|
|
4584
|
+
supplier_part_numbers?: Partial<Record<"jlcpcb" | "macrofab" | "pcbway" | "digikey" | "mouser" | "lcsc", string[]>> | undefined;
|
|
4585
|
+
display_value?: string | undefined;
|
|
4586
|
+
display_name?: string | undefined;
|
|
4587
|
+
are_pins_interchangeable?: boolean | undefined;
|
|
4588
|
+
internally_connected_source_port_ids?: string[][] | undefined;
|
|
4589
|
+
standard?: "usb_c" | "m2" | undefined;
|
|
4440
4590
|
} | {
|
|
4441
4591
|
type: "source_component";
|
|
4442
4592
|
name: string;
|
|
@@ -4615,6 +4765,17 @@ declare const transformSchematicElements: (elms: AnyCircuitElement[], matrix: Ma
|
|
|
4615
4765
|
property_name: string;
|
|
4616
4766
|
subcircuit_id?: string | undefined;
|
|
4617
4767
|
is_fatal?: boolean | undefined;
|
|
4768
|
+
} | {
|
|
4769
|
+
message: string;
|
|
4770
|
+
type: "source_invalid_component_property_error";
|
|
4771
|
+
source_component_id: string;
|
|
4772
|
+
error_type: "source_invalid_component_property_error";
|
|
4773
|
+
property_name: string;
|
|
4774
|
+
source_invalid_component_property_error_id: string;
|
|
4775
|
+
subcircuit_id?: string | undefined;
|
|
4776
|
+
is_fatal?: boolean | undefined;
|
|
4777
|
+
property_value?: unknown;
|
|
4778
|
+
expected_format?: string | undefined;
|
|
4618
4779
|
} | {
|
|
4619
4780
|
message: string;
|
|
4620
4781
|
type: "source_failed_to_create_component_error";
|
|
@@ -4975,6 +5136,17 @@ declare const transformSchematicElements: (elms: AnyCircuitElement[], matrix: Ma
|
|
|
4975
5136
|
software_used_string?: string | undefined;
|
|
4976
5137
|
project_url?: string | undefined;
|
|
4977
5138
|
created_at?: string | undefined;
|
|
5139
|
+
} | {
|
|
5140
|
+
message: string;
|
|
5141
|
+
type: "source_invalid_component_property_error";
|
|
5142
|
+
source_component_id: string;
|
|
5143
|
+
error_type: "source_invalid_component_property_error";
|
|
5144
|
+
property_name: string;
|
|
5145
|
+
source_invalid_component_property_error_id: string;
|
|
5146
|
+
subcircuit_id?: string | undefined;
|
|
5147
|
+
is_fatal?: boolean | undefined;
|
|
5148
|
+
property_value?: unknown;
|
|
5149
|
+
expected_format?: string | undefined;
|
|
4978
5150
|
} | {
|
|
4979
5151
|
message: string;
|
|
4980
5152
|
type: "source_trace_not_connected_error";
|
|
@@ -4994,6 +5166,30 @@ declare const transformSchematicElements: (elms: AnyCircuitElement[], matrix: Ma
|
|
|
4994
5166
|
warning_type: "source_pin_missing_trace_warning";
|
|
4995
5167
|
source_pin_missing_trace_warning_id: string;
|
|
4996
5168
|
subcircuit_id?: string | undefined;
|
|
5169
|
+
} | {
|
|
5170
|
+
message: string;
|
|
5171
|
+
type: "source_no_power_pin_defined_warning";
|
|
5172
|
+
source_component_id: string;
|
|
5173
|
+
warning_type: "source_no_power_pin_defined_warning";
|
|
5174
|
+
source_port_ids: string[];
|
|
5175
|
+
source_no_power_pin_defined_warning_id: string;
|
|
5176
|
+
subcircuit_id?: string | undefined;
|
|
5177
|
+
} | {
|
|
5178
|
+
message: string;
|
|
5179
|
+
type: "source_no_ground_pin_defined_warning";
|
|
5180
|
+
source_component_id: string;
|
|
5181
|
+
warning_type: "source_no_ground_pin_defined_warning";
|
|
5182
|
+
source_port_ids: string[];
|
|
5183
|
+
source_no_ground_pin_defined_warning_id: string;
|
|
5184
|
+
subcircuit_id?: string | undefined;
|
|
5185
|
+
} | {
|
|
5186
|
+
message: string;
|
|
5187
|
+
type: "source_component_pins_underspecified_warning";
|
|
5188
|
+
source_component_id: string;
|
|
5189
|
+
warning_type: "source_component_pins_underspecified_warning";
|
|
5190
|
+
source_port_ids: string[];
|
|
5191
|
+
source_component_pins_underspecified_warning_id: string;
|
|
5192
|
+
subcircuit_id?: string | undefined;
|
|
4997
5193
|
} | {
|
|
4998
5194
|
message: string;
|
|
4999
5195
|
type: "source_pin_must_be_connected_error";
|
|
@@ -5018,18 +5214,26 @@ declare const transformSchematicElements: (elms: AnyCircuitElement[], matrix: Ma
|
|
|
5018
5214
|
source_i2c_misconfigured_error_id: string;
|
|
5019
5215
|
source_port_ids: string[];
|
|
5020
5216
|
is_fatal?: boolean | undefined;
|
|
5217
|
+
} | {
|
|
5218
|
+
message: string;
|
|
5219
|
+
type: "source_ambiguous_port_reference";
|
|
5220
|
+
error_type: "source_ambiguous_port_reference";
|
|
5221
|
+
source_ambiguous_port_reference_id: string;
|
|
5222
|
+
source_component_id?: string | undefined;
|
|
5223
|
+
source_port_id?: string | undefined;
|
|
5224
|
+
is_fatal?: boolean | undefined;
|
|
5021
5225
|
} | {
|
|
5022
5226
|
type: "pcb_component";
|
|
5023
5227
|
width: number;
|
|
5024
5228
|
height: number;
|
|
5025
5229
|
rotation: number;
|
|
5026
5230
|
layer: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6";
|
|
5027
|
-
pcb_component_id: string;
|
|
5028
|
-
source_component_id: string;
|
|
5029
5231
|
center: {
|
|
5030
5232
|
x: number;
|
|
5031
5233
|
y: number;
|
|
5032
5234
|
};
|
|
5235
|
+
pcb_component_id: string;
|
|
5236
|
+
source_component_id: string;
|
|
5033
5237
|
obstructs_within_bounds: boolean;
|
|
5034
5238
|
display_offset_x?: string | undefined;
|
|
5035
5239
|
display_offset_y?: string | undefined;
|
|
@@ -5037,9 +5241,18 @@ declare const transformSchematicElements: (elms: AnyCircuitElement[], matrix: Ma
|
|
|
5037
5241
|
is_allowed_to_be_off_board?: boolean | undefined;
|
|
5038
5242
|
subcircuit_id?: string | undefined;
|
|
5039
5243
|
pcb_group_id?: string | undefined;
|
|
5040
|
-
position_mode?: "packed" | "relative_to_group_anchor" | "none" | undefined;
|
|
5244
|
+
position_mode?: "packed" | "relative_to_group_anchor" | "relative_to_another_component" | "none" | undefined;
|
|
5245
|
+
anchor_position?: {
|
|
5246
|
+
x: number;
|
|
5247
|
+
y: number;
|
|
5248
|
+
} | undefined;
|
|
5249
|
+
anchor_alignment?: "top_left" | "top_center" | "top_right" | "center_left" | "center" | "center_right" | "bottom_left" | "bottom_center" | "bottom_right" | undefined;
|
|
5041
5250
|
positioned_relative_to_pcb_group_id?: string | undefined;
|
|
5042
5251
|
positioned_relative_to_pcb_board_id?: string | undefined;
|
|
5252
|
+
cable_insertion_center?: {
|
|
5253
|
+
x: number;
|
|
5254
|
+
y: number;
|
|
5255
|
+
} | undefined;
|
|
5043
5256
|
metadata?: {
|
|
5044
5257
|
kicad_footprint?: {
|
|
5045
5258
|
layer?: string | undefined;
|
|
@@ -5291,6 +5504,17 @@ declare const transformSchematicElements: (elms: AnyCircuitElement[], matrix: Ma
|
|
|
5291
5504
|
warning_type: "pcb_manual_edit_conflict_warning";
|
|
5292
5505
|
subcircuit_id?: string | undefined;
|
|
5293
5506
|
pcb_group_id?: string | undefined;
|
|
5507
|
+
} | {
|
|
5508
|
+
message: string;
|
|
5509
|
+
type: "pcb_connector_not_in_accessible_orientation_warning";
|
|
5510
|
+
pcb_component_id: string;
|
|
5511
|
+
warning_type: "pcb_connector_not_in_accessible_orientation_warning";
|
|
5512
|
+
pcb_connector_not_in_accessible_orientation_warning_id: string;
|
|
5513
|
+
facing_direction: "x-" | "x+" | "y+" | "y-";
|
|
5514
|
+
recommended_facing_direction: "x-" | "x+" | "y+" | "y-";
|
|
5515
|
+
source_component_id?: string | undefined;
|
|
5516
|
+
subcircuit_id?: string | undefined;
|
|
5517
|
+
pcb_board_id?: string | undefined;
|
|
5294
5518
|
} | {
|
|
5295
5519
|
x: number;
|
|
5296
5520
|
y: number;
|
|
@@ -5720,6 +5944,11 @@ declare const transformSchematicElements: (elms: AnyCircuitElement[], matrix: Ma
|
|
|
5720
5944
|
display_offset_y?: string | undefined;
|
|
5721
5945
|
subcircuit_id?: string | undefined;
|
|
5722
5946
|
position_mode?: "none" | "relative_to_panel_anchor" | undefined;
|
|
5947
|
+
anchor_position?: {
|
|
5948
|
+
x: number;
|
|
5949
|
+
y: number;
|
|
5950
|
+
} | undefined;
|
|
5951
|
+
anchor_alignment?: "top_left" | "top_center" | "top_right" | "center_left" | "center" | "center_right" | "bottom_left" | "bottom_center" | "bottom_right" | undefined;
|
|
5723
5952
|
pcb_panel_id?: string | undefined;
|
|
5724
5953
|
carrier_pcb_board_id?: string | undefined;
|
|
5725
5954
|
is_subcircuit?: boolean | undefined;
|
|
@@ -5728,11 +5957,6 @@ declare const transformSchematicElements: (elms: AnyCircuitElement[], matrix: Ma
|
|
|
5728
5957
|
x: number;
|
|
5729
5958
|
y: number;
|
|
5730
5959
|
}[] | 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
5960
|
} | {
|
|
5737
5961
|
type: "pcb_panel";
|
|
5738
5962
|
width: number;
|
|
@@ -5750,8 +5974,8 @@ declare const transformSchematicElements: (elms: AnyCircuitElement[], matrix: Ma
|
|
|
5750
5974
|
y: number;
|
|
5751
5975
|
};
|
|
5752
5976
|
pcb_group_id: string;
|
|
5977
|
+
anchor_alignment: "top_left" | "top_center" | "top_right" | "center_left" | "center" | "center_right" | "bottom_left" | "bottom_center" | "bottom_right";
|
|
5753
5978
|
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
5979
|
source_group_id: string;
|
|
5756
5980
|
description?: string | undefined;
|
|
5757
5981
|
width?: number | undefined;
|
|
@@ -5761,6 +5985,10 @@ declare const transformSchematicElements: (elms: AnyCircuitElement[], matrix: Ma
|
|
|
5761
5985
|
display_offset_y?: string | undefined;
|
|
5762
5986
|
subcircuit_id?: string | undefined;
|
|
5763
5987
|
position_mode?: "packed" | "relative_to_group_anchor" | "none" | undefined;
|
|
5988
|
+
anchor_position?: {
|
|
5989
|
+
x: number;
|
|
5990
|
+
y: number;
|
|
5991
|
+
} | undefined;
|
|
5764
5992
|
positioned_relative_to_pcb_group_id?: string | undefined;
|
|
5765
5993
|
positioned_relative_to_pcb_board_id?: string | undefined;
|
|
5766
5994
|
is_subcircuit?: boolean | undefined;
|
|
@@ -5768,10 +5996,6 @@ declare const transformSchematicElements: (elms: AnyCircuitElement[], matrix: Ma
|
|
|
5768
5996
|
x: number;
|
|
5769
5997
|
y: number;
|
|
5770
5998
|
}[] | undefined;
|
|
5771
|
-
anchor_position?: {
|
|
5772
|
-
x: number;
|
|
5773
|
-
y: number;
|
|
5774
|
-
} | undefined;
|
|
5775
5999
|
child_layout_mode?: "packed" | "none" | undefined;
|
|
5776
6000
|
layout_mode?: string | undefined;
|
|
5777
6001
|
autorouter_configuration?: {
|
|
@@ -5820,12 +6044,12 @@ declare const transformSchematicElements: (elms: AnyCircuitElement[], matrix: Ma
|
|
|
5820
6044
|
font: "tscircuit2024";
|
|
5821
6045
|
layer: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6";
|
|
5822
6046
|
pcb_component_id: string;
|
|
5823
|
-
text: string;
|
|
5824
6047
|
anchor_position: {
|
|
5825
6048
|
x: number;
|
|
5826
6049
|
y: number;
|
|
5827
6050
|
};
|
|
5828
|
-
anchor_alignment: "
|
|
6051
|
+
anchor_alignment: "top_left" | "top_center" | "top_right" | "center_left" | "center" | "center_right" | "bottom_left" | "bottom_center" | "bottom_right";
|
|
6052
|
+
text: string;
|
|
5829
6053
|
pcb_silkscreen_text_id: string;
|
|
5830
6054
|
font_size: number;
|
|
5831
6055
|
subcircuit_id?: string | undefined;
|
|
@@ -5844,11 +6068,11 @@ declare const transformSchematicElements: (elms: AnyCircuitElement[], matrix: Ma
|
|
|
5844
6068
|
width: number;
|
|
5845
6069
|
height: number;
|
|
5846
6070
|
layer: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6";
|
|
5847
|
-
pcb_component_id: string;
|
|
5848
6071
|
center: {
|
|
5849
6072
|
x: number;
|
|
5850
6073
|
y: number;
|
|
5851
6074
|
};
|
|
6075
|
+
pcb_component_id: string;
|
|
5852
6076
|
pcb_silkscreen_pill_id: string;
|
|
5853
6077
|
subcircuit_id?: string | undefined;
|
|
5854
6078
|
pcb_group_id?: string | undefined;
|
|
@@ -5858,12 +6082,12 @@ declare const transformSchematicElements: (elms: AnyCircuitElement[], matrix: Ma
|
|
|
5858
6082
|
font: "tscircuit2024";
|
|
5859
6083
|
layer: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6";
|
|
5860
6084
|
pcb_component_id: string;
|
|
5861
|
-
text: string;
|
|
5862
6085
|
anchor_position: {
|
|
5863
6086
|
x: number;
|
|
5864
6087
|
y: number;
|
|
5865
6088
|
};
|
|
5866
|
-
anchor_alignment: "
|
|
6089
|
+
anchor_alignment: "top_left" | "top_center" | "top_right" | "center_left" | "center" | "center_right" | "bottom_left" | "bottom_center" | "bottom_right";
|
|
6090
|
+
text: string;
|
|
5867
6091
|
font_size: number;
|
|
5868
6092
|
pcb_copper_text_id: string;
|
|
5869
6093
|
subcircuit_id?: string | undefined;
|
|
@@ -5882,11 +6106,11 @@ declare const transformSchematicElements: (elms: AnyCircuitElement[], matrix: Ma
|
|
|
5882
6106
|
width: number;
|
|
5883
6107
|
height: number;
|
|
5884
6108
|
layer: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6";
|
|
5885
|
-
pcb_component_id: string;
|
|
5886
6109
|
center: {
|
|
5887
6110
|
x: number;
|
|
5888
6111
|
y: number;
|
|
5889
6112
|
};
|
|
6113
|
+
pcb_component_id: string;
|
|
5890
6114
|
stroke_width: number;
|
|
5891
6115
|
pcb_silkscreen_rect_id: string;
|
|
5892
6116
|
subcircuit_id?: string | undefined;
|
|
@@ -5899,11 +6123,11 @@ declare const transformSchematicElements: (elms: AnyCircuitElement[], matrix: Ma
|
|
|
5899
6123
|
} | {
|
|
5900
6124
|
type: "pcb_silkscreen_circle";
|
|
5901
6125
|
layer: "top" | "bottom";
|
|
5902
|
-
pcb_component_id: string;
|
|
5903
6126
|
center: {
|
|
5904
6127
|
x: number;
|
|
5905
6128
|
y: number;
|
|
5906
6129
|
};
|
|
6130
|
+
pcb_component_id: string;
|
|
5907
6131
|
radius: number;
|
|
5908
6132
|
stroke_width: number;
|
|
5909
6133
|
pcb_silkscreen_circle_id: string;
|
|
@@ -5912,11 +6136,11 @@ declare const transformSchematicElements: (elms: AnyCircuitElement[], matrix: Ma
|
|
|
5912
6136
|
} | {
|
|
5913
6137
|
type: "pcb_silkscreen_oval";
|
|
5914
6138
|
layer: "top" | "bottom";
|
|
5915
|
-
pcb_component_id: string;
|
|
5916
6139
|
center: {
|
|
5917
6140
|
x: number;
|
|
5918
6141
|
y: number;
|
|
5919
6142
|
};
|
|
6143
|
+
pcb_component_id: string;
|
|
5920
6144
|
pcb_silkscreen_oval_id: string;
|
|
5921
6145
|
radius_x: number;
|
|
5922
6146
|
radius_y: number;
|
|
@@ -6016,12 +6240,12 @@ declare const transformSchematicElements: (elms: AnyCircuitElement[], matrix: Ma
|
|
|
6016
6240
|
font: "tscircuit2024";
|
|
6017
6241
|
layer: "top" | "bottom";
|
|
6018
6242
|
pcb_component_id: string;
|
|
6019
|
-
text: string;
|
|
6020
6243
|
anchor_position: {
|
|
6021
6244
|
x: number;
|
|
6022
6245
|
y: number;
|
|
6023
6246
|
};
|
|
6024
|
-
anchor_alignment: "
|
|
6247
|
+
anchor_alignment: "top_left" | "top_right" | "center" | "bottom_left" | "bottom_right";
|
|
6248
|
+
text: string;
|
|
6025
6249
|
font_size: number;
|
|
6026
6250
|
pcb_fabrication_note_text_id: string;
|
|
6027
6251
|
subcircuit_id?: string | undefined;
|
|
@@ -6032,11 +6256,11 @@ declare const transformSchematicElements: (elms: AnyCircuitElement[], matrix: Ma
|
|
|
6032
6256
|
width: number;
|
|
6033
6257
|
height: number;
|
|
6034
6258
|
layer: "top" | "bottom";
|
|
6035
|
-
pcb_component_id: string;
|
|
6036
6259
|
center: {
|
|
6037
6260
|
x: number;
|
|
6038
6261
|
y: number;
|
|
6039
6262
|
};
|
|
6263
|
+
pcb_component_id: string;
|
|
6040
6264
|
stroke_width: number;
|
|
6041
6265
|
pcb_fabrication_note_rect_id: string;
|
|
6042
6266
|
subcircuit_id?: string | undefined;
|
|
@@ -6080,7 +6304,7 @@ declare const transformSchematicElements: (elms: AnyCircuitElement[], matrix: Ma
|
|
|
6080
6304
|
x: number;
|
|
6081
6305
|
y: number;
|
|
6082
6306
|
};
|
|
6083
|
-
anchor_alignment: "
|
|
6307
|
+
anchor_alignment: "top_left" | "top_right" | "center" | "bottom_left" | "bottom_right";
|
|
6084
6308
|
font_size: number;
|
|
6085
6309
|
pcb_note_text_id: string;
|
|
6086
6310
|
name?: string | undefined;
|
|
@@ -6381,11 +6605,11 @@ declare const transformSchematicElements: (elms: AnyCircuitElement[], matrix: Ma
|
|
|
6381
6605
|
width: number;
|
|
6382
6606
|
height: number;
|
|
6383
6607
|
layer: "top" | "bottom";
|
|
6384
|
-
pcb_component_id: string;
|
|
6385
6608
|
center: {
|
|
6386
6609
|
x: number;
|
|
6387
6610
|
y: number;
|
|
6388
6611
|
};
|
|
6612
|
+
pcb_component_id: string;
|
|
6389
6613
|
pcb_courtyard_rect_id: string;
|
|
6390
6614
|
subcircuit_id?: string | undefined;
|
|
6391
6615
|
pcb_group_id?: string | undefined;
|
|
@@ -6416,11 +6640,11 @@ declare const transformSchematicElements: (elms: AnyCircuitElement[], matrix: Ma
|
|
|
6416
6640
|
} | {
|
|
6417
6641
|
type: "pcb_courtyard_circle";
|
|
6418
6642
|
layer: "top" | "bottom";
|
|
6419
|
-
pcb_component_id: string;
|
|
6420
6643
|
center: {
|
|
6421
6644
|
x: number;
|
|
6422
6645
|
y: number;
|
|
6423
6646
|
};
|
|
6647
|
+
pcb_component_id: string;
|
|
6424
6648
|
radius: number;
|
|
6425
6649
|
pcb_courtyard_circle_id: string;
|
|
6426
6650
|
subcircuit_id?: string | undefined;
|
|
@@ -6438,7 +6662,7 @@ declare const transformSchematicElements: (elms: AnyCircuitElement[], matrix: Ma
|
|
|
6438
6662
|
schematic_symbol_id?: string | undefined;
|
|
6439
6663
|
} | {
|
|
6440
6664
|
type: "schematic_text";
|
|
6441
|
-
anchor: "top" | "bottom" | "
|
|
6665
|
+
anchor: "top" | "bottom" | "top_left" | "top_center" | "top_right" | "center_left" | "center" | "center_right" | "bottom_left" | "bottom_center" | "bottom_right" | "left" | "right";
|
|
6442
6666
|
rotation: number;
|
|
6443
6667
|
text: string;
|
|
6444
6668
|
font_size: number;
|
|
@@ -7938,8 +8162,8 @@ declare const transformSchematicElements: (elms: AnyCircuitElement[], matrix: Ma
|
|
|
7938
8162
|
source_port_id: string;
|
|
7939
8163
|
schematic_port_id: string;
|
|
7940
8164
|
subcircuit_id?: string | undefined;
|
|
7941
|
-
schematic_component_id?: string | undefined;
|
|
7942
8165
|
facing_direction?: "left" | "right" | "up" | "down" | undefined;
|
|
8166
|
+
schematic_component_id?: string | undefined;
|
|
7943
8167
|
distance_from_component_edge?: number | undefined;
|
|
7944
8168
|
side_of_component?: "top" | "bottom" | "left" | "right" | undefined;
|
|
7945
8169
|
true_ccw_index?: number | undefined;
|
|
@@ -8013,11 +8237,11 @@ declare const transformSchematicElements: (elms: AnyCircuitElement[], matrix: Ma
|
|
|
8013
8237
|
schematic_net_label_id: string;
|
|
8014
8238
|
anchor_side: "top" | "bottom" | "left" | "right";
|
|
8015
8239
|
subcircuit_id?: string | undefined;
|
|
8016
|
-
source_trace_id?: string | undefined;
|
|
8017
8240
|
anchor_position?: {
|
|
8018
8241
|
x: number;
|
|
8019
8242
|
y: number;
|
|
8020
8243
|
} | undefined;
|
|
8244
|
+
source_trace_id?: string | undefined;
|
|
8021
8245
|
symbol_name?: string | undefined;
|
|
8022
8246
|
schematic_trace_id?: string | undefined;
|
|
8023
8247
|
is_movable?: boolean | undefined;
|
|
@@ -8069,7 +8293,7 @@ declare const transformSchematicElements: (elms: AnyCircuitElement[], matrix: Ma
|
|
|
8069
8293
|
subcircuit_id?: string | undefined;
|
|
8070
8294
|
color?: string | undefined;
|
|
8071
8295
|
voltage?: number | undefined;
|
|
8072
|
-
label_alignment?: "
|
|
8296
|
+
label_alignment?: "top_left" | "top_center" | "top_right" | "center_left" | "center" | "center_right" | "bottom_left" | "bottom_center" | "bottom_right" | undefined;
|
|
8073
8297
|
} | {
|
|
8074
8298
|
message: string;
|
|
8075
8299
|
type: "schematic_manual_edit_conflict_warning";
|
|
@@ -8109,7 +8333,7 @@ declare const transformSchematicElements: (elms: AnyCircuitElement[], matrix: Ma
|
|
|
8109
8333
|
schematic_table_id: string;
|
|
8110
8334
|
column_widths: number[];
|
|
8111
8335
|
row_heights: number[];
|
|
8112
|
-
anchor?: "
|
|
8336
|
+
anchor?: "top_left" | "top_center" | "top_right" | "center_left" | "center" | "center_right" | "bottom_left" | "bottom_center" | "bottom_right" | undefined;
|
|
8113
8337
|
subcircuit_id?: string | undefined;
|
|
8114
8338
|
schematic_component_id?: string | undefined;
|
|
8115
8339
|
cell_padding?: number | undefined;
|
|
@@ -8144,6 +8368,7 @@ declare const transformSchematicElements: (elms: AnyCircuitElement[], matrix: Ma
|
|
|
8144
8368
|
z: number;
|
|
8145
8369
|
};
|
|
8146
8370
|
cad_component_id: string;
|
|
8371
|
+
model_object_fit: "contain_within_bounds" | "fill_bounds";
|
|
8147
8372
|
rotation?: {
|
|
8148
8373
|
x: number;
|
|
8149
8374
|
y: number;
|
|
@@ -8170,6 +8395,13 @@ declare const transformSchematicElements: (elms: AnyCircuitElement[], matrix: Ma
|
|
|
8170
8395
|
mimetype: string;
|
|
8171
8396
|
} | undefined;
|
|
8172
8397
|
model_unit_to_mm_scale_factor?: number | undefined;
|
|
8398
|
+
model_board_normal_direction?: "y+" | "z+" | undefined;
|
|
8399
|
+
model_origin_position?: {
|
|
8400
|
+
x: number;
|
|
8401
|
+
y: number;
|
|
8402
|
+
z: number;
|
|
8403
|
+
} | undefined;
|
|
8404
|
+
model_origin_alignment?: "unknown" | "center" | "center_of_component_on_board_surface" | undefined;
|
|
8173
8405
|
model_jscad?: any;
|
|
8174
8406
|
show_as_translucent_model?: boolean | undefined;
|
|
8175
8407
|
} | {
|
|
@@ -8296,8 +8528,27 @@ declare const transformPCBElement: (elm: AnyCircuitElement, matrix: Matrix) => {
|
|
|
8296
8528
|
subcircuit_connectivity_map_key?: string | undefined;
|
|
8297
8529
|
source_group_id?: string | undefined;
|
|
8298
8530
|
pin_number?: number | undefined;
|
|
8299
|
-
most_frequently_referenced_by_name?: string | undefined;
|
|
8300
8531
|
must_be_connected?: boolean | undefined;
|
|
8532
|
+
provides_power?: boolean | undefined;
|
|
8533
|
+
requires_power?: boolean | undefined;
|
|
8534
|
+
provides_ground?: boolean | undefined;
|
|
8535
|
+
requires_ground?: boolean | undefined;
|
|
8536
|
+
provides_voltage?: string | number | undefined;
|
|
8537
|
+
requires_voltage?: string | number | undefined;
|
|
8538
|
+
do_not_connect?: boolean | undefined;
|
|
8539
|
+
include_in_board_pinout?: boolean | undefined;
|
|
8540
|
+
can_use_internal_pullup?: boolean | undefined;
|
|
8541
|
+
is_using_internal_pullup?: boolean | undefined;
|
|
8542
|
+
needs_external_pullup?: boolean | undefined;
|
|
8543
|
+
can_use_internal_pulldown?: boolean | undefined;
|
|
8544
|
+
is_using_internal_pulldown?: boolean | undefined;
|
|
8545
|
+
needs_external_pulldown?: boolean | undefined;
|
|
8546
|
+
can_use_open_drain?: boolean | undefined;
|
|
8547
|
+
is_using_open_drain?: boolean | undefined;
|
|
8548
|
+
can_use_push_pull?: boolean | undefined;
|
|
8549
|
+
is_using_push_pull?: boolean | undefined;
|
|
8550
|
+
should_have_decoupling_capacitor?: boolean | undefined;
|
|
8551
|
+
recommended_decoupling_capacitor_capacitance?: string | number | undefined;
|
|
8301
8552
|
is_configured_for_i2c_sda?: boolean | undefined;
|
|
8302
8553
|
is_configured_for_i2c_scl?: boolean | undefined;
|
|
8303
8554
|
is_configured_for_spi_mosi?: boolean | undefined;
|
|
@@ -8314,6 +8565,7 @@ declare const transformPCBElement: (elm: AnyCircuitElement, matrix: Matrix) => {
|
|
|
8314
8565
|
supports_spi_cs?: boolean | undefined;
|
|
8315
8566
|
supports_uart_tx?: boolean | undefined;
|
|
8316
8567
|
supports_uart_rx?: boolean | undefined;
|
|
8568
|
+
most_frequently_referenced_by_name?: string | undefined;
|
|
8317
8569
|
} | {
|
|
8318
8570
|
type: "source_component_internal_connection";
|
|
8319
8571
|
source_component_id: string;
|
|
@@ -8540,6 +8792,20 @@ declare const transformPCBElement: (elm: AnyCircuitElement, matrix: Matrix) => {
|
|
|
8540
8792
|
display_name?: string | undefined;
|
|
8541
8793
|
are_pins_interchangeable?: boolean | undefined;
|
|
8542
8794
|
internally_connected_source_port_ids?: string[][] | undefined;
|
|
8795
|
+
} | {
|
|
8796
|
+
type: "source_component";
|
|
8797
|
+
name: string;
|
|
8798
|
+
source_component_id: string;
|
|
8799
|
+
ftype: "simple_connector";
|
|
8800
|
+
subcircuit_id?: string | undefined;
|
|
8801
|
+
source_group_id?: string | undefined;
|
|
8802
|
+
manufacturer_part_number?: string | undefined;
|
|
8803
|
+
supplier_part_numbers?: Partial<Record<"jlcpcb" | "macrofab" | "pcbway" | "digikey" | "mouser" | "lcsc", string[]>> | undefined;
|
|
8804
|
+
display_value?: string | undefined;
|
|
8805
|
+
display_name?: string | undefined;
|
|
8806
|
+
are_pins_interchangeable?: boolean | undefined;
|
|
8807
|
+
internally_connected_source_port_ids?: string[][] | undefined;
|
|
8808
|
+
standard?: "usb_c" | "m2" | undefined;
|
|
8543
8809
|
} | {
|
|
8544
8810
|
type: "source_component";
|
|
8545
8811
|
name: string;
|
|
@@ -8718,6 +8984,17 @@ declare const transformPCBElement: (elm: AnyCircuitElement, matrix: Matrix) => {
|
|
|
8718
8984
|
property_name: string;
|
|
8719
8985
|
subcircuit_id?: string | undefined;
|
|
8720
8986
|
is_fatal?: boolean | undefined;
|
|
8987
|
+
} | {
|
|
8988
|
+
message: string;
|
|
8989
|
+
type: "source_invalid_component_property_error";
|
|
8990
|
+
source_component_id: string;
|
|
8991
|
+
error_type: "source_invalid_component_property_error";
|
|
8992
|
+
property_name: string;
|
|
8993
|
+
source_invalid_component_property_error_id: string;
|
|
8994
|
+
subcircuit_id?: string | undefined;
|
|
8995
|
+
is_fatal?: boolean | undefined;
|
|
8996
|
+
property_value?: unknown;
|
|
8997
|
+
expected_format?: string | undefined;
|
|
8721
8998
|
} | {
|
|
8722
8999
|
message: string;
|
|
8723
9000
|
type: "source_failed_to_create_component_error";
|
|
@@ -9078,6 +9355,17 @@ declare const transformPCBElement: (elm: AnyCircuitElement, matrix: Matrix) => {
|
|
|
9078
9355
|
software_used_string?: string | undefined;
|
|
9079
9356
|
project_url?: string | undefined;
|
|
9080
9357
|
created_at?: string | undefined;
|
|
9358
|
+
} | {
|
|
9359
|
+
message: string;
|
|
9360
|
+
type: "source_invalid_component_property_error";
|
|
9361
|
+
source_component_id: string;
|
|
9362
|
+
error_type: "source_invalid_component_property_error";
|
|
9363
|
+
property_name: string;
|
|
9364
|
+
source_invalid_component_property_error_id: string;
|
|
9365
|
+
subcircuit_id?: string | undefined;
|
|
9366
|
+
is_fatal?: boolean | undefined;
|
|
9367
|
+
property_value?: unknown;
|
|
9368
|
+
expected_format?: string | undefined;
|
|
9081
9369
|
} | {
|
|
9082
9370
|
message: string;
|
|
9083
9371
|
type: "source_trace_not_connected_error";
|
|
@@ -9097,6 +9385,30 @@ declare const transformPCBElement: (elm: AnyCircuitElement, matrix: Matrix) => {
|
|
|
9097
9385
|
warning_type: "source_pin_missing_trace_warning";
|
|
9098
9386
|
source_pin_missing_trace_warning_id: string;
|
|
9099
9387
|
subcircuit_id?: string | undefined;
|
|
9388
|
+
} | {
|
|
9389
|
+
message: string;
|
|
9390
|
+
type: "source_no_power_pin_defined_warning";
|
|
9391
|
+
source_component_id: string;
|
|
9392
|
+
warning_type: "source_no_power_pin_defined_warning";
|
|
9393
|
+
source_port_ids: string[];
|
|
9394
|
+
source_no_power_pin_defined_warning_id: string;
|
|
9395
|
+
subcircuit_id?: string | undefined;
|
|
9396
|
+
} | {
|
|
9397
|
+
message: string;
|
|
9398
|
+
type: "source_no_ground_pin_defined_warning";
|
|
9399
|
+
source_component_id: string;
|
|
9400
|
+
warning_type: "source_no_ground_pin_defined_warning";
|
|
9401
|
+
source_port_ids: string[];
|
|
9402
|
+
source_no_ground_pin_defined_warning_id: string;
|
|
9403
|
+
subcircuit_id?: string | undefined;
|
|
9404
|
+
} | {
|
|
9405
|
+
message: string;
|
|
9406
|
+
type: "source_component_pins_underspecified_warning";
|
|
9407
|
+
source_component_id: string;
|
|
9408
|
+
warning_type: "source_component_pins_underspecified_warning";
|
|
9409
|
+
source_port_ids: string[];
|
|
9410
|
+
source_component_pins_underspecified_warning_id: string;
|
|
9411
|
+
subcircuit_id?: string | undefined;
|
|
9100
9412
|
} | {
|
|
9101
9413
|
message: string;
|
|
9102
9414
|
type: "source_pin_must_be_connected_error";
|
|
@@ -9121,18 +9433,26 @@ declare const transformPCBElement: (elm: AnyCircuitElement, matrix: Matrix) => {
|
|
|
9121
9433
|
source_i2c_misconfigured_error_id: string;
|
|
9122
9434
|
source_port_ids: string[];
|
|
9123
9435
|
is_fatal?: boolean | undefined;
|
|
9436
|
+
} | {
|
|
9437
|
+
message: string;
|
|
9438
|
+
type: "source_ambiguous_port_reference";
|
|
9439
|
+
error_type: "source_ambiguous_port_reference";
|
|
9440
|
+
source_ambiguous_port_reference_id: string;
|
|
9441
|
+
source_component_id?: string | undefined;
|
|
9442
|
+
source_port_id?: string | undefined;
|
|
9443
|
+
is_fatal?: boolean | undefined;
|
|
9124
9444
|
} | {
|
|
9125
9445
|
type: "pcb_component";
|
|
9126
9446
|
width: number;
|
|
9127
9447
|
height: number;
|
|
9128
9448
|
rotation: number;
|
|
9129
9449
|
layer: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6";
|
|
9130
|
-
pcb_component_id: string;
|
|
9131
|
-
source_component_id: string;
|
|
9132
9450
|
center: {
|
|
9133
9451
|
x: number;
|
|
9134
9452
|
y: number;
|
|
9135
9453
|
};
|
|
9454
|
+
pcb_component_id: string;
|
|
9455
|
+
source_component_id: string;
|
|
9136
9456
|
obstructs_within_bounds: boolean;
|
|
9137
9457
|
display_offset_x?: string | undefined;
|
|
9138
9458
|
display_offset_y?: string | undefined;
|
|
@@ -9140,9 +9460,18 @@ declare const transformPCBElement: (elm: AnyCircuitElement, matrix: Matrix) => {
|
|
|
9140
9460
|
is_allowed_to_be_off_board?: boolean | undefined;
|
|
9141
9461
|
subcircuit_id?: string | undefined;
|
|
9142
9462
|
pcb_group_id?: string | undefined;
|
|
9143
|
-
position_mode?: "packed" | "relative_to_group_anchor" | "none" | undefined;
|
|
9463
|
+
position_mode?: "packed" | "relative_to_group_anchor" | "relative_to_another_component" | "none" | undefined;
|
|
9464
|
+
anchor_position?: {
|
|
9465
|
+
x: number;
|
|
9466
|
+
y: number;
|
|
9467
|
+
} | undefined;
|
|
9468
|
+
anchor_alignment?: "top_left" | "top_center" | "top_right" | "center_left" | "center" | "center_right" | "bottom_left" | "bottom_center" | "bottom_right" | undefined;
|
|
9144
9469
|
positioned_relative_to_pcb_group_id?: string | undefined;
|
|
9145
9470
|
positioned_relative_to_pcb_board_id?: string | undefined;
|
|
9471
|
+
cable_insertion_center?: {
|
|
9472
|
+
x: number;
|
|
9473
|
+
y: number;
|
|
9474
|
+
} | undefined;
|
|
9146
9475
|
metadata?: {
|
|
9147
9476
|
kicad_footprint?: {
|
|
9148
9477
|
layer?: string | undefined;
|
|
@@ -9394,6 +9723,17 @@ declare const transformPCBElement: (elm: AnyCircuitElement, matrix: Matrix) => {
|
|
|
9394
9723
|
warning_type: "pcb_manual_edit_conflict_warning";
|
|
9395
9724
|
subcircuit_id?: string | undefined;
|
|
9396
9725
|
pcb_group_id?: string | undefined;
|
|
9726
|
+
} | {
|
|
9727
|
+
message: string;
|
|
9728
|
+
type: "pcb_connector_not_in_accessible_orientation_warning";
|
|
9729
|
+
pcb_component_id: string;
|
|
9730
|
+
warning_type: "pcb_connector_not_in_accessible_orientation_warning";
|
|
9731
|
+
pcb_connector_not_in_accessible_orientation_warning_id: string;
|
|
9732
|
+
facing_direction: "x-" | "x+" | "y+" | "y-";
|
|
9733
|
+
recommended_facing_direction: "x-" | "x+" | "y+" | "y-";
|
|
9734
|
+
source_component_id?: string | undefined;
|
|
9735
|
+
subcircuit_id?: string | undefined;
|
|
9736
|
+
pcb_board_id?: string | undefined;
|
|
9397
9737
|
} | {
|
|
9398
9738
|
x: number;
|
|
9399
9739
|
y: number;
|
|
@@ -9823,6 +10163,11 @@ declare const transformPCBElement: (elm: AnyCircuitElement, matrix: Matrix) => {
|
|
|
9823
10163
|
display_offset_y?: string | undefined;
|
|
9824
10164
|
subcircuit_id?: string | undefined;
|
|
9825
10165
|
position_mode?: "none" | "relative_to_panel_anchor" | undefined;
|
|
10166
|
+
anchor_position?: {
|
|
10167
|
+
x: number;
|
|
10168
|
+
y: number;
|
|
10169
|
+
} | undefined;
|
|
10170
|
+
anchor_alignment?: "top_left" | "top_center" | "top_right" | "center_left" | "center" | "center_right" | "bottom_left" | "bottom_center" | "bottom_right" | undefined;
|
|
9826
10171
|
pcb_panel_id?: string | undefined;
|
|
9827
10172
|
carrier_pcb_board_id?: string | undefined;
|
|
9828
10173
|
is_subcircuit?: boolean | undefined;
|
|
@@ -9831,11 +10176,6 @@ declare const transformPCBElement: (elm: AnyCircuitElement, matrix: Matrix) => {
|
|
|
9831
10176
|
x: number;
|
|
9832
10177
|
y: number;
|
|
9833
10178
|
}[] | 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
10179
|
} | {
|
|
9840
10180
|
type: "pcb_panel";
|
|
9841
10181
|
width: number;
|
|
@@ -9853,8 +10193,8 @@ declare const transformPCBElement: (elm: AnyCircuitElement, matrix: Matrix) => {
|
|
|
9853
10193
|
y: number;
|
|
9854
10194
|
};
|
|
9855
10195
|
pcb_group_id: string;
|
|
10196
|
+
anchor_alignment: "top_left" | "top_center" | "top_right" | "center_left" | "center" | "center_right" | "bottom_left" | "bottom_center" | "bottom_right";
|
|
9856
10197
|
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
10198
|
source_group_id: string;
|
|
9859
10199
|
description?: string | undefined;
|
|
9860
10200
|
width?: number | undefined;
|
|
@@ -9864,6 +10204,10 @@ declare const transformPCBElement: (elm: AnyCircuitElement, matrix: Matrix) => {
|
|
|
9864
10204
|
display_offset_y?: string | undefined;
|
|
9865
10205
|
subcircuit_id?: string | undefined;
|
|
9866
10206
|
position_mode?: "packed" | "relative_to_group_anchor" | "none" | undefined;
|
|
10207
|
+
anchor_position?: {
|
|
10208
|
+
x: number;
|
|
10209
|
+
y: number;
|
|
10210
|
+
} | undefined;
|
|
9867
10211
|
positioned_relative_to_pcb_group_id?: string | undefined;
|
|
9868
10212
|
positioned_relative_to_pcb_board_id?: string | undefined;
|
|
9869
10213
|
is_subcircuit?: boolean | undefined;
|
|
@@ -9871,10 +10215,6 @@ declare const transformPCBElement: (elm: AnyCircuitElement, matrix: Matrix) => {
|
|
|
9871
10215
|
x: number;
|
|
9872
10216
|
y: number;
|
|
9873
10217
|
}[] | undefined;
|
|
9874
|
-
anchor_position?: {
|
|
9875
|
-
x: number;
|
|
9876
|
-
y: number;
|
|
9877
|
-
} | undefined;
|
|
9878
10218
|
child_layout_mode?: "packed" | "none" | undefined;
|
|
9879
10219
|
layout_mode?: string | undefined;
|
|
9880
10220
|
autorouter_configuration?: {
|
|
@@ -9923,12 +10263,12 @@ declare const transformPCBElement: (elm: AnyCircuitElement, matrix: Matrix) => {
|
|
|
9923
10263
|
font: "tscircuit2024";
|
|
9924
10264
|
layer: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6";
|
|
9925
10265
|
pcb_component_id: string;
|
|
9926
|
-
text: string;
|
|
9927
10266
|
anchor_position: {
|
|
9928
10267
|
x: number;
|
|
9929
10268
|
y: number;
|
|
9930
10269
|
};
|
|
9931
|
-
anchor_alignment: "
|
|
10270
|
+
anchor_alignment: "top_left" | "top_center" | "top_right" | "center_left" | "center" | "center_right" | "bottom_left" | "bottom_center" | "bottom_right";
|
|
10271
|
+
text: string;
|
|
9932
10272
|
pcb_silkscreen_text_id: string;
|
|
9933
10273
|
font_size: number;
|
|
9934
10274
|
subcircuit_id?: string | undefined;
|
|
@@ -9947,11 +10287,11 @@ declare const transformPCBElement: (elm: AnyCircuitElement, matrix: Matrix) => {
|
|
|
9947
10287
|
width: number;
|
|
9948
10288
|
height: number;
|
|
9949
10289
|
layer: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6";
|
|
9950
|
-
pcb_component_id: string;
|
|
9951
10290
|
center: {
|
|
9952
10291
|
x: number;
|
|
9953
10292
|
y: number;
|
|
9954
10293
|
};
|
|
10294
|
+
pcb_component_id: string;
|
|
9955
10295
|
pcb_silkscreen_pill_id: string;
|
|
9956
10296
|
subcircuit_id?: string | undefined;
|
|
9957
10297
|
pcb_group_id?: string | undefined;
|
|
@@ -9961,12 +10301,12 @@ declare const transformPCBElement: (elm: AnyCircuitElement, matrix: Matrix) => {
|
|
|
9961
10301
|
font: "tscircuit2024";
|
|
9962
10302
|
layer: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6";
|
|
9963
10303
|
pcb_component_id: string;
|
|
9964
|
-
text: string;
|
|
9965
10304
|
anchor_position: {
|
|
9966
10305
|
x: number;
|
|
9967
10306
|
y: number;
|
|
9968
10307
|
};
|
|
9969
|
-
anchor_alignment: "
|
|
10308
|
+
anchor_alignment: "top_left" | "top_center" | "top_right" | "center_left" | "center" | "center_right" | "bottom_left" | "bottom_center" | "bottom_right";
|
|
10309
|
+
text: string;
|
|
9970
10310
|
font_size: number;
|
|
9971
10311
|
pcb_copper_text_id: string;
|
|
9972
10312
|
subcircuit_id?: string | undefined;
|
|
@@ -9985,11 +10325,11 @@ declare const transformPCBElement: (elm: AnyCircuitElement, matrix: Matrix) => {
|
|
|
9985
10325
|
width: number;
|
|
9986
10326
|
height: number;
|
|
9987
10327
|
layer: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6";
|
|
9988
|
-
pcb_component_id: string;
|
|
9989
10328
|
center: {
|
|
9990
10329
|
x: number;
|
|
9991
10330
|
y: number;
|
|
9992
10331
|
};
|
|
10332
|
+
pcb_component_id: string;
|
|
9993
10333
|
stroke_width: number;
|
|
9994
10334
|
pcb_silkscreen_rect_id: string;
|
|
9995
10335
|
subcircuit_id?: string | undefined;
|
|
@@ -10002,11 +10342,11 @@ declare const transformPCBElement: (elm: AnyCircuitElement, matrix: Matrix) => {
|
|
|
10002
10342
|
} | {
|
|
10003
10343
|
type: "pcb_silkscreen_circle";
|
|
10004
10344
|
layer: "top" | "bottom";
|
|
10005
|
-
pcb_component_id: string;
|
|
10006
10345
|
center: {
|
|
10007
10346
|
x: number;
|
|
10008
10347
|
y: number;
|
|
10009
10348
|
};
|
|
10349
|
+
pcb_component_id: string;
|
|
10010
10350
|
radius: number;
|
|
10011
10351
|
stroke_width: number;
|
|
10012
10352
|
pcb_silkscreen_circle_id: string;
|
|
@@ -10015,11 +10355,11 @@ declare const transformPCBElement: (elm: AnyCircuitElement, matrix: Matrix) => {
|
|
|
10015
10355
|
} | {
|
|
10016
10356
|
type: "pcb_silkscreen_oval";
|
|
10017
10357
|
layer: "top" | "bottom";
|
|
10018
|
-
pcb_component_id: string;
|
|
10019
10358
|
center: {
|
|
10020
10359
|
x: number;
|
|
10021
10360
|
y: number;
|
|
10022
10361
|
};
|
|
10362
|
+
pcb_component_id: string;
|
|
10023
10363
|
pcb_silkscreen_oval_id: string;
|
|
10024
10364
|
radius_x: number;
|
|
10025
10365
|
radius_y: number;
|
|
@@ -10119,12 +10459,12 @@ declare const transformPCBElement: (elm: AnyCircuitElement, matrix: Matrix) => {
|
|
|
10119
10459
|
font: "tscircuit2024";
|
|
10120
10460
|
layer: "top" | "bottom";
|
|
10121
10461
|
pcb_component_id: string;
|
|
10122
|
-
text: string;
|
|
10123
10462
|
anchor_position: {
|
|
10124
10463
|
x: number;
|
|
10125
10464
|
y: number;
|
|
10126
10465
|
};
|
|
10127
|
-
anchor_alignment: "
|
|
10466
|
+
anchor_alignment: "top_left" | "top_right" | "center" | "bottom_left" | "bottom_right";
|
|
10467
|
+
text: string;
|
|
10128
10468
|
font_size: number;
|
|
10129
10469
|
pcb_fabrication_note_text_id: string;
|
|
10130
10470
|
subcircuit_id?: string | undefined;
|
|
@@ -10135,11 +10475,11 @@ declare const transformPCBElement: (elm: AnyCircuitElement, matrix: Matrix) => {
|
|
|
10135
10475
|
width: number;
|
|
10136
10476
|
height: number;
|
|
10137
10477
|
layer: "top" | "bottom";
|
|
10138
|
-
pcb_component_id: string;
|
|
10139
10478
|
center: {
|
|
10140
10479
|
x: number;
|
|
10141
10480
|
y: number;
|
|
10142
10481
|
};
|
|
10482
|
+
pcb_component_id: string;
|
|
10143
10483
|
stroke_width: number;
|
|
10144
10484
|
pcb_fabrication_note_rect_id: string;
|
|
10145
10485
|
subcircuit_id?: string | undefined;
|
|
@@ -10183,7 +10523,7 @@ declare const transformPCBElement: (elm: AnyCircuitElement, matrix: Matrix) => {
|
|
|
10183
10523
|
x: number;
|
|
10184
10524
|
y: number;
|
|
10185
10525
|
};
|
|
10186
|
-
anchor_alignment: "
|
|
10526
|
+
anchor_alignment: "top_left" | "top_right" | "center" | "bottom_left" | "bottom_right";
|
|
10187
10527
|
font_size: number;
|
|
10188
10528
|
pcb_note_text_id: string;
|
|
10189
10529
|
name?: string | undefined;
|
|
@@ -10484,11 +10824,11 @@ declare const transformPCBElement: (elm: AnyCircuitElement, matrix: Matrix) => {
|
|
|
10484
10824
|
width: number;
|
|
10485
10825
|
height: number;
|
|
10486
10826
|
layer: "top" | "bottom";
|
|
10487
|
-
pcb_component_id: string;
|
|
10488
10827
|
center: {
|
|
10489
10828
|
x: number;
|
|
10490
10829
|
y: number;
|
|
10491
10830
|
};
|
|
10831
|
+
pcb_component_id: string;
|
|
10492
10832
|
pcb_courtyard_rect_id: string;
|
|
10493
10833
|
subcircuit_id?: string | undefined;
|
|
10494
10834
|
pcb_group_id?: string | undefined;
|
|
@@ -10519,11 +10859,11 @@ declare const transformPCBElement: (elm: AnyCircuitElement, matrix: Matrix) => {
|
|
|
10519
10859
|
} | {
|
|
10520
10860
|
type: "pcb_courtyard_circle";
|
|
10521
10861
|
layer: "top" | "bottom";
|
|
10522
|
-
pcb_component_id: string;
|
|
10523
10862
|
center: {
|
|
10524
10863
|
x: number;
|
|
10525
10864
|
y: number;
|
|
10526
10865
|
};
|
|
10866
|
+
pcb_component_id: string;
|
|
10527
10867
|
radius: number;
|
|
10528
10868
|
pcb_courtyard_circle_id: string;
|
|
10529
10869
|
subcircuit_id?: string | undefined;
|
|
@@ -10541,7 +10881,7 @@ declare const transformPCBElement: (elm: AnyCircuitElement, matrix: Matrix) => {
|
|
|
10541
10881
|
schematic_symbol_id?: string | undefined;
|
|
10542
10882
|
} | {
|
|
10543
10883
|
type: "schematic_text";
|
|
10544
|
-
anchor: "top" | "bottom" | "
|
|
10884
|
+
anchor: "top" | "bottom" | "top_left" | "top_center" | "top_right" | "center_left" | "center" | "center_right" | "bottom_left" | "bottom_center" | "bottom_right" | "left" | "right";
|
|
10545
10885
|
rotation: number;
|
|
10546
10886
|
text: string;
|
|
10547
10887
|
font_size: number;
|
|
@@ -12041,8 +12381,8 @@ declare const transformPCBElement: (elm: AnyCircuitElement, matrix: Matrix) => {
|
|
|
12041
12381
|
source_port_id: string;
|
|
12042
12382
|
schematic_port_id: string;
|
|
12043
12383
|
subcircuit_id?: string | undefined;
|
|
12044
|
-
schematic_component_id?: string | undefined;
|
|
12045
12384
|
facing_direction?: "left" | "right" | "up" | "down" | undefined;
|
|
12385
|
+
schematic_component_id?: string | undefined;
|
|
12046
12386
|
distance_from_component_edge?: number | undefined;
|
|
12047
12387
|
side_of_component?: "top" | "bottom" | "left" | "right" | undefined;
|
|
12048
12388
|
true_ccw_index?: number | undefined;
|
|
@@ -12116,11 +12456,11 @@ declare const transformPCBElement: (elm: AnyCircuitElement, matrix: Matrix) => {
|
|
|
12116
12456
|
schematic_net_label_id: string;
|
|
12117
12457
|
anchor_side: "top" | "bottom" | "left" | "right";
|
|
12118
12458
|
subcircuit_id?: string | undefined;
|
|
12119
|
-
source_trace_id?: string | undefined;
|
|
12120
12459
|
anchor_position?: {
|
|
12121
12460
|
x: number;
|
|
12122
12461
|
y: number;
|
|
12123
12462
|
} | undefined;
|
|
12463
|
+
source_trace_id?: string | undefined;
|
|
12124
12464
|
symbol_name?: string | undefined;
|
|
12125
12465
|
schematic_trace_id?: string | undefined;
|
|
12126
12466
|
is_movable?: boolean | undefined;
|
|
@@ -12172,7 +12512,7 @@ declare const transformPCBElement: (elm: AnyCircuitElement, matrix: Matrix) => {
|
|
|
12172
12512
|
subcircuit_id?: string | undefined;
|
|
12173
12513
|
color?: string | undefined;
|
|
12174
12514
|
voltage?: number | undefined;
|
|
12175
|
-
label_alignment?: "
|
|
12515
|
+
label_alignment?: "top_left" | "top_center" | "top_right" | "center_left" | "center" | "center_right" | "bottom_left" | "bottom_center" | "bottom_right" | undefined;
|
|
12176
12516
|
} | {
|
|
12177
12517
|
message: string;
|
|
12178
12518
|
type: "schematic_manual_edit_conflict_warning";
|
|
@@ -12212,7 +12552,7 @@ declare const transformPCBElement: (elm: AnyCircuitElement, matrix: Matrix) => {
|
|
|
12212
12552
|
schematic_table_id: string;
|
|
12213
12553
|
column_widths: number[];
|
|
12214
12554
|
row_heights: number[];
|
|
12215
|
-
anchor?: "
|
|
12555
|
+
anchor?: "top_left" | "top_center" | "top_right" | "center_left" | "center" | "center_right" | "bottom_left" | "bottom_center" | "bottom_right" | undefined;
|
|
12216
12556
|
subcircuit_id?: string | undefined;
|
|
12217
12557
|
schematic_component_id?: string | undefined;
|
|
12218
12558
|
cell_padding?: number | undefined;
|
|
@@ -12247,6 +12587,7 @@ declare const transformPCBElement: (elm: AnyCircuitElement, matrix: Matrix) => {
|
|
|
12247
12587
|
z: number;
|
|
12248
12588
|
};
|
|
12249
12589
|
cad_component_id: string;
|
|
12590
|
+
model_object_fit: "contain_within_bounds" | "fill_bounds";
|
|
12250
12591
|
rotation?: {
|
|
12251
12592
|
x: number;
|
|
12252
12593
|
y: number;
|
|
@@ -12273,6 +12614,13 @@ declare const transformPCBElement: (elm: AnyCircuitElement, matrix: Matrix) => {
|
|
|
12273
12614
|
mimetype: string;
|
|
12274
12615
|
} | undefined;
|
|
12275
12616
|
model_unit_to_mm_scale_factor?: number | undefined;
|
|
12617
|
+
model_board_normal_direction?: "y+" | "z+" | undefined;
|
|
12618
|
+
model_origin_position?: {
|
|
12619
|
+
x: number;
|
|
12620
|
+
y: number;
|
|
12621
|
+
z: number;
|
|
12622
|
+
} | undefined;
|
|
12623
|
+
model_origin_alignment?: "unknown" | "center" | "center_of_component_on_board_surface" | undefined;
|
|
12276
12624
|
model_jscad?: any;
|
|
12277
12625
|
show_as_translucent_model?: boolean | undefined;
|
|
12278
12626
|
} | {
|
|
@@ -12399,8 +12747,27 @@ declare const transformPCBElements: (elms: AnyCircuitElement[], matrix: Matrix)
|
|
|
12399
12747
|
subcircuit_connectivity_map_key?: string | undefined;
|
|
12400
12748
|
source_group_id?: string | undefined;
|
|
12401
12749
|
pin_number?: number | undefined;
|
|
12402
|
-
most_frequently_referenced_by_name?: string | undefined;
|
|
12403
12750
|
must_be_connected?: boolean | undefined;
|
|
12751
|
+
provides_power?: boolean | undefined;
|
|
12752
|
+
requires_power?: boolean | undefined;
|
|
12753
|
+
provides_ground?: boolean | undefined;
|
|
12754
|
+
requires_ground?: boolean | undefined;
|
|
12755
|
+
provides_voltage?: string | number | undefined;
|
|
12756
|
+
requires_voltage?: string | number | undefined;
|
|
12757
|
+
do_not_connect?: boolean | undefined;
|
|
12758
|
+
include_in_board_pinout?: boolean | undefined;
|
|
12759
|
+
can_use_internal_pullup?: boolean | undefined;
|
|
12760
|
+
is_using_internal_pullup?: boolean | undefined;
|
|
12761
|
+
needs_external_pullup?: boolean | undefined;
|
|
12762
|
+
can_use_internal_pulldown?: boolean | undefined;
|
|
12763
|
+
is_using_internal_pulldown?: boolean | undefined;
|
|
12764
|
+
needs_external_pulldown?: boolean | undefined;
|
|
12765
|
+
can_use_open_drain?: boolean | undefined;
|
|
12766
|
+
is_using_open_drain?: boolean | undefined;
|
|
12767
|
+
can_use_push_pull?: boolean | undefined;
|
|
12768
|
+
is_using_push_pull?: boolean | undefined;
|
|
12769
|
+
should_have_decoupling_capacitor?: boolean | undefined;
|
|
12770
|
+
recommended_decoupling_capacitor_capacitance?: string | number | undefined;
|
|
12404
12771
|
is_configured_for_i2c_sda?: boolean | undefined;
|
|
12405
12772
|
is_configured_for_i2c_scl?: boolean | undefined;
|
|
12406
12773
|
is_configured_for_spi_mosi?: boolean | undefined;
|
|
@@ -12417,6 +12784,7 @@ declare const transformPCBElements: (elms: AnyCircuitElement[], matrix: Matrix)
|
|
|
12417
12784
|
supports_spi_cs?: boolean | undefined;
|
|
12418
12785
|
supports_uart_tx?: boolean | undefined;
|
|
12419
12786
|
supports_uart_rx?: boolean | undefined;
|
|
12787
|
+
most_frequently_referenced_by_name?: string | undefined;
|
|
12420
12788
|
} | {
|
|
12421
12789
|
type: "source_component_internal_connection";
|
|
12422
12790
|
source_component_id: string;
|
|
@@ -12643,6 +13011,20 @@ declare const transformPCBElements: (elms: AnyCircuitElement[], matrix: Matrix)
|
|
|
12643
13011
|
display_name?: string | undefined;
|
|
12644
13012
|
are_pins_interchangeable?: boolean | undefined;
|
|
12645
13013
|
internally_connected_source_port_ids?: string[][] | undefined;
|
|
13014
|
+
} | {
|
|
13015
|
+
type: "source_component";
|
|
13016
|
+
name: string;
|
|
13017
|
+
source_component_id: string;
|
|
13018
|
+
ftype: "simple_connector";
|
|
13019
|
+
subcircuit_id?: string | undefined;
|
|
13020
|
+
source_group_id?: string | undefined;
|
|
13021
|
+
manufacturer_part_number?: string | undefined;
|
|
13022
|
+
supplier_part_numbers?: Partial<Record<"jlcpcb" | "macrofab" | "pcbway" | "digikey" | "mouser" | "lcsc", string[]>> | undefined;
|
|
13023
|
+
display_value?: string | undefined;
|
|
13024
|
+
display_name?: string | undefined;
|
|
13025
|
+
are_pins_interchangeable?: boolean | undefined;
|
|
13026
|
+
internally_connected_source_port_ids?: string[][] | undefined;
|
|
13027
|
+
standard?: "usb_c" | "m2" | undefined;
|
|
12646
13028
|
} | {
|
|
12647
13029
|
type: "source_component";
|
|
12648
13030
|
name: string;
|
|
@@ -12821,6 +13203,17 @@ declare const transformPCBElements: (elms: AnyCircuitElement[], matrix: Matrix)
|
|
|
12821
13203
|
property_name: string;
|
|
12822
13204
|
subcircuit_id?: string | undefined;
|
|
12823
13205
|
is_fatal?: boolean | undefined;
|
|
13206
|
+
} | {
|
|
13207
|
+
message: string;
|
|
13208
|
+
type: "source_invalid_component_property_error";
|
|
13209
|
+
source_component_id: string;
|
|
13210
|
+
error_type: "source_invalid_component_property_error";
|
|
13211
|
+
property_name: string;
|
|
13212
|
+
source_invalid_component_property_error_id: string;
|
|
13213
|
+
subcircuit_id?: string | undefined;
|
|
13214
|
+
is_fatal?: boolean | undefined;
|
|
13215
|
+
property_value?: unknown;
|
|
13216
|
+
expected_format?: string | undefined;
|
|
12824
13217
|
} | {
|
|
12825
13218
|
message: string;
|
|
12826
13219
|
type: "source_failed_to_create_component_error";
|
|
@@ -13181,6 +13574,17 @@ declare const transformPCBElements: (elms: AnyCircuitElement[], matrix: Matrix)
|
|
|
13181
13574
|
software_used_string?: string | undefined;
|
|
13182
13575
|
project_url?: string | undefined;
|
|
13183
13576
|
created_at?: string | undefined;
|
|
13577
|
+
} | {
|
|
13578
|
+
message: string;
|
|
13579
|
+
type: "source_invalid_component_property_error";
|
|
13580
|
+
source_component_id: string;
|
|
13581
|
+
error_type: "source_invalid_component_property_error";
|
|
13582
|
+
property_name: string;
|
|
13583
|
+
source_invalid_component_property_error_id: string;
|
|
13584
|
+
subcircuit_id?: string | undefined;
|
|
13585
|
+
is_fatal?: boolean | undefined;
|
|
13586
|
+
property_value?: unknown;
|
|
13587
|
+
expected_format?: string | undefined;
|
|
13184
13588
|
} | {
|
|
13185
13589
|
message: string;
|
|
13186
13590
|
type: "source_trace_not_connected_error";
|
|
@@ -13200,6 +13604,30 @@ declare const transformPCBElements: (elms: AnyCircuitElement[], matrix: Matrix)
|
|
|
13200
13604
|
warning_type: "source_pin_missing_trace_warning";
|
|
13201
13605
|
source_pin_missing_trace_warning_id: string;
|
|
13202
13606
|
subcircuit_id?: string | undefined;
|
|
13607
|
+
} | {
|
|
13608
|
+
message: string;
|
|
13609
|
+
type: "source_no_power_pin_defined_warning";
|
|
13610
|
+
source_component_id: string;
|
|
13611
|
+
warning_type: "source_no_power_pin_defined_warning";
|
|
13612
|
+
source_port_ids: string[];
|
|
13613
|
+
source_no_power_pin_defined_warning_id: string;
|
|
13614
|
+
subcircuit_id?: string | undefined;
|
|
13615
|
+
} | {
|
|
13616
|
+
message: string;
|
|
13617
|
+
type: "source_no_ground_pin_defined_warning";
|
|
13618
|
+
source_component_id: string;
|
|
13619
|
+
warning_type: "source_no_ground_pin_defined_warning";
|
|
13620
|
+
source_port_ids: string[];
|
|
13621
|
+
source_no_ground_pin_defined_warning_id: string;
|
|
13622
|
+
subcircuit_id?: string | undefined;
|
|
13623
|
+
} | {
|
|
13624
|
+
message: string;
|
|
13625
|
+
type: "source_component_pins_underspecified_warning";
|
|
13626
|
+
source_component_id: string;
|
|
13627
|
+
warning_type: "source_component_pins_underspecified_warning";
|
|
13628
|
+
source_port_ids: string[];
|
|
13629
|
+
source_component_pins_underspecified_warning_id: string;
|
|
13630
|
+
subcircuit_id?: string | undefined;
|
|
13203
13631
|
} | {
|
|
13204
13632
|
message: string;
|
|
13205
13633
|
type: "source_pin_must_be_connected_error";
|
|
@@ -13224,18 +13652,26 @@ declare const transformPCBElements: (elms: AnyCircuitElement[], matrix: Matrix)
|
|
|
13224
13652
|
source_i2c_misconfigured_error_id: string;
|
|
13225
13653
|
source_port_ids: string[];
|
|
13226
13654
|
is_fatal?: boolean | undefined;
|
|
13655
|
+
} | {
|
|
13656
|
+
message: string;
|
|
13657
|
+
type: "source_ambiguous_port_reference";
|
|
13658
|
+
error_type: "source_ambiguous_port_reference";
|
|
13659
|
+
source_ambiguous_port_reference_id: string;
|
|
13660
|
+
source_component_id?: string | undefined;
|
|
13661
|
+
source_port_id?: string | undefined;
|
|
13662
|
+
is_fatal?: boolean | undefined;
|
|
13227
13663
|
} | {
|
|
13228
13664
|
type: "pcb_component";
|
|
13229
13665
|
width: number;
|
|
13230
13666
|
height: number;
|
|
13231
13667
|
rotation: number;
|
|
13232
13668
|
layer: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6";
|
|
13233
|
-
pcb_component_id: string;
|
|
13234
|
-
source_component_id: string;
|
|
13235
13669
|
center: {
|
|
13236
13670
|
x: number;
|
|
13237
13671
|
y: number;
|
|
13238
13672
|
};
|
|
13673
|
+
pcb_component_id: string;
|
|
13674
|
+
source_component_id: string;
|
|
13239
13675
|
obstructs_within_bounds: boolean;
|
|
13240
13676
|
display_offset_x?: string | undefined;
|
|
13241
13677
|
display_offset_y?: string | undefined;
|
|
@@ -13243,9 +13679,18 @@ declare const transformPCBElements: (elms: AnyCircuitElement[], matrix: Matrix)
|
|
|
13243
13679
|
is_allowed_to_be_off_board?: boolean | undefined;
|
|
13244
13680
|
subcircuit_id?: string | undefined;
|
|
13245
13681
|
pcb_group_id?: string | undefined;
|
|
13246
|
-
position_mode?: "packed" | "relative_to_group_anchor" | "none" | undefined;
|
|
13682
|
+
position_mode?: "packed" | "relative_to_group_anchor" | "relative_to_another_component" | "none" | undefined;
|
|
13683
|
+
anchor_position?: {
|
|
13684
|
+
x: number;
|
|
13685
|
+
y: number;
|
|
13686
|
+
} | undefined;
|
|
13687
|
+
anchor_alignment?: "top_left" | "top_center" | "top_right" | "center_left" | "center" | "center_right" | "bottom_left" | "bottom_center" | "bottom_right" | undefined;
|
|
13247
13688
|
positioned_relative_to_pcb_group_id?: string | undefined;
|
|
13248
13689
|
positioned_relative_to_pcb_board_id?: string | undefined;
|
|
13690
|
+
cable_insertion_center?: {
|
|
13691
|
+
x: number;
|
|
13692
|
+
y: number;
|
|
13693
|
+
} | undefined;
|
|
13249
13694
|
metadata?: {
|
|
13250
13695
|
kicad_footprint?: {
|
|
13251
13696
|
layer?: string | undefined;
|
|
@@ -13497,6 +13942,17 @@ declare const transformPCBElements: (elms: AnyCircuitElement[], matrix: Matrix)
|
|
|
13497
13942
|
warning_type: "pcb_manual_edit_conflict_warning";
|
|
13498
13943
|
subcircuit_id?: string | undefined;
|
|
13499
13944
|
pcb_group_id?: string | undefined;
|
|
13945
|
+
} | {
|
|
13946
|
+
message: string;
|
|
13947
|
+
type: "pcb_connector_not_in_accessible_orientation_warning";
|
|
13948
|
+
pcb_component_id: string;
|
|
13949
|
+
warning_type: "pcb_connector_not_in_accessible_orientation_warning";
|
|
13950
|
+
pcb_connector_not_in_accessible_orientation_warning_id: string;
|
|
13951
|
+
facing_direction: "x-" | "x+" | "y+" | "y-";
|
|
13952
|
+
recommended_facing_direction: "x-" | "x+" | "y+" | "y-";
|
|
13953
|
+
source_component_id?: string | undefined;
|
|
13954
|
+
subcircuit_id?: string | undefined;
|
|
13955
|
+
pcb_board_id?: string | undefined;
|
|
13500
13956
|
} | {
|
|
13501
13957
|
x: number;
|
|
13502
13958
|
y: number;
|
|
@@ -13926,6 +14382,11 @@ declare const transformPCBElements: (elms: AnyCircuitElement[], matrix: Matrix)
|
|
|
13926
14382
|
display_offset_y?: string | undefined;
|
|
13927
14383
|
subcircuit_id?: string | undefined;
|
|
13928
14384
|
position_mode?: "none" | "relative_to_panel_anchor" | undefined;
|
|
14385
|
+
anchor_position?: {
|
|
14386
|
+
x: number;
|
|
14387
|
+
y: number;
|
|
14388
|
+
} | undefined;
|
|
14389
|
+
anchor_alignment?: "top_left" | "top_center" | "top_right" | "center_left" | "center" | "center_right" | "bottom_left" | "bottom_center" | "bottom_right" | undefined;
|
|
13929
14390
|
pcb_panel_id?: string | undefined;
|
|
13930
14391
|
carrier_pcb_board_id?: string | undefined;
|
|
13931
14392
|
is_subcircuit?: boolean | undefined;
|
|
@@ -13934,11 +14395,6 @@ declare const transformPCBElements: (elms: AnyCircuitElement[], matrix: Matrix)
|
|
|
13934
14395
|
x: number;
|
|
13935
14396
|
y: number;
|
|
13936
14397
|
}[] | 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
14398
|
} | {
|
|
13943
14399
|
type: "pcb_panel";
|
|
13944
14400
|
width: number;
|
|
@@ -13956,8 +14412,8 @@ declare const transformPCBElements: (elms: AnyCircuitElement[], matrix: Matrix)
|
|
|
13956
14412
|
y: number;
|
|
13957
14413
|
};
|
|
13958
14414
|
pcb_group_id: string;
|
|
14415
|
+
anchor_alignment: "top_left" | "top_center" | "top_right" | "center_left" | "center" | "center_right" | "bottom_left" | "bottom_center" | "bottom_right";
|
|
13959
14416
|
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
14417
|
source_group_id: string;
|
|
13962
14418
|
description?: string | undefined;
|
|
13963
14419
|
width?: number | undefined;
|
|
@@ -13967,6 +14423,10 @@ declare const transformPCBElements: (elms: AnyCircuitElement[], matrix: Matrix)
|
|
|
13967
14423
|
display_offset_y?: string | undefined;
|
|
13968
14424
|
subcircuit_id?: string | undefined;
|
|
13969
14425
|
position_mode?: "packed" | "relative_to_group_anchor" | "none" | undefined;
|
|
14426
|
+
anchor_position?: {
|
|
14427
|
+
x: number;
|
|
14428
|
+
y: number;
|
|
14429
|
+
} | undefined;
|
|
13970
14430
|
positioned_relative_to_pcb_group_id?: string | undefined;
|
|
13971
14431
|
positioned_relative_to_pcb_board_id?: string | undefined;
|
|
13972
14432
|
is_subcircuit?: boolean | undefined;
|
|
@@ -13974,10 +14434,6 @@ declare const transformPCBElements: (elms: AnyCircuitElement[], matrix: Matrix)
|
|
|
13974
14434
|
x: number;
|
|
13975
14435
|
y: number;
|
|
13976
14436
|
}[] | undefined;
|
|
13977
|
-
anchor_position?: {
|
|
13978
|
-
x: number;
|
|
13979
|
-
y: number;
|
|
13980
|
-
} | undefined;
|
|
13981
14437
|
child_layout_mode?: "packed" | "none" | undefined;
|
|
13982
14438
|
layout_mode?: string | undefined;
|
|
13983
14439
|
autorouter_configuration?: {
|
|
@@ -14026,12 +14482,12 @@ declare const transformPCBElements: (elms: AnyCircuitElement[], matrix: Matrix)
|
|
|
14026
14482
|
font: "tscircuit2024";
|
|
14027
14483
|
layer: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6";
|
|
14028
14484
|
pcb_component_id: string;
|
|
14029
|
-
text: string;
|
|
14030
14485
|
anchor_position: {
|
|
14031
14486
|
x: number;
|
|
14032
14487
|
y: number;
|
|
14033
14488
|
};
|
|
14034
|
-
anchor_alignment: "
|
|
14489
|
+
anchor_alignment: "top_left" | "top_center" | "top_right" | "center_left" | "center" | "center_right" | "bottom_left" | "bottom_center" | "bottom_right";
|
|
14490
|
+
text: string;
|
|
14035
14491
|
pcb_silkscreen_text_id: string;
|
|
14036
14492
|
font_size: number;
|
|
14037
14493
|
subcircuit_id?: string | undefined;
|
|
@@ -14050,11 +14506,11 @@ declare const transformPCBElements: (elms: AnyCircuitElement[], matrix: Matrix)
|
|
|
14050
14506
|
width: number;
|
|
14051
14507
|
height: number;
|
|
14052
14508
|
layer: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6";
|
|
14053
|
-
pcb_component_id: string;
|
|
14054
14509
|
center: {
|
|
14055
14510
|
x: number;
|
|
14056
14511
|
y: number;
|
|
14057
14512
|
};
|
|
14513
|
+
pcb_component_id: string;
|
|
14058
14514
|
pcb_silkscreen_pill_id: string;
|
|
14059
14515
|
subcircuit_id?: string | undefined;
|
|
14060
14516
|
pcb_group_id?: string | undefined;
|
|
@@ -14064,12 +14520,12 @@ declare const transformPCBElements: (elms: AnyCircuitElement[], matrix: Matrix)
|
|
|
14064
14520
|
font: "tscircuit2024";
|
|
14065
14521
|
layer: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6";
|
|
14066
14522
|
pcb_component_id: string;
|
|
14067
|
-
text: string;
|
|
14068
14523
|
anchor_position: {
|
|
14069
14524
|
x: number;
|
|
14070
14525
|
y: number;
|
|
14071
14526
|
};
|
|
14072
|
-
anchor_alignment: "
|
|
14527
|
+
anchor_alignment: "top_left" | "top_center" | "top_right" | "center_left" | "center" | "center_right" | "bottom_left" | "bottom_center" | "bottom_right";
|
|
14528
|
+
text: string;
|
|
14073
14529
|
font_size: number;
|
|
14074
14530
|
pcb_copper_text_id: string;
|
|
14075
14531
|
subcircuit_id?: string | undefined;
|
|
@@ -14088,11 +14544,11 @@ declare const transformPCBElements: (elms: AnyCircuitElement[], matrix: Matrix)
|
|
|
14088
14544
|
width: number;
|
|
14089
14545
|
height: number;
|
|
14090
14546
|
layer: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6";
|
|
14091
|
-
pcb_component_id: string;
|
|
14092
14547
|
center: {
|
|
14093
14548
|
x: number;
|
|
14094
14549
|
y: number;
|
|
14095
14550
|
};
|
|
14551
|
+
pcb_component_id: string;
|
|
14096
14552
|
stroke_width: number;
|
|
14097
14553
|
pcb_silkscreen_rect_id: string;
|
|
14098
14554
|
subcircuit_id?: string | undefined;
|
|
@@ -14105,11 +14561,11 @@ declare const transformPCBElements: (elms: AnyCircuitElement[], matrix: Matrix)
|
|
|
14105
14561
|
} | {
|
|
14106
14562
|
type: "pcb_silkscreen_circle";
|
|
14107
14563
|
layer: "top" | "bottom";
|
|
14108
|
-
pcb_component_id: string;
|
|
14109
14564
|
center: {
|
|
14110
14565
|
x: number;
|
|
14111
14566
|
y: number;
|
|
14112
14567
|
};
|
|
14568
|
+
pcb_component_id: string;
|
|
14113
14569
|
radius: number;
|
|
14114
14570
|
stroke_width: number;
|
|
14115
14571
|
pcb_silkscreen_circle_id: string;
|
|
@@ -14118,11 +14574,11 @@ declare const transformPCBElements: (elms: AnyCircuitElement[], matrix: Matrix)
|
|
|
14118
14574
|
} | {
|
|
14119
14575
|
type: "pcb_silkscreen_oval";
|
|
14120
14576
|
layer: "top" | "bottom";
|
|
14121
|
-
pcb_component_id: string;
|
|
14122
14577
|
center: {
|
|
14123
14578
|
x: number;
|
|
14124
14579
|
y: number;
|
|
14125
14580
|
};
|
|
14581
|
+
pcb_component_id: string;
|
|
14126
14582
|
pcb_silkscreen_oval_id: string;
|
|
14127
14583
|
radius_x: number;
|
|
14128
14584
|
radius_y: number;
|
|
@@ -14222,12 +14678,12 @@ declare const transformPCBElements: (elms: AnyCircuitElement[], matrix: Matrix)
|
|
|
14222
14678
|
font: "tscircuit2024";
|
|
14223
14679
|
layer: "top" | "bottom";
|
|
14224
14680
|
pcb_component_id: string;
|
|
14225
|
-
text: string;
|
|
14226
14681
|
anchor_position: {
|
|
14227
14682
|
x: number;
|
|
14228
14683
|
y: number;
|
|
14229
14684
|
};
|
|
14230
|
-
anchor_alignment: "
|
|
14685
|
+
anchor_alignment: "top_left" | "top_right" | "center" | "bottom_left" | "bottom_right";
|
|
14686
|
+
text: string;
|
|
14231
14687
|
font_size: number;
|
|
14232
14688
|
pcb_fabrication_note_text_id: string;
|
|
14233
14689
|
subcircuit_id?: string | undefined;
|
|
@@ -14238,11 +14694,11 @@ declare const transformPCBElements: (elms: AnyCircuitElement[], matrix: Matrix)
|
|
|
14238
14694
|
width: number;
|
|
14239
14695
|
height: number;
|
|
14240
14696
|
layer: "top" | "bottom";
|
|
14241
|
-
pcb_component_id: string;
|
|
14242
14697
|
center: {
|
|
14243
14698
|
x: number;
|
|
14244
14699
|
y: number;
|
|
14245
14700
|
};
|
|
14701
|
+
pcb_component_id: string;
|
|
14246
14702
|
stroke_width: number;
|
|
14247
14703
|
pcb_fabrication_note_rect_id: string;
|
|
14248
14704
|
subcircuit_id?: string | undefined;
|
|
@@ -14286,7 +14742,7 @@ declare const transformPCBElements: (elms: AnyCircuitElement[], matrix: Matrix)
|
|
|
14286
14742
|
x: number;
|
|
14287
14743
|
y: number;
|
|
14288
14744
|
};
|
|
14289
|
-
anchor_alignment: "
|
|
14745
|
+
anchor_alignment: "top_left" | "top_right" | "center" | "bottom_left" | "bottom_right";
|
|
14290
14746
|
font_size: number;
|
|
14291
14747
|
pcb_note_text_id: string;
|
|
14292
14748
|
name?: string | undefined;
|
|
@@ -14587,11 +15043,11 @@ declare const transformPCBElements: (elms: AnyCircuitElement[], matrix: Matrix)
|
|
|
14587
15043
|
width: number;
|
|
14588
15044
|
height: number;
|
|
14589
15045
|
layer: "top" | "bottom";
|
|
14590
|
-
pcb_component_id: string;
|
|
14591
15046
|
center: {
|
|
14592
15047
|
x: number;
|
|
14593
15048
|
y: number;
|
|
14594
15049
|
};
|
|
15050
|
+
pcb_component_id: string;
|
|
14595
15051
|
pcb_courtyard_rect_id: string;
|
|
14596
15052
|
subcircuit_id?: string | undefined;
|
|
14597
15053
|
pcb_group_id?: string | undefined;
|
|
@@ -14622,11 +15078,11 @@ declare const transformPCBElements: (elms: AnyCircuitElement[], matrix: Matrix)
|
|
|
14622
15078
|
} | {
|
|
14623
15079
|
type: "pcb_courtyard_circle";
|
|
14624
15080
|
layer: "top" | "bottom";
|
|
14625
|
-
pcb_component_id: string;
|
|
14626
15081
|
center: {
|
|
14627
15082
|
x: number;
|
|
14628
15083
|
y: number;
|
|
14629
15084
|
};
|
|
15085
|
+
pcb_component_id: string;
|
|
14630
15086
|
radius: number;
|
|
14631
15087
|
pcb_courtyard_circle_id: string;
|
|
14632
15088
|
subcircuit_id?: string | undefined;
|
|
@@ -14644,7 +15100,7 @@ declare const transformPCBElements: (elms: AnyCircuitElement[], matrix: Matrix)
|
|
|
14644
15100
|
schematic_symbol_id?: string | undefined;
|
|
14645
15101
|
} | {
|
|
14646
15102
|
type: "schematic_text";
|
|
14647
|
-
anchor: "top" | "bottom" | "
|
|
15103
|
+
anchor: "top" | "bottom" | "top_left" | "top_center" | "top_right" | "center_left" | "center" | "center_right" | "bottom_left" | "bottom_center" | "bottom_right" | "left" | "right";
|
|
14648
15104
|
rotation: number;
|
|
14649
15105
|
text: string;
|
|
14650
15106
|
font_size: number;
|
|
@@ -16144,8 +16600,8 @@ declare const transformPCBElements: (elms: AnyCircuitElement[], matrix: Matrix)
|
|
|
16144
16600
|
source_port_id: string;
|
|
16145
16601
|
schematic_port_id: string;
|
|
16146
16602
|
subcircuit_id?: string | undefined;
|
|
16147
|
-
schematic_component_id?: string | undefined;
|
|
16148
16603
|
facing_direction?: "left" | "right" | "up" | "down" | undefined;
|
|
16604
|
+
schematic_component_id?: string | undefined;
|
|
16149
16605
|
distance_from_component_edge?: number | undefined;
|
|
16150
16606
|
side_of_component?: "top" | "bottom" | "left" | "right" | undefined;
|
|
16151
16607
|
true_ccw_index?: number | undefined;
|
|
@@ -16219,11 +16675,11 @@ declare const transformPCBElements: (elms: AnyCircuitElement[], matrix: Matrix)
|
|
|
16219
16675
|
schematic_net_label_id: string;
|
|
16220
16676
|
anchor_side: "top" | "bottom" | "left" | "right";
|
|
16221
16677
|
subcircuit_id?: string | undefined;
|
|
16222
|
-
source_trace_id?: string | undefined;
|
|
16223
16678
|
anchor_position?: {
|
|
16224
16679
|
x: number;
|
|
16225
16680
|
y: number;
|
|
16226
16681
|
} | undefined;
|
|
16682
|
+
source_trace_id?: string | undefined;
|
|
16227
16683
|
symbol_name?: string | undefined;
|
|
16228
16684
|
schematic_trace_id?: string | undefined;
|
|
16229
16685
|
is_movable?: boolean | undefined;
|
|
@@ -16275,7 +16731,7 @@ declare const transformPCBElements: (elms: AnyCircuitElement[], matrix: Matrix)
|
|
|
16275
16731
|
subcircuit_id?: string | undefined;
|
|
16276
16732
|
color?: string | undefined;
|
|
16277
16733
|
voltage?: number | undefined;
|
|
16278
|
-
label_alignment?: "
|
|
16734
|
+
label_alignment?: "top_left" | "top_center" | "top_right" | "center_left" | "center" | "center_right" | "bottom_left" | "bottom_center" | "bottom_right" | undefined;
|
|
16279
16735
|
} | {
|
|
16280
16736
|
message: string;
|
|
16281
16737
|
type: "schematic_manual_edit_conflict_warning";
|
|
@@ -16315,7 +16771,7 @@ declare const transformPCBElements: (elms: AnyCircuitElement[], matrix: Matrix)
|
|
|
16315
16771
|
schematic_table_id: string;
|
|
16316
16772
|
column_widths: number[];
|
|
16317
16773
|
row_heights: number[];
|
|
16318
|
-
anchor?: "
|
|
16774
|
+
anchor?: "top_left" | "top_center" | "top_right" | "center_left" | "center" | "center_right" | "bottom_left" | "bottom_center" | "bottom_right" | undefined;
|
|
16319
16775
|
subcircuit_id?: string | undefined;
|
|
16320
16776
|
schematic_component_id?: string | undefined;
|
|
16321
16777
|
cell_padding?: number | undefined;
|
|
@@ -16350,6 +16806,7 @@ declare const transformPCBElements: (elms: AnyCircuitElement[], matrix: Matrix)
|
|
|
16350
16806
|
z: number;
|
|
16351
16807
|
};
|
|
16352
16808
|
cad_component_id: string;
|
|
16809
|
+
model_object_fit: "contain_within_bounds" | "fill_bounds";
|
|
16353
16810
|
rotation?: {
|
|
16354
16811
|
x: number;
|
|
16355
16812
|
y: number;
|
|
@@ -16376,6 +16833,13 @@ declare const transformPCBElements: (elms: AnyCircuitElement[], matrix: Matrix)
|
|
|
16376
16833
|
mimetype: string;
|
|
16377
16834
|
} | undefined;
|
|
16378
16835
|
model_unit_to_mm_scale_factor?: number | undefined;
|
|
16836
|
+
model_board_normal_direction?: "y+" | "z+" | undefined;
|
|
16837
|
+
model_origin_position?: {
|
|
16838
|
+
x: number;
|
|
16839
|
+
y: number;
|
|
16840
|
+
z: number;
|
|
16841
|
+
} | undefined;
|
|
16842
|
+
model_origin_alignment?: "unknown" | "center" | "center_of_component_on_board_surface" | undefined;
|
|
16379
16843
|
model_jscad?: any;
|
|
16380
16844
|
show_as_translucent_model?: boolean | undefined;
|
|
16381
16845
|
} | {
|
|
@@ -16623,7 +17087,7 @@ declare const computeGapBetweenCopper: (elm1: AnyCircuitElement, elm2: AnyCircui
|
|
|
16623
17087
|
|
|
16624
17088
|
declare const computeClearanceBetweenElements: (elm1: AnyCircuitElement, elm2: AnyCircuitElement) => number;
|
|
16625
17089
|
|
|
16626
|
-
type DrcCategory = "netlist" | "placement" | "routing" | "unknown";
|
|
17090
|
+
type DrcCategory = "netlist" | "pin_specification" | "placement" | "routing" | "unknown";
|
|
16627
17091
|
type DrcLike = {
|
|
16628
17092
|
type?: string;
|
|
16629
17093
|
error_type?: string;
|