easyeda 0.0.234 → 0.0.236
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/browser/{chunk-CGLWJURY.js → chunk-6S7LH5YP.js} +1005 -1201
- package/dist/browser/chunk-6S7LH5YP.js.map +1 -0
- package/dist/browser/{dist-B53E6C7Z.js → dist-62OZ4FIZ.js} +2 -2
- package/dist/browser/index.d.ts +6 -6
- package/dist/browser/index.js +113 -86
- package/dist/browser/index.js.map +1 -1
- package/dist/index.d.ts +11 -11
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/main.cjs +2542 -2714
- package/dist/main.cjs.map +1 -1
- package/package.json +6 -4
- package/dist/browser/chunk-CGLWJURY.js.map +0 -1
- /package/dist/browser/{dist-B53E6C7Z.js.map → dist-62OZ4FIZ.js.map} +0 -0
|
@@ -835,7 +835,6 @@ __export(dist_exports, {
|
|
|
835
835
|
pcb_courtyard_rect: () => pcb_courtyard_rect,
|
|
836
836
|
pcb_cutout: () => pcb_cutout,
|
|
837
837
|
pcb_cutout_circle: () => pcb_cutout_circle,
|
|
838
|
-
pcb_cutout_path: () => pcb_cutout_path,
|
|
839
838
|
pcb_cutout_polygon: () => pcb_cutout_polygon,
|
|
840
839
|
pcb_cutout_rect: () => pcb_cutout_rect,
|
|
841
840
|
pcb_fabrication_note_dimension: () => pcb_fabrication_note_dimension,
|
|
@@ -848,10 +847,8 @@ __export(dist_exports, {
|
|
|
848
847
|
pcb_group: () => pcb_group,
|
|
849
848
|
pcb_hole: () => pcb_hole,
|
|
850
849
|
pcb_hole_circle_or_square_shape: () => pcb_hole_circle_or_square_shape,
|
|
851
|
-
pcb_hole_circle_shape: () => pcb_hole_circle_shape,
|
|
852
850
|
pcb_hole_oval_shape: () => pcb_hole_oval_shape,
|
|
853
851
|
pcb_hole_pill_shape: () => pcb_hole_pill_shape,
|
|
854
|
-
pcb_hole_rect_shape: () => pcb_hole_rect_shape,
|
|
855
852
|
pcb_hole_rotated_pill_shape: () => pcb_hole_rotated_pill_shape,
|
|
856
853
|
pcb_keepout: () => pcb_keepout,
|
|
857
854
|
pcb_manual_edit_conflict_warning: () => pcb_manual_edit_conflict_warning,
|
|
@@ -932,7 +929,6 @@ __export(dist_exports, {
|
|
|
932
929
|
simulation_experiment: () => simulation_experiment,
|
|
933
930
|
simulation_switch: () => simulation_switch,
|
|
934
931
|
simulation_transient_voltage_graph: () => simulation_transient_voltage_graph,
|
|
935
|
-
simulation_unknown_experiment_error: () => simulation_unknown_experiment_error,
|
|
936
932
|
simulation_voltage_probe: () => simulation_voltage_probe,
|
|
937
933
|
simulation_voltage_source: () => simulation_voltage_source,
|
|
938
934
|
size: () => size,
|
|
@@ -940,13 +936,11 @@ __export(dist_exports, {
|
|
|
940
936
|
source_component_base: () => source_component_base,
|
|
941
937
|
source_failed_to_create_component_error: () => source_failed_to_create_component_error,
|
|
942
938
|
source_group: () => source_group,
|
|
943
|
-
source_interconnect: () => source_interconnect,
|
|
944
939
|
source_manually_placed_via: () => source_manually_placed_via,
|
|
945
940
|
source_missing_property_error: () => source_missing_property_error,
|
|
946
941
|
source_net: () => source_net,
|
|
947
942
|
source_pcb_ground_plane: () => source_pcb_ground_plane,
|
|
948
943
|
source_pin_missing_trace_warning: () => source_pin_missing_trace_warning,
|
|
949
|
-
source_pin_must_be_connected_error: () => source_pin_must_be_connected_error,
|
|
950
944
|
source_port: () => source_port,
|
|
951
945
|
source_project_metadata: () => source_project_metadata,
|
|
952
946
|
source_property_ignored_warning: () => source_property_ignored_warning,
|
|
@@ -969,7 +963,6 @@ __export(dist_exports, {
|
|
|
969
963
|
source_simple_switch: () => source_simple_switch,
|
|
970
964
|
source_simple_test_point: () => source_simple_test_point,
|
|
971
965
|
source_simple_transistor: () => source_simple_transistor,
|
|
972
|
-
source_simple_voltage_probe: () => source_simple_voltage_probe,
|
|
973
966
|
source_trace: () => source_trace,
|
|
974
967
|
source_trace_not_connected_error: () => source_trace_not_connected_error,
|
|
975
968
|
supplier_name: () => supplier_name,
|
|
@@ -995,7 +988,7 @@ import { z as z12 } from "zod";
|
|
|
995
988
|
import { z as z13 } from "zod";
|
|
996
989
|
import { z as z14 } from "zod";
|
|
997
990
|
import { z as z15 } from "zod";
|
|
998
|
-
import { z as
|
|
991
|
+
import { z as z35 } from "zod";
|
|
999
992
|
import { z as z16 } from "zod";
|
|
1000
993
|
import { z as z17 } from "zod";
|
|
1001
994
|
import { z as z18 } from "zod";
|
|
@@ -1015,16 +1008,16 @@ import { z as z31 } from "zod";
|
|
|
1015
1008
|
import { z as z32 } from "zod";
|
|
1016
1009
|
import { z as z33 } from "zod";
|
|
1017
1010
|
import { z as z34 } from "zod";
|
|
1018
|
-
import { z as z35 } from "zod";
|
|
1019
1011
|
import { z as z36 } from "zod";
|
|
1012
|
+
import { z as z37 } from "zod";
|
|
1020
1013
|
import { z as z38 } from "zod";
|
|
1021
1014
|
import { z as z39 } from "zod";
|
|
1022
1015
|
import { z as z40 } from "zod";
|
|
1023
1016
|
import { z as z41 } from "zod";
|
|
1024
|
-
import { z as z42 } from "zod";
|
|
1025
1017
|
import { z as z43 } from "zod";
|
|
1026
|
-
import { z as
|
|
1018
|
+
import { z as z42 } from "zod";
|
|
1027
1019
|
import { z as z44 } from "zod";
|
|
1020
|
+
import { z as z45 } from "zod";
|
|
1028
1021
|
import { z as z46 } from "zod";
|
|
1029
1022
|
import { z as z47 } from "zod";
|
|
1030
1023
|
import { z as z48 } from "zod";
|
|
@@ -1032,11 +1025,11 @@ import { z as z49 } from "zod";
|
|
|
1032
1025
|
import { z as z50 } from "zod";
|
|
1033
1026
|
import { z as z51 } from "zod";
|
|
1034
1027
|
import { z as z52 } from "zod";
|
|
1035
|
-
import { z as z53 } from "zod";
|
|
1036
1028
|
import { z as z54 } from "zod";
|
|
1029
|
+
import { z as z53 } from "zod";
|
|
1037
1030
|
import { z as z55 } from "zod";
|
|
1038
|
-
import { z as z57 } from "zod";
|
|
1039
1031
|
import { z as z56 } from "zod";
|
|
1032
|
+
import { z as z57 } from "zod";
|
|
1040
1033
|
import { z as z58 } from "zod";
|
|
1041
1034
|
import { z as z59 } from "zod";
|
|
1042
1035
|
import { z as z60 } from "zod";
|
|
@@ -1109,10 +1102,6 @@ import { z as z126 } from "zod";
|
|
|
1109
1102
|
import { z as z127 } from "zod";
|
|
1110
1103
|
import { z as z128 } from "zod";
|
|
1111
1104
|
import { z as z129 } from "zod";
|
|
1112
|
-
import { z as z130 } from "zod";
|
|
1113
|
-
import { z as z131 } from "zod";
|
|
1114
|
-
import { z as z132 } from "zod";
|
|
1115
|
-
import { z as z133 } from "zod";
|
|
1116
1105
|
var unitMappings = {
|
|
1117
1106
|
Hz: {
|
|
1118
1107
|
baseUnit: "Hz",
|
|
@@ -1627,17 +1616,7 @@ var source_pin_missing_trace_warning = z34.object({
|
|
|
1627
1616
|
"Warning emitted when a source component pin is missing a trace connection"
|
|
1628
1617
|
);
|
|
1629
1618
|
expectTypesMatch(true);
|
|
1630
|
-
var
|
|
1631
|
-
ftype: z35.literal("simple_voltage_probe")
|
|
1632
|
-
});
|
|
1633
|
-
expectTypesMatch(
|
|
1634
|
-
true
|
|
1635
|
-
);
|
|
1636
|
-
var source_interconnect = source_component_base.extend({
|
|
1637
|
-
ftype: z36.literal("interconnect")
|
|
1638
|
-
});
|
|
1639
|
-
expectTypesMatch(true);
|
|
1640
|
-
var any_source_component = z37.union([
|
|
1619
|
+
var any_source_component = z35.union([
|
|
1641
1620
|
source_simple_resistor,
|
|
1642
1621
|
source_simple_capacitor,
|
|
1643
1622
|
source_simple_diode,
|
|
@@ -1658,8 +1637,6 @@ var any_source_component = z37.union([
|
|
|
1658
1637
|
source_simple_test_point,
|
|
1659
1638
|
source_simple_mosfet,
|
|
1660
1639
|
source_simple_fuse,
|
|
1661
|
-
source_simple_voltage_probe,
|
|
1662
|
-
source_interconnect,
|
|
1663
1640
|
source_project_metadata,
|
|
1664
1641
|
source_missing_property_error,
|
|
1665
1642
|
source_failed_to_create_component_error,
|
|
@@ -1668,71 +1645,70 @@ var any_source_component = z37.union([
|
|
|
1668
1645
|
source_pin_missing_trace_warning
|
|
1669
1646
|
]);
|
|
1670
1647
|
expectTypesMatch(true);
|
|
1671
|
-
var source_port =
|
|
1672
|
-
type:
|
|
1673
|
-
pin_number:
|
|
1674
|
-
port_hints:
|
|
1675
|
-
name:
|
|
1676
|
-
source_port_id:
|
|
1677
|
-
source_component_id:
|
|
1678
|
-
source_group_id:
|
|
1679
|
-
subcircuit_id:
|
|
1680
|
-
subcircuit_connectivity_map_key:
|
|
1681
|
-
must_be_connected: z38.boolean().optional()
|
|
1648
|
+
var source_port = z36.object({
|
|
1649
|
+
type: z36.literal("source_port"),
|
|
1650
|
+
pin_number: z36.number().optional(),
|
|
1651
|
+
port_hints: z36.array(z36.string()).optional(),
|
|
1652
|
+
name: z36.string(),
|
|
1653
|
+
source_port_id: z36.string(),
|
|
1654
|
+
source_component_id: z36.string().optional(),
|
|
1655
|
+
source_group_id: z36.string().optional(),
|
|
1656
|
+
subcircuit_id: z36.string().optional(),
|
|
1657
|
+
subcircuit_connectivity_map_key: z36.string().optional()
|
|
1682
1658
|
});
|
|
1683
1659
|
expectTypesMatch(true);
|
|
1684
|
-
var source_trace =
|
|
1685
|
-
type:
|
|
1686
|
-
source_trace_id:
|
|
1687
|
-
connected_source_port_ids:
|
|
1688
|
-
connected_source_net_ids:
|
|
1689
|
-
subcircuit_id:
|
|
1690
|
-
subcircuit_connectivity_map_key:
|
|
1691
|
-
max_length:
|
|
1692
|
-
min_trace_thickness:
|
|
1693
|
-
display_name:
|
|
1660
|
+
var source_trace = z37.object({
|
|
1661
|
+
type: z37.literal("source_trace"),
|
|
1662
|
+
source_trace_id: z37.string(),
|
|
1663
|
+
connected_source_port_ids: z37.array(z37.string()),
|
|
1664
|
+
connected_source_net_ids: z37.array(z37.string()),
|
|
1665
|
+
subcircuit_id: z37.string().optional(),
|
|
1666
|
+
subcircuit_connectivity_map_key: z37.string().optional(),
|
|
1667
|
+
max_length: z37.number().optional(),
|
|
1668
|
+
min_trace_thickness: z37.number().optional(),
|
|
1669
|
+
display_name: z37.string().optional()
|
|
1694
1670
|
});
|
|
1695
1671
|
expectTypesMatch(true);
|
|
1696
|
-
var source_group =
|
|
1697
|
-
type:
|
|
1698
|
-
source_group_id:
|
|
1699
|
-
subcircuit_id:
|
|
1700
|
-
parent_subcircuit_id:
|
|
1701
|
-
parent_source_group_id:
|
|
1702
|
-
is_subcircuit:
|
|
1703
|
-
show_as_schematic_box:
|
|
1704
|
-
name:
|
|
1705
|
-
was_automatically_named:
|
|
1672
|
+
var source_group = z38.object({
|
|
1673
|
+
type: z38.literal("source_group"),
|
|
1674
|
+
source_group_id: z38.string(),
|
|
1675
|
+
subcircuit_id: z38.string().optional(),
|
|
1676
|
+
parent_subcircuit_id: z38.string().optional(),
|
|
1677
|
+
parent_source_group_id: z38.string().optional(),
|
|
1678
|
+
is_subcircuit: z38.boolean().optional(),
|
|
1679
|
+
show_as_schematic_box: z38.boolean().optional(),
|
|
1680
|
+
name: z38.string().optional(),
|
|
1681
|
+
was_automatically_named: z38.boolean().optional()
|
|
1706
1682
|
});
|
|
1707
1683
|
expectTypesMatch(true);
|
|
1708
|
-
var source_net =
|
|
1709
|
-
type:
|
|
1710
|
-
source_net_id:
|
|
1711
|
-
name:
|
|
1712
|
-
member_source_group_ids:
|
|
1713
|
-
is_power:
|
|
1714
|
-
is_ground:
|
|
1715
|
-
is_digital_signal:
|
|
1716
|
-
is_analog_signal:
|
|
1717
|
-
is_positive_voltage_source:
|
|
1718
|
-
trace_width:
|
|
1719
|
-
subcircuit_id:
|
|
1720
|
-
subcircuit_connectivity_map_key:
|
|
1684
|
+
var source_net = z39.object({
|
|
1685
|
+
type: z39.literal("source_net"),
|
|
1686
|
+
source_net_id: z39.string(),
|
|
1687
|
+
name: z39.string(),
|
|
1688
|
+
member_source_group_ids: z39.array(z39.string()),
|
|
1689
|
+
is_power: z39.boolean().optional(),
|
|
1690
|
+
is_ground: z39.boolean().optional(),
|
|
1691
|
+
is_digital_signal: z39.boolean().optional(),
|
|
1692
|
+
is_analog_signal: z39.boolean().optional(),
|
|
1693
|
+
is_positive_voltage_source: z39.boolean().optional(),
|
|
1694
|
+
trace_width: z39.number().optional(),
|
|
1695
|
+
subcircuit_id: z39.string().optional(),
|
|
1696
|
+
subcircuit_connectivity_map_key: z39.string().optional()
|
|
1721
1697
|
});
|
|
1722
1698
|
expectTypesMatch(true);
|
|
1723
|
-
var source_board =
|
|
1724
|
-
type:
|
|
1725
|
-
source_board_id:
|
|
1726
|
-
source_group_id:
|
|
1727
|
-
title:
|
|
1699
|
+
var source_board = z40.object({
|
|
1700
|
+
type: z40.literal("source_board"),
|
|
1701
|
+
source_board_id: z40.string(),
|
|
1702
|
+
source_group_id: z40.string(),
|
|
1703
|
+
title: z40.string().optional()
|
|
1728
1704
|
}).describe("Defines a board in the source domain");
|
|
1729
1705
|
expectTypesMatch(true);
|
|
1730
|
-
var source_pcb_ground_plane =
|
|
1731
|
-
type:
|
|
1732
|
-
source_pcb_ground_plane_id:
|
|
1733
|
-
source_group_id:
|
|
1734
|
-
source_net_id:
|
|
1735
|
-
subcircuit_id:
|
|
1706
|
+
var source_pcb_ground_plane = z41.object({
|
|
1707
|
+
type: z41.literal("source_pcb_ground_plane"),
|
|
1708
|
+
source_pcb_ground_plane_id: z41.string(),
|
|
1709
|
+
source_group_id: z41.string(),
|
|
1710
|
+
source_net_id: z41.string(),
|
|
1711
|
+
subcircuit_id: z41.string().optional()
|
|
1736
1712
|
}).describe("Defines a ground plane in the source domain");
|
|
1737
1713
|
expectTypesMatch(true);
|
|
1738
1714
|
var all_layers = [
|
|
@@ -1745,9 +1721,9 @@ var all_layers = [
|
|
|
1745
1721
|
"inner5",
|
|
1746
1722
|
"inner6"
|
|
1747
1723
|
];
|
|
1748
|
-
var layer_string =
|
|
1724
|
+
var layer_string = z42.enum(all_layers);
|
|
1749
1725
|
var layer_ref = layer_string.or(
|
|
1750
|
-
|
|
1726
|
+
z42.object({
|
|
1751
1727
|
name: layer_string
|
|
1752
1728
|
})
|
|
1753
1729
|
).transform((layer) => {
|
|
@@ -1757,215 +1733,201 @@ var layer_ref = layer_string.or(
|
|
|
1757
1733
|
return layer.name;
|
|
1758
1734
|
});
|
|
1759
1735
|
expectTypesMatch(true);
|
|
1760
|
-
var visible_layer =
|
|
1761
|
-
var source_manually_placed_via =
|
|
1762
|
-
type:
|
|
1763
|
-
source_manually_placed_via_id:
|
|
1764
|
-
source_group_id:
|
|
1765
|
-
source_net_id:
|
|
1766
|
-
subcircuit_id:
|
|
1767
|
-
source_trace_id:
|
|
1736
|
+
var visible_layer = z42.enum(["top", "bottom"]);
|
|
1737
|
+
var source_manually_placed_via = z43.object({
|
|
1738
|
+
type: z43.literal("source_manually_placed_via"),
|
|
1739
|
+
source_manually_placed_via_id: z43.string(),
|
|
1740
|
+
source_group_id: z43.string(),
|
|
1741
|
+
source_net_id: z43.string(),
|
|
1742
|
+
subcircuit_id: z43.string().optional(),
|
|
1743
|
+
source_trace_id: z43.string().optional()
|
|
1768
1744
|
}).describe("Defines a via that is manually placed in the source domain");
|
|
1769
1745
|
expectTypesMatch(true);
|
|
1770
|
-
var
|
|
1771
|
-
type:
|
|
1772
|
-
source_pin_must_be_connected_error_id: getZodPrefixedIdWithDefault(
|
|
1773
|
-
"source_pin_must_be_connected_error"
|
|
1774
|
-
),
|
|
1775
|
-
error_type: z46.literal("source_pin_must_be_connected_error").default("source_pin_must_be_connected_error"),
|
|
1776
|
-
message: z46.string(),
|
|
1777
|
-
source_component_id: z46.string(),
|
|
1778
|
-
source_port_id: z46.string(),
|
|
1779
|
-
subcircuit_id: z46.string().optional()
|
|
1780
|
-
}).describe(
|
|
1781
|
-
"Error emitted when a pin with mustBeConnected attribute is not connected to any trace"
|
|
1782
|
-
);
|
|
1783
|
-
expectTypesMatch(true);
|
|
1784
|
-
var unknown_error_finding_part = z47.object({
|
|
1785
|
-
type: z47.literal("unknown_error_finding_part"),
|
|
1746
|
+
var unknown_error_finding_part = z44.object({
|
|
1747
|
+
type: z44.literal("unknown_error_finding_part"),
|
|
1786
1748
|
unknown_error_finding_part_id: getZodPrefixedIdWithDefault(
|
|
1787
1749
|
"unknown_error_finding_part"
|
|
1788
1750
|
),
|
|
1789
|
-
error_type:
|
|
1790
|
-
message:
|
|
1791
|
-
source_component_id:
|
|
1792
|
-
subcircuit_id:
|
|
1751
|
+
error_type: z44.literal("unknown_error_finding_part").default("unknown_error_finding_part"),
|
|
1752
|
+
message: z44.string(),
|
|
1753
|
+
source_component_id: z44.string().optional(),
|
|
1754
|
+
subcircuit_id: z44.string().optional()
|
|
1793
1755
|
}).describe(
|
|
1794
1756
|
"Error emitted when an unexpected error occurs while finding a part"
|
|
1795
1757
|
);
|
|
1796
1758
|
expectTypesMatch(true);
|
|
1797
|
-
var schematic_box =
|
|
1798
|
-
type:
|
|
1799
|
-
schematic_component_id:
|
|
1759
|
+
var schematic_box = z45.object({
|
|
1760
|
+
type: z45.literal("schematic_box"),
|
|
1761
|
+
schematic_component_id: z45.string().optional(),
|
|
1800
1762
|
width: distance,
|
|
1801
1763
|
height: distance,
|
|
1802
|
-
is_dashed:
|
|
1764
|
+
is_dashed: z45.boolean().default(false),
|
|
1803
1765
|
x: distance,
|
|
1804
1766
|
y: distance,
|
|
1805
|
-
subcircuit_id:
|
|
1767
|
+
subcircuit_id: z45.string().optional()
|
|
1806
1768
|
}).describe("Draws a box on the schematic");
|
|
1807
1769
|
expectTypesMatch(true);
|
|
1808
|
-
var schematic_path =
|
|
1809
|
-
type:
|
|
1810
|
-
schematic_component_id:
|
|
1811
|
-
fill_color:
|
|
1812
|
-
is_filled:
|
|
1813
|
-
points:
|
|
1814
|
-
subcircuit_id:
|
|
1770
|
+
var schematic_path = z46.object({
|
|
1771
|
+
type: z46.literal("schematic_path"),
|
|
1772
|
+
schematic_component_id: z46.string(),
|
|
1773
|
+
fill_color: z46.enum(["red", "blue"]).optional(),
|
|
1774
|
+
is_filled: z46.boolean().optional(),
|
|
1775
|
+
points: z46.array(point),
|
|
1776
|
+
subcircuit_id: z46.string().optional()
|
|
1815
1777
|
});
|
|
1816
1778
|
expectTypesMatch(true);
|
|
1817
|
-
var schematic_pin_styles =
|
|
1818
|
-
|
|
1779
|
+
var schematic_pin_styles = z47.record(
|
|
1780
|
+
z47.object({
|
|
1819
1781
|
left_margin: length.optional(),
|
|
1820
1782
|
right_margin: length.optional(),
|
|
1821
1783
|
top_margin: length.optional(),
|
|
1822
1784
|
bottom_margin: length.optional()
|
|
1823
1785
|
})
|
|
1824
1786
|
);
|
|
1825
|
-
var schematic_component_port_arrangement_by_size =
|
|
1826
|
-
left_size:
|
|
1827
|
-
right_size:
|
|
1828
|
-
top_size:
|
|
1829
|
-
bottom_size:
|
|
1787
|
+
var schematic_component_port_arrangement_by_size = z47.object({
|
|
1788
|
+
left_size: z47.number(),
|
|
1789
|
+
right_size: z47.number(),
|
|
1790
|
+
top_size: z47.number().optional(),
|
|
1791
|
+
bottom_size: z47.number().optional()
|
|
1830
1792
|
});
|
|
1831
1793
|
expectTypesMatch(true);
|
|
1832
|
-
var schematic_component_port_arrangement_by_sides =
|
|
1833
|
-
left_side:
|
|
1834
|
-
pins:
|
|
1794
|
+
var schematic_component_port_arrangement_by_sides = z47.object({
|
|
1795
|
+
left_side: z47.object({
|
|
1796
|
+
pins: z47.array(z47.number()),
|
|
1835
1797
|
// @ts-ignore
|
|
1836
|
-
direction:
|
|
1798
|
+
direction: z47.enum(["top-to-bottom", "bottom-to-top"]).optional()
|
|
1837
1799
|
}).optional(),
|
|
1838
|
-
right_side:
|
|
1839
|
-
pins:
|
|
1800
|
+
right_side: z47.object({
|
|
1801
|
+
pins: z47.array(z47.number()),
|
|
1840
1802
|
// @ts-ignore
|
|
1841
|
-
direction:
|
|
1803
|
+
direction: z47.enum(["top-to-bottom", "bottom-to-top"]).optional()
|
|
1842
1804
|
}).optional(),
|
|
1843
|
-
top_side:
|
|
1844
|
-
pins:
|
|
1805
|
+
top_side: z47.object({
|
|
1806
|
+
pins: z47.array(z47.number()),
|
|
1845
1807
|
// @ts-ignore
|
|
1846
|
-
direction:
|
|
1808
|
+
direction: z47.enum(["left-to-right", "right-to-left"]).optional()
|
|
1847
1809
|
}).optional(),
|
|
1848
|
-
bottom_side:
|
|
1849
|
-
pins:
|
|
1810
|
+
bottom_side: z47.object({
|
|
1811
|
+
pins: z47.array(z47.number()),
|
|
1850
1812
|
// @ts-ignore
|
|
1851
|
-
direction:
|
|
1813
|
+
direction: z47.enum(["left-to-right", "right-to-left"]).optional()
|
|
1852
1814
|
}).optional()
|
|
1853
1815
|
});
|
|
1854
1816
|
expectTypesMatch(true);
|
|
1855
|
-
var port_arrangement =
|
|
1817
|
+
var port_arrangement = z47.union([
|
|
1856
1818
|
schematic_component_port_arrangement_by_size,
|
|
1857
1819
|
schematic_component_port_arrangement_by_sides
|
|
1858
1820
|
]);
|
|
1859
|
-
var schematic_component =
|
|
1860
|
-
type:
|
|
1821
|
+
var schematic_component = z47.object({
|
|
1822
|
+
type: z47.literal("schematic_component"),
|
|
1861
1823
|
size,
|
|
1862
1824
|
center: point,
|
|
1863
|
-
source_component_id:
|
|
1864
|
-
schematic_component_id:
|
|
1825
|
+
source_component_id: z47.string().optional(),
|
|
1826
|
+
schematic_component_id: z47.string(),
|
|
1865
1827
|
pin_spacing: length.optional(),
|
|
1866
1828
|
pin_styles: schematic_pin_styles.optional(),
|
|
1867
1829
|
box_width: length.optional(),
|
|
1868
|
-
symbol_name:
|
|
1830
|
+
symbol_name: z47.string().optional(),
|
|
1869
1831
|
port_arrangement: port_arrangement.optional(),
|
|
1870
|
-
port_labels:
|
|
1871
|
-
symbol_display_value:
|
|
1872
|
-
subcircuit_id:
|
|
1873
|
-
schematic_group_id:
|
|
1874
|
-
is_schematic_group:
|
|
1875
|
-
source_group_id:
|
|
1876
|
-
is_box_with_pins:
|
|
1832
|
+
port_labels: z47.record(z47.string()).optional(),
|
|
1833
|
+
symbol_display_value: z47.string().optional(),
|
|
1834
|
+
subcircuit_id: z47.string().optional(),
|
|
1835
|
+
schematic_group_id: z47.string().optional(),
|
|
1836
|
+
is_schematic_group: z47.boolean().optional(),
|
|
1837
|
+
source_group_id: z47.string().optional(),
|
|
1838
|
+
is_box_with_pins: z47.boolean().optional().default(true)
|
|
1877
1839
|
});
|
|
1878
1840
|
expectTypesMatch(true);
|
|
1879
|
-
var schematic_line =
|
|
1880
|
-
type:
|
|
1841
|
+
var schematic_line = z48.object({
|
|
1842
|
+
type: z48.literal("schematic_line"),
|
|
1881
1843
|
schematic_line_id: getZodPrefixedIdWithDefault("schematic_line"),
|
|
1882
|
-
schematic_component_id:
|
|
1844
|
+
schematic_component_id: z48.string(),
|
|
1883
1845
|
x1: distance,
|
|
1884
1846
|
y1: distance,
|
|
1885
1847
|
x2: distance,
|
|
1886
1848
|
y2: distance,
|
|
1887
1849
|
stroke_width: distance.nullable().optional(),
|
|
1888
|
-
color:
|
|
1889
|
-
is_dashed:
|
|
1890
|
-
subcircuit_id:
|
|
1850
|
+
color: z48.string().default("#000000"),
|
|
1851
|
+
is_dashed: z48.boolean().default(false),
|
|
1852
|
+
subcircuit_id: z48.string().optional()
|
|
1891
1853
|
}).describe("Draws a styled line on the schematic");
|
|
1892
1854
|
expectTypesMatch(true);
|
|
1893
|
-
var schematic_rect =
|
|
1894
|
-
type:
|
|
1855
|
+
var schematic_rect = z49.object({
|
|
1856
|
+
type: z49.literal("schematic_rect"),
|
|
1895
1857
|
schematic_rect_id: getZodPrefixedIdWithDefault("schematic_rect"),
|
|
1896
|
-
schematic_component_id:
|
|
1858
|
+
schematic_component_id: z49.string(),
|
|
1897
1859
|
center: point,
|
|
1898
1860
|
width: distance,
|
|
1899
1861
|
height: distance,
|
|
1900
1862
|
rotation: rotation.default(0),
|
|
1901
1863
|
stroke_width: distance.nullable().optional(),
|
|
1902
|
-
color:
|
|
1903
|
-
is_filled:
|
|
1904
|
-
fill_color:
|
|
1905
|
-
is_dashed:
|
|
1906
|
-
subcircuit_id:
|
|
1864
|
+
color: z49.string().default("#000000"),
|
|
1865
|
+
is_filled: z49.boolean().default(false),
|
|
1866
|
+
fill_color: z49.string().optional(),
|
|
1867
|
+
is_dashed: z49.boolean().default(false),
|
|
1868
|
+
subcircuit_id: z49.string().optional()
|
|
1907
1869
|
}).describe("Draws a styled rectangle on the schematic");
|
|
1908
1870
|
expectTypesMatch(true);
|
|
1909
|
-
var schematic_circle =
|
|
1910
|
-
type:
|
|
1871
|
+
var schematic_circle = z50.object({
|
|
1872
|
+
type: z50.literal("schematic_circle"),
|
|
1911
1873
|
schematic_circle_id: getZodPrefixedIdWithDefault("schematic_circle"),
|
|
1912
|
-
schematic_component_id:
|
|
1874
|
+
schematic_component_id: z50.string(),
|
|
1913
1875
|
center: point,
|
|
1914
1876
|
radius: distance,
|
|
1915
1877
|
stroke_width: distance.nullable().optional(),
|
|
1916
|
-
color:
|
|
1917
|
-
is_filled:
|
|
1918
|
-
fill_color:
|
|
1919
|
-
is_dashed:
|
|
1920
|
-
subcircuit_id:
|
|
1878
|
+
color: z50.string().default("#000000"),
|
|
1879
|
+
is_filled: z50.boolean().default(false),
|
|
1880
|
+
fill_color: z50.string().optional(),
|
|
1881
|
+
is_dashed: z50.boolean().default(false),
|
|
1882
|
+
subcircuit_id: z50.string().optional()
|
|
1921
1883
|
}).describe("Draws a styled circle on the schematic");
|
|
1922
1884
|
expectTypesMatch(true);
|
|
1923
|
-
var schematic_arc =
|
|
1924
|
-
type:
|
|
1885
|
+
var schematic_arc = z51.object({
|
|
1886
|
+
type: z51.literal("schematic_arc"),
|
|
1925
1887
|
schematic_arc_id: getZodPrefixedIdWithDefault("schematic_arc"),
|
|
1926
|
-
schematic_component_id:
|
|
1888
|
+
schematic_component_id: z51.string(),
|
|
1927
1889
|
center: point,
|
|
1928
1890
|
radius: distance,
|
|
1929
1891
|
start_angle_degrees: rotation,
|
|
1930
1892
|
end_angle_degrees: rotation,
|
|
1931
|
-
direction:
|
|
1893
|
+
direction: z51.enum(["clockwise", "counterclockwise"]).default("counterclockwise"),
|
|
1932
1894
|
stroke_width: distance.nullable().optional(),
|
|
1933
|
-
color:
|
|
1934
|
-
is_dashed:
|
|
1935
|
-
subcircuit_id:
|
|
1895
|
+
color: z51.string().default("#000000"),
|
|
1896
|
+
is_dashed: z51.boolean().default(false),
|
|
1897
|
+
subcircuit_id: z51.string().optional()
|
|
1936
1898
|
}).describe("Draws a styled arc on the schematic");
|
|
1937
1899
|
expectTypesMatch(true);
|
|
1938
|
-
var schematic_trace =
|
|
1939
|
-
type:
|
|
1940
|
-
schematic_trace_id:
|
|
1941
|
-
source_trace_id:
|
|
1942
|
-
junctions:
|
|
1943
|
-
|
|
1944
|
-
x:
|
|
1945
|
-
y:
|
|
1900
|
+
var schematic_trace = z52.object({
|
|
1901
|
+
type: z52.literal("schematic_trace"),
|
|
1902
|
+
schematic_trace_id: z52.string(),
|
|
1903
|
+
source_trace_id: z52.string().optional(),
|
|
1904
|
+
junctions: z52.array(
|
|
1905
|
+
z52.object({
|
|
1906
|
+
x: z52.number(),
|
|
1907
|
+
y: z52.number()
|
|
1946
1908
|
})
|
|
1947
1909
|
),
|
|
1948
|
-
edges:
|
|
1949
|
-
|
|
1950
|
-
from:
|
|
1951
|
-
x:
|
|
1952
|
-
y:
|
|
1910
|
+
edges: z52.array(
|
|
1911
|
+
z52.object({
|
|
1912
|
+
from: z52.object({
|
|
1913
|
+
x: z52.number(),
|
|
1914
|
+
y: z52.number()
|
|
1953
1915
|
}),
|
|
1954
|
-
to:
|
|
1955
|
-
x:
|
|
1956
|
-
y:
|
|
1916
|
+
to: z52.object({
|
|
1917
|
+
x: z52.number(),
|
|
1918
|
+
y: z52.number()
|
|
1957
1919
|
}),
|
|
1958
|
-
is_crossing:
|
|
1959
|
-
from_schematic_port_id:
|
|
1960
|
-
to_schematic_port_id:
|
|
1920
|
+
is_crossing: z52.boolean().optional(),
|
|
1921
|
+
from_schematic_port_id: z52.string().optional(),
|
|
1922
|
+
to_schematic_port_id: z52.string().optional()
|
|
1961
1923
|
})
|
|
1962
1924
|
),
|
|
1963
|
-
subcircuit_id:
|
|
1925
|
+
subcircuit_id: z52.string().optional(),
|
|
1964
1926
|
// TODO: make required in a future release
|
|
1965
|
-
subcircuit_connectivity_map_key:
|
|
1927
|
+
subcircuit_connectivity_map_key: z52.string().optional()
|
|
1966
1928
|
});
|
|
1967
1929
|
expectTypesMatch(true);
|
|
1968
|
-
var fivePointAnchor =
|
|
1930
|
+
var fivePointAnchor = z53.enum([
|
|
1969
1931
|
"center",
|
|
1970
1932
|
"left",
|
|
1971
1933
|
"right",
|
|
@@ -1973,482 +1935,398 @@ var fivePointAnchor = z56.enum([
|
|
|
1973
1935
|
"bottom"
|
|
1974
1936
|
]);
|
|
1975
1937
|
expectTypesMatch(true);
|
|
1976
|
-
var schematic_text =
|
|
1977
|
-
type:
|
|
1978
|
-
schematic_component_id:
|
|
1979
|
-
schematic_text_id:
|
|
1980
|
-
text:
|
|
1981
|
-
font_size:
|
|
1982
|
-
position:
|
|
1938
|
+
var schematic_text = z54.object({
|
|
1939
|
+
type: z54.literal("schematic_text"),
|
|
1940
|
+
schematic_component_id: z54.string().optional(),
|
|
1941
|
+
schematic_text_id: z54.string(),
|
|
1942
|
+
text: z54.string(),
|
|
1943
|
+
font_size: z54.number().default(0.18),
|
|
1944
|
+
position: z54.object({
|
|
1983
1945
|
x: distance,
|
|
1984
1946
|
y: distance
|
|
1985
1947
|
}),
|
|
1986
|
-
rotation:
|
|
1987
|
-
anchor:
|
|
1988
|
-
color:
|
|
1989
|
-
subcircuit_id:
|
|
1948
|
+
rotation: z54.number().default(0),
|
|
1949
|
+
anchor: z54.union([fivePointAnchor.describe("legacy"), ninePointAnchor]).default("center"),
|
|
1950
|
+
color: z54.string().default("#000000"),
|
|
1951
|
+
subcircuit_id: z54.string().optional()
|
|
1990
1952
|
});
|
|
1991
1953
|
expectTypesMatch(true);
|
|
1992
|
-
var schematic_port =
|
|
1993
|
-
type:
|
|
1994
|
-
schematic_port_id:
|
|
1995
|
-
source_port_id:
|
|
1996
|
-
schematic_component_id:
|
|
1954
|
+
var schematic_port = z55.object({
|
|
1955
|
+
type: z55.literal("schematic_port"),
|
|
1956
|
+
schematic_port_id: z55.string(),
|
|
1957
|
+
source_port_id: z55.string(),
|
|
1958
|
+
schematic_component_id: z55.string().optional(),
|
|
1997
1959
|
center: point,
|
|
1998
|
-
facing_direction:
|
|
1999
|
-
distance_from_component_edge:
|
|
2000
|
-
side_of_component:
|
|
2001
|
-
true_ccw_index:
|
|
2002
|
-
pin_number:
|
|
2003
|
-
display_pin_label:
|
|
2004
|
-
subcircuit_id:
|
|
2005
|
-
is_connected:
|
|
2006
|
-
has_input_arrow:
|
|
2007
|
-
has_output_arrow:
|
|
1960
|
+
facing_direction: z55.enum(["up", "down", "left", "right"]).optional(),
|
|
1961
|
+
distance_from_component_edge: z55.number().optional(),
|
|
1962
|
+
side_of_component: z55.enum(["top", "bottom", "left", "right"]).optional(),
|
|
1963
|
+
true_ccw_index: z55.number().optional(),
|
|
1964
|
+
pin_number: z55.number().optional(),
|
|
1965
|
+
display_pin_label: z55.string().optional(),
|
|
1966
|
+
subcircuit_id: z55.string().optional(),
|
|
1967
|
+
is_connected: z55.boolean().optional(),
|
|
1968
|
+
has_input_arrow: z55.boolean().optional(),
|
|
1969
|
+
has_output_arrow: z55.boolean().optional()
|
|
2008
1970
|
}).describe("Defines a port on a schematic component");
|
|
2009
1971
|
expectTypesMatch(true);
|
|
2010
|
-
var schematic_net_label =
|
|
2011
|
-
type:
|
|
1972
|
+
var schematic_net_label = z56.object({
|
|
1973
|
+
type: z56.literal("schematic_net_label"),
|
|
2012
1974
|
schematic_net_label_id: getZodPrefixedIdWithDefault("schematic_net_label"),
|
|
2013
|
-
schematic_trace_id:
|
|
2014
|
-
source_trace_id:
|
|
2015
|
-
source_net_id:
|
|
1975
|
+
schematic_trace_id: z56.string().optional(),
|
|
1976
|
+
source_trace_id: z56.string().optional(),
|
|
1977
|
+
source_net_id: z56.string(),
|
|
2016
1978
|
center: point,
|
|
2017
1979
|
anchor_position: point.optional(),
|
|
2018
|
-
anchor_side:
|
|
2019
|
-
text:
|
|
2020
|
-
symbol_name:
|
|
2021
|
-
is_movable:
|
|
2022
|
-
subcircuit_id:
|
|
1980
|
+
anchor_side: z56.enum(["top", "bottom", "left", "right"]),
|
|
1981
|
+
text: z56.string(),
|
|
1982
|
+
symbol_name: z56.string().optional(),
|
|
1983
|
+
is_movable: z56.boolean().optional(),
|
|
1984
|
+
subcircuit_id: z56.string().optional()
|
|
2023
1985
|
});
|
|
2024
1986
|
expectTypesMatch(true);
|
|
2025
|
-
var schematic_error =
|
|
2026
|
-
type:
|
|
2027
|
-
schematic_error_id:
|
|
1987
|
+
var schematic_error = z57.object({
|
|
1988
|
+
type: z57.literal("schematic_error"),
|
|
1989
|
+
schematic_error_id: z57.string(),
|
|
2028
1990
|
// eventually each error type should be broken out into a dir of files
|
|
2029
|
-
error_type:
|
|
2030
|
-
message:
|
|
2031
|
-
subcircuit_id:
|
|
1991
|
+
error_type: z57.literal("schematic_port_not_found").default("schematic_port_not_found"),
|
|
1992
|
+
message: z57.string(),
|
|
1993
|
+
subcircuit_id: z57.string().optional()
|
|
2032
1994
|
}).describe("Defines a schematic error on the schematic");
|
|
2033
1995
|
expectTypesMatch(true);
|
|
2034
|
-
var schematic_layout_error =
|
|
2035
|
-
type:
|
|
1996
|
+
var schematic_layout_error = z58.object({
|
|
1997
|
+
type: z58.literal("schematic_layout_error"),
|
|
2036
1998
|
schematic_layout_error_id: getZodPrefixedIdWithDefault(
|
|
2037
1999
|
"schematic_layout_error"
|
|
2038
2000
|
),
|
|
2039
|
-
error_type:
|
|
2040
|
-
message:
|
|
2041
|
-
source_group_id:
|
|
2042
|
-
schematic_group_id:
|
|
2043
|
-
subcircuit_id:
|
|
2001
|
+
error_type: z58.literal("schematic_layout_error").default("schematic_layout_error"),
|
|
2002
|
+
message: z58.string(),
|
|
2003
|
+
source_group_id: z58.string(),
|
|
2004
|
+
schematic_group_id: z58.string(),
|
|
2005
|
+
subcircuit_id: z58.string().optional()
|
|
2044
2006
|
}).describe("Error emitted when schematic layout fails for a group");
|
|
2045
2007
|
expectTypesMatch(true);
|
|
2046
|
-
var schematic_debug_object_base =
|
|
2047
|
-
type:
|
|
2048
|
-
label:
|
|
2049
|
-
subcircuit_id:
|
|
2008
|
+
var schematic_debug_object_base = z59.object({
|
|
2009
|
+
type: z59.literal("schematic_debug_object"),
|
|
2010
|
+
label: z59.string().optional(),
|
|
2011
|
+
subcircuit_id: z59.string().optional()
|
|
2050
2012
|
});
|
|
2051
2013
|
var schematic_debug_rect = schematic_debug_object_base.extend({
|
|
2052
|
-
shape:
|
|
2014
|
+
shape: z59.literal("rect"),
|
|
2053
2015
|
center: point,
|
|
2054
2016
|
size
|
|
2055
2017
|
});
|
|
2056
2018
|
var schematic_debug_line = schematic_debug_object_base.extend({
|
|
2057
|
-
shape:
|
|
2019
|
+
shape: z59.literal("line"),
|
|
2058
2020
|
start: point,
|
|
2059
2021
|
end: point
|
|
2060
2022
|
});
|
|
2061
2023
|
var schematic_debug_point = schematic_debug_object_base.extend({
|
|
2062
|
-
shape:
|
|
2024
|
+
shape: z59.literal("point"),
|
|
2063
2025
|
center: point
|
|
2064
2026
|
});
|
|
2065
|
-
var schematic_debug_object =
|
|
2027
|
+
var schematic_debug_object = z59.discriminatedUnion("shape", [
|
|
2066
2028
|
schematic_debug_rect,
|
|
2067
2029
|
schematic_debug_line,
|
|
2068
2030
|
schematic_debug_point
|
|
2069
2031
|
]);
|
|
2070
2032
|
expectTypesMatch(true);
|
|
2071
|
-
var schematic_voltage_probe =
|
|
2072
|
-
type:
|
|
2073
|
-
schematic_voltage_probe_id:
|
|
2074
|
-
source_component_id: z63.string().optional(),
|
|
2075
|
-
name: z63.string().optional(),
|
|
2033
|
+
var schematic_voltage_probe = z60.object({
|
|
2034
|
+
type: z60.literal("schematic_voltage_probe"),
|
|
2035
|
+
schematic_voltage_probe_id: z60.string(),
|
|
2076
2036
|
position: point,
|
|
2077
|
-
schematic_trace_id:
|
|
2037
|
+
schematic_trace_id: z60.string(),
|
|
2078
2038
|
voltage: voltage.optional(),
|
|
2079
|
-
subcircuit_id:
|
|
2080
|
-
color: z63.string().optional()
|
|
2039
|
+
subcircuit_id: z60.string().optional()
|
|
2081
2040
|
}).describe("Defines a voltage probe measurement point on a schematic trace");
|
|
2082
2041
|
expectTypesMatch(true);
|
|
2083
|
-
var schematic_manual_edit_conflict_warning =
|
|
2084
|
-
type:
|
|
2042
|
+
var schematic_manual_edit_conflict_warning = z61.object({
|
|
2043
|
+
type: z61.literal("schematic_manual_edit_conflict_warning"),
|
|
2085
2044
|
schematic_manual_edit_conflict_warning_id: getZodPrefixedIdWithDefault(
|
|
2086
2045
|
"schematic_manual_edit_conflict_warning"
|
|
2087
2046
|
),
|
|
2088
|
-
warning_type:
|
|
2089
|
-
message:
|
|
2090
|
-
schematic_component_id:
|
|
2091
|
-
schematic_group_id:
|
|
2092
|
-
subcircuit_id:
|
|
2093
|
-
source_component_id:
|
|
2047
|
+
warning_type: z61.literal("schematic_manual_edit_conflict_warning").default("schematic_manual_edit_conflict_warning"),
|
|
2048
|
+
message: z61.string(),
|
|
2049
|
+
schematic_component_id: z61.string(),
|
|
2050
|
+
schematic_group_id: z61.string().optional(),
|
|
2051
|
+
subcircuit_id: z61.string().optional(),
|
|
2052
|
+
source_component_id: z61.string()
|
|
2094
2053
|
}).describe(
|
|
2095
2054
|
"Warning emitted when a component has both manual placement and explicit schX/schY coordinates"
|
|
2096
2055
|
);
|
|
2097
2056
|
expectTypesMatch(true);
|
|
2098
|
-
var schematic_group =
|
|
2099
|
-
type:
|
|
2057
|
+
var schematic_group = z62.object({
|
|
2058
|
+
type: z62.literal("schematic_group"),
|
|
2100
2059
|
schematic_group_id: getZodPrefixedIdWithDefault("schematic_group"),
|
|
2101
|
-
source_group_id:
|
|
2102
|
-
is_subcircuit:
|
|
2103
|
-
subcircuit_id:
|
|
2060
|
+
source_group_id: z62.string(),
|
|
2061
|
+
is_subcircuit: z62.boolean().optional(),
|
|
2062
|
+
subcircuit_id: z62.string().optional(),
|
|
2104
2063
|
width: length,
|
|
2105
2064
|
height: length,
|
|
2106
2065
|
center: point,
|
|
2107
|
-
schematic_component_ids:
|
|
2108
|
-
show_as_schematic_box:
|
|
2109
|
-
name:
|
|
2110
|
-
description:
|
|
2066
|
+
schematic_component_ids: z62.array(z62.string()),
|
|
2067
|
+
show_as_schematic_box: z62.boolean().optional(),
|
|
2068
|
+
name: z62.string().optional(),
|
|
2069
|
+
description: z62.string().optional()
|
|
2111
2070
|
}).describe("Defines a group of components on the schematic");
|
|
2112
2071
|
expectTypesMatch(true);
|
|
2113
|
-
var schematic_table =
|
|
2114
|
-
type:
|
|
2072
|
+
var schematic_table = z63.object({
|
|
2073
|
+
type: z63.literal("schematic_table"),
|
|
2115
2074
|
schematic_table_id: getZodPrefixedIdWithDefault("schematic_table"),
|
|
2116
2075
|
anchor_position: point,
|
|
2117
|
-
column_widths:
|
|
2118
|
-
row_heights:
|
|
2076
|
+
column_widths: z63.array(distance),
|
|
2077
|
+
row_heights: z63.array(distance),
|
|
2119
2078
|
cell_padding: distance.optional(),
|
|
2120
2079
|
border_width: distance.optional(),
|
|
2121
|
-
subcircuit_id:
|
|
2122
|
-
schematic_component_id:
|
|
2080
|
+
subcircuit_id: z63.string().optional(),
|
|
2081
|
+
schematic_component_id: z63.string().optional(),
|
|
2123
2082
|
anchor: ninePointAnchor.optional()
|
|
2124
2083
|
}).describe("Defines a table on the schematic");
|
|
2125
2084
|
expectTypesMatch(true);
|
|
2126
|
-
var schematic_table_cell =
|
|
2127
|
-
type:
|
|
2085
|
+
var schematic_table_cell = z64.object({
|
|
2086
|
+
type: z64.literal("schematic_table_cell"),
|
|
2128
2087
|
schematic_table_cell_id: getZodPrefixedIdWithDefault(
|
|
2129
2088
|
"schematic_table_cell"
|
|
2130
2089
|
),
|
|
2131
|
-
schematic_table_id:
|
|
2132
|
-
start_row_index:
|
|
2133
|
-
end_row_index:
|
|
2134
|
-
start_column_index:
|
|
2135
|
-
end_column_index:
|
|
2136
|
-
text:
|
|
2090
|
+
schematic_table_id: z64.string(),
|
|
2091
|
+
start_row_index: z64.number(),
|
|
2092
|
+
end_row_index: z64.number(),
|
|
2093
|
+
start_column_index: z64.number(),
|
|
2094
|
+
end_column_index: z64.number(),
|
|
2095
|
+
text: z64.string().optional(),
|
|
2137
2096
|
center: point,
|
|
2138
2097
|
width: distance,
|
|
2139
2098
|
height: distance,
|
|
2140
|
-
horizontal_align:
|
|
2141
|
-
vertical_align:
|
|
2099
|
+
horizontal_align: z64.enum(["left", "center", "right"]).optional(),
|
|
2100
|
+
vertical_align: z64.enum(["top", "middle", "bottom"]).optional(),
|
|
2142
2101
|
font_size: distance.optional(),
|
|
2143
|
-
subcircuit_id:
|
|
2102
|
+
subcircuit_id: z64.string().optional()
|
|
2144
2103
|
}).describe("Defines a cell within a schematic_table");
|
|
2145
2104
|
expectTypesMatch(true);
|
|
2146
|
-
var schematic_sheet =
|
|
2147
|
-
type:
|
|
2105
|
+
var schematic_sheet = z65.object({
|
|
2106
|
+
type: z65.literal("schematic_sheet"),
|
|
2148
2107
|
schematic_sheet_id: getZodPrefixedIdWithDefault("schematic_sheet"),
|
|
2149
|
-
name:
|
|
2150
|
-
subcircuit_id:
|
|
2108
|
+
name: z65.string().optional(),
|
|
2109
|
+
subcircuit_id: z65.string().optional()
|
|
2151
2110
|
}).describe(
|
|
2152
2111
|
"Defines a schematic sheet or page that components can be placed on"
|
|
2153
2112
|
);
|
|
2154
2113
|
expectTypesMatch(true);
|
|
2155
|
-
var point_with_bulge =
|
|
2114
|
+
var point_with_bulge = z66.object({
|
|
2156
2115
|
x: distance,
|
|
2157
2116
|
y: distance,
|
|
2158
|
-
bulge:
|
|
2117
|
+
bulge: z66.number().optional()
|
|
2159
2118
|
});
|
|
2160
2119
|
expectTypesMatch(true);
|
|
2161
|
-
var ring =
|
|
2162
|
-
vertices:
|
|
2120
|
+
var ring = z66.object({
|
|
2121
|
+
vertices: z66.array(point_with_bulge)
|
|
2163
2122
|
});
|
|
2164
2123
|
expectTypesMatch(true);
|
|
2165
|
-
var brep_shape =
|
|
2124
|
+
var brep_shape = z66.object({
|
|
2166
2125
|
outer_ring: ring,
|
|
2167
|
-
inner_rings:
|
|
2126
|
+
inner_rings: z66.array(ring).default([])
|
|
2168
2127
|
});
|
|
2169
2128
|
expectTypesMatch(true);
|
|
2170
|
-
var pcb_route_hint =
|
|
2129
|
+
var pcb_route_hint = z67.object({
|
|
2171
2130
|
x: distance,
|
|
2172
2131
|
y: distance,
|
|
2173
|
-
via:
|
|
2132
|
+
via: z67.boolean().optional(),
|
|
2174
2133
|
via_to_layer: layer_ref.optional()
|
|
2175
2134
|
});
|
|
2176
|
-
var pcb_route_hints =
|
|
2135
|
+
var pcb_route_hints = z67.array(pcb_route_hint);
|
|
2177
2136
|
expectTypesMatch(true);
|
|
2178
2137
|
expectTypesMatch(true);
|
|
2179
|
-
var route_hint_point =
|
|
2138
|
+
var route_hint_point = z68.object({
|
|
2180
2139
|
x: distance,
|
|
2181
2140
|
y: distance,
|
|
2182
|
-
via:
|
|
2141
|
+
via: z68.boolean().optional(),
|
|
2183
2142
|
to_layer: layer_ref.optional(),
|
|
2184
2143
|
trace_width: distance.optional()
|
|
2185
2144
|
});
|
|
2186
2145
|
expectTypesMatch(true);
|
|
2187
|
-
var pcb_component =
|
|
2188
|
-
type:
|
|
2146
|
+
var pcb_component = z69.object({
|
|
2147
|
+
type: z69.literal("pcb_component"),
|
|
2189
2148
|
pcb_component_id: getZodPrefixedIdWithDefault("pcb_component"),
|
|
2190
|
-
source_component_id:
|
|
2149
|
+
source_component_id: z69.string(),
|
|
2191
2150
|
center: point,
|
|
2192
2151
|
layer: layer_ref,
|
|
2193
2152
|
rotation,
|
|
2194
2153
|
width: length,
|
|
2195
2154
|
height: length,
|
|
2196
|
-
do_not_place:
|
|
2197
|
-
subcircuit_id:
|
|
2198
|
-
pcb_group_id:
|
|
2199
|
-
|
|
2200
|
-
positioned_relative_to_pcb_group_id: z72.string().optional(),
|
|
2201
|
-
obstructs_within_bounds: z72.boolean().default(true).describe(
|
|
2155
|
+
do_not_place: z69.boolean().optional(),
|
|
2156
|
+
subcircuit_id: z69.string().optional(),
|
|
2157
|
+
pcb_group_id: z69.string().optional(),
|
|
2158
|
+
obstructs_within_bounds: z69.boolean().default(true).describe(
|
|
2202
2159
|
"Does this component take up all the space within its bounds on a layer. This is generally true except for when separated pin headers are being represented by a single component (in which case, chips can be placed between the pin headers) or for tall modules where chips fit underneath"
|
|
2203
2160
|
)
|
|
2204
2161
|
}).describe("Defines a component on the PCB");
|
|
2205
2162
|
expectTypesMatch(true);
|
|
2206
|
-
var
|
|
2207
|
-
type:
|
|
2208
|
-
pcb_hole_id: getZodPrefixedIdWithDefault("pcb_hole"),
|
|
2209
|
-
pcb_group_id: z73.string().optional(),
|
|
2210
|
-
subcircuit_id: z73.string().optional(),
|
|
2211
|
-
hole_shape: z73.literal("circle"),
|
|
2212
|
-
hole_diameter: z73.number(),
|
|
2213
|
-
x: distance,
|
|
2214
|
-
y: distance,
|
|
2215
|
-
is_covered_with_solder_mask: z73.boolean().optional(),
|
|
2216
|
-
soldermask_margin: z73.number().optional()
|
|
2217
|
-
});
|
|
2218
|
-
var pcb_hole_circle_shape = pcb_hole_circle.describe(
|
|
2219
|
-
"Defines a circular hole on the PCB"
|
|
2220
|
-
);
|
|
2221
|
-
expectTypesMatch(true);
|
|
2222
|
-
var pcb_hole_rect = z73.object({
|
|
2223
|
-
type: z73.literal("pcb_hole"),
|
|
2224
|
-
pcb_hole_id: getZodPrefixedIdWithDefault("pcb_hole"),
|
|
2225
|
-
pcb_group_id: z73.string().optional(),
|
|
2226
|
-
subcircuit_id: z73.string().optional(),
|
|
2227
|
-
hole_shape: z73.literal("rect"),
|
|
2228
|
-
hole_width: z73.number(),
|
|
2229
|
-
hole_height: z73.number(),
|
|
2230
|
-
x: distance,
|
|
2231
|
-
y: distance,
|
|
2232
|
-
is_covered_with_solder_mask: z73.boolean().optional(),
|
|
2233
|
-
soldermask_margin: z73.number().optional()
|
|
2234
|
-
});
|
|
2235
|
-
var pcb_hole_rect_shape = pcb_hole_rect.describe(
|
|
2236
|
-
"Defines a rectangular (square-capable) hole on the PCB. Use equal width/height for square."
|
|
2237
|
-
);
|
|
2238
|
-
expectTypesMatch(true);
|
|
2239
|
-
var pcb_hole_circle_or_square = z73.object({
|
|
2240
|
-
type: z73.literal("pcb_hole"),
|
|
2163
|
+
var pcb_hole_circle_or_square = z70.object({
|
|
2164
|
+
type: z70.literal("pcb_hole"),
|
|
2241
2165
|
pcb_hole_id: getZodPrefixedIdWithDefault("pcb_hole"),
|
|
2242
|
-
pcb_group_id:
|
|
2243
|
-
subcircuit_id:
|
|
2244
|
-
hole_shape:
|
|
2245
|
-
hole_diameter:
|
|
2166
|
+
pcb_group_id: z70.string().optional(),
|
|
2167
|
+
subcircuit_id: z70.string().optional(),
|
|
2168
|
+
hole_shape: z70.enum(["circle", "square"]),
|
|
2169
|
+
hole_diameter: z70.number(),
|
|
2246
2170
|
x: distance,
|
|
2247
|
-
y: distance
|
|
2248
|
-
is_covered_with_solder_mask: z73.boolean().optional(),
|
|
2249
|
-
soldermask_margin: z73.number().optional()
|
|
2171
|
+
y: distance
|
|
2250
2172
|
});
|
|
2251
2173
|
var pcb_hole_circle_or_square_shape = pcb_hole_circle_or_square.describe(
|
|
2252
2174
|
"Defines a circular or square hole on the PCB"
|
|
2253
2175
|
);
|
|
2254
2176
|
expectTypesMatch(true);
|
|
2255
|
-
var pcb_hole_oval =
|
|
2256
|
-
type:
|
|
2177
|
+
var pcb_hole_oval = z70.object({
|
|
2178
|
+
type: z70.literal("pcb_hole"),
|
|
2257
2179
|
pcb_hole_id: getZodPrefixedIdWithDefault("pcb_hole"),
|
|
2258
|
-
pcb_group_id:
|
|
2259
|
-
subcircuit_id:
|
|
2260
|
-
hole_shape:
|
|
2261
|
-
hole_width:
|
|
2262
|
-
hole_height:
|
|
2180
|
+
pcb_group_id: z70.string().optional(),
|
|
2181
|
+
subcircuit_id: z70.string().optional(),
|
|
2182
|
+
hole_shape: z70.literal("oval"),
|
|
2183
|
+
hole_width: z70.number(),
|
|
2184
|
+
hole_height: z70.number(),
|
|
2263
2185
|
x: distance,
|
|
2264
|
-
y: distance
|
|
2265
|
-
is_covered_with_solder_mask: z73.boolean().optional(),
|
|
2266
|
-
soldermask_margin: z73.number().optional()
|
|
2186
|
+
y: distance
|
|
2267
2187
|
});
|
|
2268
2188
|
var pcb_hole_oval_shape = pcb_hole_oval.describe(
|
|
2269
2189
|
"Defines an oval hole on the PCB"
|
|
2270
2190
|
);
|
|
2271
2191
|
expectTypesMatch(true);
|
|
2272
|
-
var pcb_hole_pill =
|
|
2273
|
-
type:
|
|
2192
|
+
var pcb_hole_pill = z70.object({
|
|
2193
|
+
type: z70.literal("pcb_hole"),
|
|
2274
2194
|
pcb_hole_id: getZodPrefixedIdWithDefault("pcb_hole"),
|
|
2275
|
-
pcb_group_id:
|
|
2276
|
-
subcircuit_id:
|
|
2277
|
-
hole_shape:
|
|
2278
|
-
hole_width:
|
|
2279
|
-
hole_height:
|
|
2195
|
+
pcb_group_id: z70.string().optional(),
|
|
2196
|
+
subcircuit_id: z70.string().optional(),
|
|
2197
|
+
hole_shape: z70.literal("pill"),
|
|
2198
|
+
hole_width: z70.number(),
|
|
2199
|
+
hole_height: z70.number(),
|
|
2280
2200
|
x: distance,
|
|
2281
|
-
y: distance
|
|
2282
|
-
is_covered_with_solder_mask: z73.boolean().optional(),
|
|
2283
|
-
soldermask_margin: z73.number().optional()
|
|
2201
|
+
y: distance
|
|
2284
2202
|
});
|
|
2285
2203
|
var pcb_hole_pill_shape = pcb_hole_pill.describe(
|
|
2286
2204
|
"Defines a pill-shaped hole on the PCB"
|
|
2287
2205
|
);
|
|
2288
2206
|
expectTypesMatch(true);
|
|
2289
|
-
var pcb_hole_rotated_pill =
|
|
2290
|
-
type:
|
|
2207
|
+
var pcb_hole_rotated_pill = z70.object({
|
|
2208
|
+
type: z70.literal("pcb_hole"),
|
|
2291
2209
|
pcb_hole_id: getZodPrefixedIdWithDefault("pcb_hole"),
|
|
2292
|
-
pcb_group_id:
|
|
2293
|
-
subcircuit_id:
|
|
2294
|
-
hole_shape:
|
|
2295
|
-
hole_width:
|
|
2296
|
-
hole_height:
|
|
2210
|
+
pcb_group_id: z70.string().optional(),
|
|
2211
|
+
subcircuit_id: z70.string().optional(),
|
|
2212
|
+
hole_shape: z70.literal("rotated_pill"),
|
|
2213
|
+
hole_width: z70.number(),
|
|
2214
|
+
hole_height: z70.number(),
|
|
2297
2215
|
x: distance,
|
|
2298
2216
|
y: distance,
|
|
2299
|
-
ccw_rotation: rotation
|
|
2300
|
-
is_covered_with_solder_mask: z73.boolean().optional(),
|
|
2301
|
-
soldermask_margin: z73.number().optional()
|
|
2217
|
+
ccw_rotation: rotation
|
|
2302
2218
|
});
|
|
2303
2219
|
var pcb_hole_rotated_pill_shape = pcb_hole_rotated_pill.describe(
|
|
2304
2220
|
"Defines a rotated pill-shaped hole on the PCB"
|
|
2305
2221
|
);
|
|
2306
2222
|
expectTypesMatch(true);
|
|
2307
|
-
var pcb_hole = pcb_hole_circle_or_square.or(pcb_hole_oval).or(pcb_hole_pill).or(pcb_hole_rotated_pill)
|
|
2308
|
-
var pcb_plated_hole_circle =
|
|
2309
|
-
type:
|
|
2310
|
-
shape:
|
|
2311
|
-
pcb_group_id:
|
|
2312
|
-
subcircuit_id:
|
|
2313
|
-
outer_diameter:
|
|
2314
|
-
hole_diameter:
|
|
2315
|
-
is_covered_with_solder_mask: z74.boolean().optional(),
|
|
2223
|
+
var pcb_hole = pcb_hole_circle_or_square.or(pcb_hole_oval).or(pcb_hole_pill).or(pcb_hole_rotated_pill);
|
|
2224
|
+
var pcb_plated_hole_circle = z71.object({
|
|
2225
|
+
type: z71.literal("pcb_plated_hole"),
|
|
2226
|
+
shape: z71.literal("circle"),
|
|
2227
|
+
pcb_group_id: z71.string().optional(),
|
|
2228
|
+
subcircuit_id: z71.string().optional(),
|
|
2229
|
+
outer_diameter: z71.number(),
|
|
2230
|
+
hole_diameter: z71.number(),
|
|
2316
2231
|
x: distance,
|
|
2317
2232
|
y: distance,
|
|
2318
|
-
layers:
|
|
2319
|
-
port_hints:
|
|
2320
|
-
pcb_component_id:
|
|
2321
|
-
pcb_port_id:
|
|
2322
|
-
pcb_plated_hole_id: getZodPrefixedIdWithDefault("pcb_plated_hole")
|
|
2323
|
-
soldermask_margin: z74.number().optional()
|
|
2233
|
+
layers: z71.array(layer_ref),
|
|
2234
|
+
port_hints: z71.array(z71.string()).optional(),
|
|
2235
|
+
pcb_component_id: z71.string().optional(),
|
|
2236
|
+
pcb_port_id: z71.string().optional(),
|
|
2237
|
+
pcb_plated_hole_id: getZodPrefixedIdWithDefault("pcb_plated_hole")
|
|
2324
2238
|
});
|
|
2325
|
-
var pcb_plated_hole_oval =
|
|
2326
|
-
type:
|
|
2327
|
-
shape:
|
|
2328
|
-
pcb_group_id:
|
|
2329
|
-
subcircuit_id:
|
|
2330
|
-
outer_width:
|
|
2331
|
-
outer_height:
|
|
2332
|
-
hole_width:
|
|
2333
|
-
hole_height:
|
|
2334
|
-
is_covered_with_solder_mask: z74.boolean().optional(),
|
|
2239
|
+
var pcb_plated_hole_oval = z71.object({
|
|
2240
|
+
type: z71.literal("pcb_plated_hole"),
|
|
2241
|
+
shape: z71.enum(["oval", "pill"]),
|
|
2242
|
+
pcb_group_id: z71.string().optional(),
|
|
2243
|
+
subcircuit_id: z71.string().optional(),
|
|
2244
|
+
outer_width: z71.number(),
|
|
2245
|
+
outer_height: z71.number(),
|
|
2246
|
+
hole_width: z71.number(),
|
|
2247
|
+
hole_height: z71.number(),
|
|
2335
2248
|
x: distance,
|
|
2336
2249
|
y: distance,
|
|
2337
2250
|
ccw_rotation: rotation,
|
|
2338
|
-
layers:
|
|
2339
|
-
port_hints:
|
|
2340
|
-
pcb_component_id:
|
|
2341
|
-
pcb_port_id:
|
|
2342
|
-
pcb_plated_hole_id: getZodPrefixedIdWithDefault("pcb_plated_hole")
|
|
2343
|
-
soldermask_margin: z74.number().optional()
|
|
2251
|
+
layers: z71.array(layer_ref),
|
|
2252
|
+
port_hints: z71.array(z71.string()).optional(),
|
|
2253
|
+
pcb_component_id: z71.string().optional(),
|
|
2254
|
+
pcb_port_id: z71.string().optional(),
|
|
2255
|
+
pcb_plated_hole_id: getZodPrefixedIdWithDefault("pcb_plated_hole")
|
|
2344
2256
|
});
|
|
2345
|
-
var pcb_circular_hole_with_rect_pad =
|
|
2346
|
-
type:
|
|
2347
|
-
shape:
|
|
2348
|
-
pcb_group_id:
|
|
2349
|
-
subcircuit_id:
|
|
2350
|
-
hole_shape:
|
|
2351
|
-
pad_shape:
|
|
2352
|
-
hole_diameter:
|
|
2353
|
-
rect_pad_width:
|
|
2354
|
-
rect_pad_height:
|
|
2355
|
-
rect_border_radius:
|
|
2257
|
+
var pcb_circular_hole_with_rect_pad = z71.object({
|
|
2258
|
+
type: z71.literal("pcb_plated_hole"),
|
|
2259
|
+
shape: z71.literal("circular_hole_with_rect_pad"),
|
|
2260
|
+
pcb_group_id: z71.string().optional(),
|
|
2261
|
+
subcircuit_id: z71.string().optional(),
|
|
2262
|
+
hole_shape: z71.literal("circle"),
|
|
2263
|
+
pad_shape: z71.literal("rect"),
|
|
2264
|
+
hole_diameter: z71.number(),
|
|
2265
|
+
rect_pad_width: z71.number(),
|
|
2266
|
+
rect_pad_height: z71.number(),
|
|
2267
|
+
rect_border_radius: z71.number().optional(),
|
|
2356
2268
|
hole_offset_x: distance.default(0),
|
|
2357
2269
|
hole_offset_y: distance.default(0),
|
|
2358
|
-
is_covered_with_solder_mask: z74.boolean().optional(),
|
|
2359
2270
|
x: distance,
|
|
2360
2271
|
y: distance,
|
|
2361
|
-
layers:
|
|
2362
|
-
port_hints:
|
|
2363
|
-
pcb_component_id:
|
|
2364
|
-
pcb_port_id:
|
|
2365
|
-
pcb_plated_hole_id: getZodPrefixedIdWithDefault("pcb_plated_hole")
|
|
2366
|
-
soldermask_margin: z74.number().optional()
|
|
2272
|
+
layers: z71.array(layer_ref),
|
|
2273
|
+
port_hints: z71.array(z71.string()).optional(),
|
|
2274
|
+
pcb_component_id: z71.string().optional(),
|
|
2275
|
+
pcb_port_id: z71.string().optional(),
|
|
2276
|
+
pcb_plated_hole_id: getZodPrefixedIdWithDefault("pcb_plated_hole")
|
|
2367
2277
|
});
|
|
2368
|
-
var pcb_pill_hole_with_rect_pad =
|
|
2369
|
-
type:
|
|
2370
|
-
shape:
|
|
2371
|
-
pcb_group_id:
|
|
2372
|
-
subcircuit_id:
|
|
2373
|
-
hole_shape:
|
|
2374
|
-
pad_shape:
|
|
2375
|
-
hole_width:
|
|
2376
|
-
hole_height:
|
|
2377
|
-
rect_pad_width:
|
|
2378
|
-
rect_pad_height:
|
|
2379
|
-
rect_border_radius:
|
|
2278
|
+
var pcb_pill_hole_with_rect_pad = z71.object({
|
|
2279
|
+
type: z71.literal("pcb_plated_hole"),
|
|
2280
|
+
shape: z71.literal("pill_hole_with_rect_pad"),
|
|
2281
|
+
pcb_group_id: z71.string().optional(),
|
|
2282
|
+
subcircuit_id: z71.string().optional(),
|
|
2283
|
+
hole_shape: z71.literal("pill"),
|
|
2284
|
+
pad_shape: z71.literal("rect"),
|
|
2285
|
+
hole_width: z71.number(),
|
|
2286
|
+
hole_height: z71.number(),
|
|
2287
|
+
rect_pad_width: z71.number(),
|
|
2288
|
+
rect_pad_height: z71.number(),
|
|
2289
|
+
rect_border_radius: z71.number().optional(),
|
|
2380
2290
|
hole_offset_x: distance.default(0),
|
|
2381
2291
|
hole_offset_y: distance.default(0),
|
|
2382
|
-
is_covered_with_solder_mask: z74.boolean().optional(),
|
|
2383
2292
|
x: distance,
|
|
2384
2293
|
y: distance,
|
|
2385
|
-
layers:
|
|
2386
|
-
port_hints:
|
|
2387
|
-
pcb_component_id:
|
|
2388
|
-
pcb_port_id:
|
|
2389
|
-
pcb_plated_hole_id: getZodPrefixedIdWithDefault("pcb_plated_hole")
|
|
2390
|
-
soldermask_margin: z74.number().optional()
|
|
2294
|
+
layers: z71.array(layer_ref),
|
|
2295
|
+
port_hints: z71.array(z71.string()).optional(),
|
|
2296
|
+
pcb_component_id: z71.string().optional(),
|
|
2297
|
+
pcb_port_id: z71.string().optional(),
|
|
2298
|
+
pcb_plated_hole_id: getZodPrefixedIdWithDefault("pcb_plated_hole")
|
|
2391
2299
|
});
|
|
2392
|
-
var pcb_rotated_pill_hole_with_rect_pad =
|
|
2393
|
-
type:
|
|
2394
|
-
shape:
|
|
2395
|
-
pcb_group_id:
|
|
2396
|
-
subcircuit_id:
|
|
2397
|
-
hole_shape:
|
|
2398
|
-
pad_shape:
|
|
2399
|
-
hole_width:
|
|
2400
|
-
hole_height:
|
|
2300
|
+
var pcb_rotated_pill_hole_with_rect_pad = z71.object({
|
|
2301
|
+
type: z71.literal("pcb_plated_hole"),
|
|
2302
|
+
shape: z71.literal("rotated_pill_hole_with_rect_pad"),
|
|
2303
|
+
pcb_group_id: z71.string().optional(),
|
|
2304
|
+
subcircuit_id: z71.string().optional(),
|
|
2305
|
+
hole_shape: z71.literal("rotated_pill"),
|
|
2306
|
+
pad_shape: z71.literal("rect"),
|
|
2307
|
+
hole_width: z71.number(),
|
|
2308
|
+
hole_height: z71.number(),
|
|
2401
2309
|
hole_ccw_rotation: rotation,
|
|
2402
|
-
rect_pad_width:
|
|
2403
|
-
rect_pad_height:
|
|
2404
|
-
rect_border_radius:
|
|
2310
|
+
rect_pad_width: z71.number(),
|
|
2311
|
+
rect_pad_height: z71.number(),
|
|
2312
|
+
rect_border_radius: z71.number().optional(),
|
|
2405
2313
|
rect_ccw_rotation: rotation,
|
|
2406
2314
|
hole_offset_x: distance.default(0),
|
|
2407
2315
|
hole_offset_y: distance.default(0),
|
|
2408
|
-
is_covered_with_solder_mask: z74.boolean().optional(),
|
|
2409
|
-
x: distance,
|
|
2410
|
-
y: distance,
|
|
2411
|
-
layers: z74.array(layer_ref),
|
|
2412
|
-
port_hints: z74.array(z74.string()).optional(),
|
|
2413
|
-
pcb_component_id: z74.string().optional(),
|
|
2414
|
-
pcb_port_id: z74.string().optional(),
|
|
2415
|
-
pcb_plated_hole_id: getZodPrefixedIdWithDefault("pcb_plated_hole"),
|
|
2416
|
-
soldermask_margin: z74.number().optional()
|
|
2417
|
-
});
|
|
2418
|
-
var pcb_hole_with_polygon_pad = z74.object({
|
|
2419
|
-
type: z74.literal("pcb_plated_hole"),
|
|
2420
|
-
shape: z74.literal("hole_with_polygon_pad"),
|
|
2421
|
-
pcb_group_id: z74.string().optional(),
|
|
2422
|
-
subcircuit_id: z74.string().optional(),
|
|
2423
|
-
hole_shape: z74.enum(["circle", "oval", "pill", "rotated_pill"]),
|
|
2424
|
-
hole_diameter: z74.number().optional(),
|
|
2425
|
-
hole_width: z74.number().optional(),
|
|
2426
|
-
hole_height: z74.number().optional(),
|
|
2427
|
-
pad_outline: z74.array(
|
|
2428
|
-
z74.object({
|
|
2429
|
-
x: distance,
|
|
2430
|
-
y: distance
|
|
2431
|
-
})
|
|
2432
|
-
).min(3),
|
|
2433
|
-
hole_offset_x: distance.default(0),
|
|
2434
|
-
hole_offset_y: distance.default(0),
|
|
2435
|
-
is_covered_with_solder_mask: z74.boolean().optional(),
|
|
2436
2316
|
x: distance,
|
|
2437
2317
|
y: distance,
|
|
2438
|
-
layers:
|
|
2439
|
-
port_hints:
|
|
2440
|
-
pcb_component_id:
|
|
2441
|
-
pcb_port_id:
|
|
2442
|
-
pcb_plated_hole_id: getZodPrefixedIdWithDefault("pcb_plated_hole")
|
|
2443
|
-
soldermask_margin: z74.number().optional()
|
|
2318
|
+
layers: z71.array(layer_ref),
|
|
2319
|
+
port_hints: z71.array(z71.string()).optional(),
|
|
2320
|
+
pcb_component_id: z71.string().optional(),
|
|
2321
|
+
pcb_port_id: z71.string().optional(),
|
|
2322
|
+
pcb_plated_hole_id: getZodPrefixedIdWithDefault("pcb_plated_hole")
|
|
2444
2323
|
});
|
|
2445
|
-
var pcb_plated_hole =
|
|
2324
|
+
var pcb_plated_hole = z71.union([
|
|
2446
2325
|
pcb_plated_hole_circle,
|
|
2447
2326
|
pcb_plated_hole_oval,
|
|
2448
2327
|
pcb_circular_hole_with_rect_pad,
|
|
2449
2328
|
pcb_pill_hole_with_rect_pad,
|
|
2450
|
-
pcb_rotated_pill_hole_with_rect_pad
|
|
2451
|
-
pcb_hole_with_polygon_pad
|
|
2329
|
+
pcb_rotated_pill_hole_with_rect_pad
|
|
2452
2330
|
]);
|
|
2453
2331
|
expectTypesMatch(
|
|
2454
2332
|
true
|
|
@@ -2457,127 +2335,120 @@ expectTypesMatch(true);
|
|
|
2457
2335
|
expectTypesMatch(true);
|
|
2458
2336
|
expectTypesMatch(true);
|
|
2459
2337
|
expectTypesMatch(true);
|
|
2460
|
-
|
|
2461
|
-
|
|
2462
|
-
type: z75.literal("pcb_port"),
|
|
2338
|
+
var pcb_port = z72.object({
|
|
2339
|
+
type: z72.literal("pcb_port"),
|
|
2463
2340
|
pcb_port_id: getZodPrefixedIdWithDefault("pcb_port"),
|
|
2464
|
-
pcb_group_id:
|
|
2465
|
-
subcircuit_id:
|
|
2466
|
-
source_port_id:
|
|
2467
|
-
pcb_component_id:
|
|
2341
|
+
pcb_group_id: z72.string().optional(),
|
|
2342
|
+
subcircuit_id: z72.string().optional(),
|
|
2343
|
+
source_port_id: z72.string(),
|
|
2344
|
+
pcb_component_id: z72.string().optional(),
|
|
2468
2345
|
x: distance,
|
|
2469
2346
|
y: distance,
|
|
2470
|
-
layers:
|
|
2471
|
-
is_board_pinout:
|
|
2347
|
+
layers: z72.array(layer_ref),
|
|
2348
|
+
is_board_pinout: z72.boolean().optional()
|
|
2472
2349
|
}).describe("Defines a port on the PCB");
|
|
2473
2350
|
expectTypesMatch(true);
|
|
2474
|
-
var pcb_smtpad_circle =
|
|
2475
|
-
type:
|
|
2476
|
-
shape:
|
|
2351
|
+
var pcb_smtpad_circle = z73.object({
|
|
2352
|
+
type: z73.literal("pcb_smtpad"),
|
|
2353
|
+
shape: z73.literal("circle"),
|
|
2477
2354
|
pcb_smtpad_id: getZodPrefixedIdWithDefault("pcb_smtpad"),
|
|
2478
|
-
pcb_group_id:
|
|
2479
|
-
subcircuit_id:
|
|
2355
|
+
pcb_group_id: z73.string().optional(),
|
|
2356
|
+
subcircuit_id: z73.string().optional(),
|
|
2480
2357
|
x: distance,
|
|
2481
2358
|
y: distance,
|
|
2482
|
-
radius:
|
|
2359
|
+
radius: z73.number(),
|
|
2483
2360
|
layer: layer_ref,
|
|
2484
|
-
port_hints:
|
|
2485
|
-
pcb_component_id:
|
|
2486
|
-
pcb_port_id:
|
|
2487
|
-
is_covered_with_solder_mask:
|
|
2488
|
-
soldermask_margin: z76.number().optional()
|
|
2361
|
+
port_hints: z73.array(z73.string()).optional(),
|
|
2362
|
+
pcb_component_id: z73.string().optional(),
|
|
2363
|
+
pcb_port_id: z73.string().optional(),
|
|
2364
|
+
is_covered_with_solder_mask: z73.boolean().optional()
|
|
2489
2365
|
});
|
|
2490
|
-
var pcb_smtpad_rect =
|
|
2491
|
-
type:
|
|
2492
|
-
shape:
|
|
2366
|
+
var pcb_smtpad_rect = z73.object({
|
|
2367
|
+
type: z73.literal("pcb_smtpad"),
|
|
2368
|
+
shape: z73.literal("rect"),
|
|
2493
2369
|
pcb_smtpad_id: getZodPrefixedIdWithDefault("pcb_smtpad"),
|
|
2494
|
-
pcb_group_id:
|
|
2495
|
-
subcircuit_id:
|
|
2370
|
+
pcb_group_id: z73.string().optional(),
|
|
2371
|
+
subcircuit_id: z73.string().optional(),
|
|
2496
2372
|
x: distance,
|
|
2497
2373
|
y: distance,
|
|
2498
|
-
width:
|
|
2499
|
-
height:
|
|
2500
|
-
rect_border_radius:
|
|
2501
|
-
corner_radius:
|
|
2374
|
+
width: z73.number(),
|
|
2375
|
+
height: z73.number(),
|
|
2376
|
+
rect_border_radius: z73.number().optional(),
|
|
2377
|
+
corner_radius: z73.number().optional(),
|
|
2502
2378
|
layer: layer_ref,
|
|
2503
|
-
port_hints:
|
|
2504
|
-
pcb_component_id:
|
|
2505
|
-
pcb_port_id:
|
|
2506
|
-
is_covered_with_solder_mask:
|
|
2507
|
-
soldermask_margin: z76.number().optional()
|
|
2379
|
+
port_hints: z73.array(z73.string()).optional(),
|
|
2380
|
+
pcb_component_id: z73.string().optional(),
|
|
2381
|
+
pcb_port_id: z73.string().optional(),
|
|
2382
|
+
is_covered_with_solder_mask: z73.boolean().optional()
|
|
2508
2383
|
});
|
|
2509
|
-
var pcb_smtpad_rotated_rect =
|
|
2510
|
-
type:
|
|
2511
|
-
shape:
|
|
2384
|
+
var pcb_smtpad_rotated_rect = z73.object({
|
|
2385
|
+
type: z73.literal("pcb_smtpad"),
|
|
2386
|
+
shape: z73.literal("rotated_rect"),
|
|
2512
2387
|
pcb_smtpad_id: getZodPrefixedIdWithDefault("pcb_smtpad"),
|
|
2513
|
-
pcb_group_id:
|
|
2514
|
-
subcircuit_id:
|
|
2388
|
+
pcb_group_id: z73.string().optional(),
|
|
2389
|
+
subcircuit_id: z73.string().optional(),
|
|
2515
2390
|
x: distance,
|
|
2516
2391
|
y: distance,
|
|
2517
|
-
width:
|
|
2518
|
-
height:
|
|
2519
|
-
rect_border_radius:
|
|
2520
|
-
corner_radius:
|
|
2392
|
+
width: z73.number(),
|
|
2393
|
+
height: z73.number(),
|
|
2394
|
+
rect_border_radius: z73.number().optional(),
|
|
2395
|
+
corner_radius: z73.number().optional(),
|
|
2521
2396
|
ccw_rotation: rotation,
|
|
2522
2397
|
layer: layer_ref,
|
|
2523
|
-
port_hints:
|
|
2524
|
-
pcb_component_id:
|
|
2525
|
-
pcb_port_id:
|
|
2526
|
-
is_covered_with_solder_mask:
|
|
2527
|
-
soldermask_margin: z76.number().optional()
|
|
2398
|
+
port_hints: z73.array(z73.string()).optional(),
|
|
2399
|
+
pcb_component_id: z73.string().optional(),
|
|
2400
|
+
pcb_port_id: z73.string().optional(),
|
|
2401
|
+
is_covered_with_solder_mask: z73.boolean().optional()
|
|
2528
2402
|
});
|
|
2529
|
-
var pcb_smtpad_pill =
|
|
2530
|
-
type:
|
|
2531
|
-
shape:
|
|
2403
|
+
var pcb_smtpad_pill = z73.object({
|
|
2404
|
+
type: z73.literal("pcb_smtpad"),
|
|
2405
|
+
shape: z73.literal("pill"),
|
|
2532
2406
|
pcb_smtpad_id: getZodPrefixedIdWithDefault("pcb_smtpad"),
|
|
2533
|
-
pcb_group_id:
|
|
2534
|
-
subcircuit_id:
|
|
2407
|
+
pcb_group_id: z73.string().optional(),
|
|
2408
|
+
subcircuit_id: z73.string().optional(),
|
|
2535
2409
|
x: distance,
|
|
2536
2410
|
y: distance,
|
|
2537
|
-
width:
|
|
2538
|
-
height:
|
|
2539
|
-
radius:
|
|
2411
|
+
width: z73.number(),
|
|
2412
|
+
height: z73.number(),
|
|
2413
|
+
radius: z73.number(),
|
|
2540
2414
|
layer: layer_ref,
|
|
2541
|
-
port_hints:
|
|
2542
|
-
pcb_component_id:
|
|
2543
|
-
pcb_port_id:
|
|
2544
|
-
is_covered_with_solder_mask:
|
|
2545
|
-
soldermask_margin: z76.number().optional()
|
|
2415
|
+
port_hints: z73.array(z73.string()).optional(),
|
|
2416
|
+
pcb_component_id: z73.string().optional(),
|
|
2417
|
+
pcb_port_id: z73.string().optional(),
|
|
2418
|
+
is_covered_with_solder_mask: z73.boolean().optional()
|
|
2546
2419
|
});
|
|
2547
|
-
var pcb_smtpad_rotated_pill =
|
|
2548
|
-
type:
|
|
2549
|
-
shape:
|
|
2420
|
+
var pcb_smtpad_rotated_pill = z73.object({
|
|
2421
|
+
type: z73.literal("pcb_smtpad"),
|
|
2422
|
+
shape: z73.literal("rotated_pill"),
|
|
2550
2423
|
pcb_smtpad_id: getZodPrefixedIdWithDefault("pcb_smtpad"),
|
|
2551
|
-
pcb_group_id:
|
|
2552
|
-
subcircuit_id:
|
|
2424
|
+
pcb_group_id: z73.string().optional(),
|
|
2425
|
+
subcircuit_id: z73.string().optional(),
|
|
2553
2426
|
x: distance,
|
|
2554
2427
|
y: distance,
|
|
2555
|
-
width:
|
|
2556
|
-
height:
|
|
2557
|
-
radius:
|
|
2428
|
+
width: z73.number(),
|
|
2429
|
+
height: z73.number(),
|
|
2430
|
+
radius: z73.number(),
|
|
2558
2431
|
ccw_rotation: rotation,
|
|
2559
2432
|
layer: layer_ref,
|
|
2560
|
-
port_hints:
|
|
2561
|
-
pcb_component_id:
|
|
2562
|
-
pcb_port_id:
|
|
2563
|
-
is_covered_with_solder_mask:
|
|
2564
|
-
soldermask_margin: z76.number().optional()
|
|
2433
|
+
port_hints: z73.array(z73.string()).optional(),
|
|
2434
|
+
pcb_component_id: z73.string().optional(),
|
|
2435
|
+
pcb_port_id: z73.string().optional(),
|
|
2436
|
+
is_covered_with_solder_mask: z73.boolean().optional()
|
|
2565
2437
|
});
|
|
2566
|
-
var pcb_smtpad_polygon =
|
|
2567
|
-
type:
|
|
2568
|
-
shape:
|
|
2438
|
+
var pcb_smtpad_polygon = z73.object({
|
|
2439
|
+
type: z73.literal("pcb_smtpad"),
|
|
2440
|
+
shape: z73.literal("polygon"),
|
|
2569
2441
|
pcb_smtpad_id: getZodPrefixedIdWithDefault("pcb_smtpad"),
|
|
2570
|
-
pcb_group_id:
|
|
2571
|
-
subcircuit_id:
|
|
2572
|
-
points:
|
|
2442
|
+
pcb_group_id: z73.string().optional(),
|
|
2443
|
+
subcircuit_id: z73.string().optional(),
|
|
2444
|
+
points: z73.array(point),
|
|
2573
2445
|
layer: layer_ref,
|
|
2574
|
-
port_hints:
|
|
2575
|
-
pcb_component_id:
|
|
2576
|
-
pcb_port_id:
|
|
2577
|
-
is_covered_with_solder_mask:
|
|
2578
|
-
soldermask_margin: z76.number().optional()
|
|
2446
|
+
port_hints: z73.array(z73.string()).optional(),
|
|
2447
|
+
pcb_component_id: z73.string().optional(),
|
|
2448
|
+
pcb_port_id: z73.string().optional(),
|
|
2449
|
+
is_covered_with_solder_mask: z73.boolean().optional()
|
|
2579
2450
|
});
|
|
2580
|
-
var pcb_smtpad =
|
|
2451
|
+
var pcb_smtpad = z73.discriminatedUnion("shape", [
|
|
2581
2452
|
pcb_smtpad_circle,
|
|
2582
2453
|
pcb_smtpad_rect,
|
|
2583
2454
|
pcb_smtpad_rotated_rect,
|
|
@@ -2591,78 +2462,78 @@ expectTypesMatch(true);
|
|
|
2591
2462
|
expectTypesMatch(true);
|
|
2592
2463
|
expectTypesMatch(true);
|
|
2593
2464
|
expectTypesMatch(true);
|
|
2594
|
-
var pcb_solder_paste_circle =
|
|
2595
|
-
type:
|
|
2596
|
-
shape:
|
|
2465
|
+
var pcb_solder_paste_circle = z74.object({
|
|
2466
|
+
type: z74.literal("pcb_solder_paste"),
|
|
2467
|
+
shape: z74.literal("circle"),
|
|
2597
2468
|
pcb_solder_paste_id: getZodPrefixedIdWithDefault("pcb_solder_paste"),
|
|
2598
|
-
pcb_group_id:
|
|
2599
|
-
subcircuit_id:
|
|
2469
|
+
pcb_group_id: z74.string().optional(),
|
|
2470
|
+
subcircuit_id: z74.string().optional(),
|
|
2600
2471
|
x: distance,
|
|
2601
2472
|
y: distance,
|
|
2602
|
-
radius:
|
|
2473
|
+
radius: z74.number(),
|
|
2603
2474
|
layer: layer_ref,
|
|
2604
|
-
pcb_component_id:
|
|
2605
|
-
pcb_smtpad_id:
|
|
2475
|
+
pcb_component_id: z74.string().optional(),
|
|
2476
|
+
pcb_smtpad_id: z74.string().optional()
|
|
2606
2477
|
});
|
|
2607
|
-
var pcb_solder_paste_rect =
|
|
2608
|
-
type:
|
|
2609
|
-
shape:
|
|
2478
|
+
var pcb_solder_paste_rect = z74.object({
|
|
2479
|
+
type: z74.literal("pcb_solder_paste"),
|
|
2480
|
+
shape: z74.literal("rect"),
|
|
2610
2481
|
pcb_solder_paste_id: getZodPrefixedIdWithDefault("pcb_solder_paste"),
|
|
2611
|
-
pcb_group_id:
|
|
2612
|
-
subcircuit_id:
|
|
2482
|
+
pcb_group_id: z74.string().optional(),
|
|
2483
|
+
subcircuit_id: z74.string().optional(),
|
|
2613
2484
|
x: distance,
|
|
2614
2485
|
y: distance,
|
|
2615
|
-
width:
|
|
2616
|
-
height:
|
|
2486
|
+
width: z74.number(),
|
|
2487
|
+
height: z74.number(),
|
|
2617
2488
|
layer: layer_ref,
|
|
2618
|
-
pcb_component_id:
|
|
2619
|
-
pcb_smtpad_id:
|
|
2489
|
+
pcb_component_id: z74.string().optional(),
|
|
2490
|
+
pcb_smtpad_id: z74.string().optional()
|
|
2620
2491
|
});
|
|
2621
|
-
var pcb_solder_paste_pill =
|
|
2622
|
-
type:
|
|
2623
|
-
shape:
|
|
2492
|
+
var pcb_solder_paste_pill = z74.object({
|
|
2493
|
+
type: z74.literal("pcb_solder_paste"),
|
|
2494
|
+
shape: z74.literal("pill"),
|
|
2624
2495
|
pcb_solder_paste_id: getZodPrefixedIdWithDefault("pcb_solder_paste"),
|
|
2625
|
-
pcb_group_id:
|
|
2626
|
-
subcircuit_id:
|
|
2496
|
+
pcb_group_id: z74.string().optional(),
|
|
2497
|
+
subcircuit_id: z74.string().optional(),
|
|
2627
2498
|
x: distance,
|
|
2628
2499
|
y: distance,
|
|
2629
|
-
width:
|
|
2630
|
-
height:
|
|
2631
|
-
radius:
|
|
2500
|
+
width: z74.number(),
|
|
2501
|
+
height: z74.number(),
|
|
2502
|
+
radius: z74.number(),
|
|
2632
2503
|
layer: layer_ref,
|
|
2633
|
-
pcb_component_id:
|
|
2634
|
-
pcb_smtpad_id:
|
|
2504
|
+
pcb_component_id: z74.string().optional(),
|
|
2505
|
+
pcb_smtpad_id: z74.string().optional()
|
|
2635
2506
|
});
|
|
2636
|
-
var pcb_solder_paste_rotated_rect =
|
|
2637
|
-
type:
|
|
2638
|
-
shape:
|
|
2507
|
+
var pcb_solder_paste_rotated_rect = z74.object({
|
|
2508
|
+
type: z74.literal("pcb_solder_paste"),
|
|
2509
|
+
shape: z74.literal("rotated_rect"),
|
|
2639
2510
|
pcb_solder_paste_id: getZodPrefixedIdWithDefault("pcb_solder_paste"),
|
|
2640
|
-
pcb_group_id:
|
|
2641
|
-
subcircuit_id:
|
|
2511
|
+
pcb_group_id: z74.string().optional(),
|
|
2512
|
+
subcircuit_id: z74.string().optional(),
|
|
2642
2513
|
x: distance,
|
|
2643
2514
|
y: distance,
|
|
2644
|
-
width:
|
|
2645
|
-
height:
|
|
2515
|
+
width: z74.number(),
|
|
2516
|
+
height: z74.number(),
|
|
2646
2517
|
ccw_rotation: distance,
|
|
2647
2518
|
layer: layer_ref,
|
|
2648
|
-
pcb_component_id:
|
|
2649
|
-
pcb_smtpad_id:
|
|
2519
|
+
pcb_component_id: z74.string().optional(),
|
|
2520
|
+
pcb_smtpad_id: z74.string().optional()
|
|
2650
2521
|
});
|
|
2651
|
-
var pcb_solder_paste_oval =
|
|
2652
|
-
type:
|
|
2653
|
-
shape:
|
|
2522
|
+
var pcb_solder_paste_oval = z74.object({
|
|
2523
|
+
type: z74.literal("pcb_solder_paste"),
|
|
2524
|
+
shape: z74.literal("oval"),
|
|
2654
2525
|
pcb_solder_paste_id: getZodPrefixedIdWithDefault("pcb_solder_paste"),
|
|
2655
|
-
pcb_group_id:
|
|
2656
|
-
subcircuit_id:
|
|
2526
|
+
pcb_group_id: z74.string().optional(),
|
|
2527
|
+
subcircuit_id: z74.string().optional(),
|
|
2657
2528
|
x: distance,
|
|
2658
2529
|
y: distance,
|
|
2659
|
-
width:
|
|
2660
|
-
height:
|
|
2530
|
+
width: z74.number(),
|
|
2531
|
+
height: z74.number(),
|
|
2661
2532
|
layer: layer_ref,
|
|
2662
|
-
pcb_component_id:
|
|
2663
|
-
pcb_smtpad_id:
|
|
2533
|
+
pcb_component_id: z74.string().optional(),
|
|
2534
|
+
pcb_smtpad_id: z74.string().optional()
|
|
2664
2535
|
});
|
|
2665
|
-
var pcb_solder_paste =
|
|
2536
|
+
var pcb_solder_paste = z74.union([
|
|
2666
2537
|
pcb_solder_paste_circle,
|
|
2667
2538
|
pcb_solder_paste_rect,
|
|
2668
2539
|
pcb_solder_paste_pill,
|
|
@@ -2676,124 +2547,123 @@ expectTypesMatch(
|
|
|
2676
2547
|
true
|
|
2677
2548
|
);
|
|
2678
2549
|
expectTypesMatch(true);
|
|
2679
|
-
var pcb_text =
|
|
2680
|
-
type:
|
|
2550
|
+
var pcb_text = z75.object({
|
|
2551
|
+
type: z75.literal("pcb_text"),
|
|
2681
2552
|
pcb_text_id: getZodPrefixedIdWithDefault("pcb_text"),
|
|
2682
|
-
pcb_group_id:
|
|
2683
|
-
subcircuit_id:
|
|
2684
|
-
text:
|
|
2553
|
+
pcb_group_id: z75.string().optional(),
|
|
2554
|
+
subcircuit_id: z75.string().optional(),
|
|
2555
|
+
text: z75.string(),
|
|
2685
2556
|
center: point,
|
|
2686
2557
|
layer: layer_ref,
|
|
2687
2558
|
width: length,
|
|
2688
2559
|
height: length,
|
|
2689
|
-
lines:
|
|
2560
|
+
lines: z75.number(),
|
|
2690
2561
|
// @ts-ignore
|
|
2691
|
-
align:
|
|
2562
|
+
align: z75.enum(["bottom-left"])
|
|
2692
2563
|
}).describe("Defines text on the PCB");
|
|
2693
2564
|
expectTypesMatch(true);
|
|
2694
|
-
var pcb_trace_route_point_wire =
|
|
2695
|
-
route_type:
|
|
2565
|
+
var pcb_trace_route_point_wire = z76.object({
|
|
2566
|
+
route_type: z76.literal("wire"),
|
|
2696
2567
|
x: distance,
|
|
2697
2568
|
y: distance,
|
|
2698
2569
|
width: distance,
|
|
2699
|
-
start_pcb_port_id:
|
|
2700
|
-
end_pcb_port_id:
|
|
2570
|
+
start_pcb_port_id: z76.string().optional(),
|
|
2571
|
+
end_pcb_port_id: z76.string().optional(),
|
|
2701
2572
|
layer: layer_ref
|
|
2702
2573
|
});
|
|
2703
|
-
var pcb_trace_route_point_via =
|
|
2704
|
-
route_type:
|
|
2574
|
+
var pcb_trace_route_point_via = z76.object({
|
|
2575
|
+
route_type: z76.literal("via"),
|
|
2705
2576
|
x: distance,
|
|
2706
2577
|
y: distance,
|
|
2707
2578
|
hole_diameter: distance.optional(),
|
|
2708
2579
|
outer_diameter: distance.optional(),
|
|
2709
|
-
from_layer:
|
|
2710
|
-
to_layer:
|
|
2580
|
+
from_layer: z76.string(),
|
|
2581
|
+
to_layer: z76.string()
|
|
2711
2582
|
});
|
|
2712
|
-
var pcb_trace_route_point =
|
|
2583
|
+
var pcb_trace_route_point = z76.union([
|
|
2713
2584
|
pcb_trace_route_point_wire,
|
|
2714
2585
|
pcb_trace_route_point_via
|
|
2715
2586
|
]);
|
|
2716
|
-
var pcb_trace =
|
|
2717
|
-
type:
|
|
2718
|
-
source_trace_id:
|
|
2719
|
-
pcb_component_id:
|
|
2587
|
+
var pcb_trace = z76.object({
|
|
2588
|
+
type: z76.literal("pcb_trace"),
|
|
2589
|
+
source_trace_id: z76.string().optional(),
|
|
2590
|
+
pcb_component_id: z76.string().optional(),
|
|
2720
2591
|
pcb_trace_id: getZodPrefixedIdWithDefault("pcb_trace"),
|
|
2721
|
-
pcb_group_id:
|
|
2722
|
-
subcircuit_id:
|
|
2723
|
-
route_thickness_mode:
|
|
2724
|
-
route_order_index:
|
|
2725
|
-
should_round_corners:
|
|
2726
|
-
trace_length:
|
|
2727
|
-
highlight_color:
|
|
2728
|
-
route:
|
|
2592
|
+
pcb_group_id: z76.string().optional(),
|
|
2593
|
+
subcircuit_id: z76.string().optional(),
|
|
2594
|
+
route_thickness_mode: z76.enum(["constant", "interpolated"]).default("constant").optional(),
|
|
2595
|
+
route_order_index: z76.number().optional(),
|
|
2596
|
+
should_round_corners: z76.boolean().optional(),
|
|
2597
|
+
trace_length: z76.number().optional(),
|
|
2598
|
+
highlight_color: z76.string().optional(),
|
|
2599
|
+
route: z76.array(pcb_trace_route_point)
|
|
2729
2600
|
}).describe("Defines a trace on the PCB");
|
|
2730
2601
|
expectTypesMatch(true);
|
|
2731
2602
|
expectTypesMatch(true);
|
|
2732
|
-
var pcb_trace_error =
|
|
2733
|
-
type:
|
|
2603
|
+
var pcb_trace_error = z77.object({
|
|
2604
|
+
type: z77.literal("pcb_trace_error"),
|
|
2734
2605
|
pcb_trace_error_id: getZodPrefixedIdWithDefault("pcb_trace_error"),
|
|
2735
|
-
error_type:
|
|
2736
|
-
message:
|
|
2606
|
+
error_type: z77.literal("pcb_trace_error").default("pcb_trace_error"),
|
|
2607
|
+
message: z77.string(),
|
|
2737
2608
|
center: point.optional(),
|
|
2738
|
-
pcb_trace_id:
|
|
2739
|
-
source_trace_id:
|
|
2740
|
-
pcb_component_ids:
|
|
2741
|
-
pcb_port_ids:
|
|
2742
|
-
subcircuit_id:
|
|
2609
|
+
pcb_trace_id: z77.string(),
|
|
2610
|
+
source_trace_id: z77.string(),
|
|
2611
|
+
pcb_component_ids: z77.array(z77.string()),
|
|
2612
|
+
pcb_port_ids: z77.array(z77.string()),
|
|
2613
|
+
subcircuit_id: z77.string().optional()
|
|
2743
2614
|
}).describe("Defines a trace error on the PCB");
|
|
2744
2615
|
expectTypesMatch(true);
|
|
2745
|
-
var pcb_trace_missing_error =
|
|
2746
|
-
type:
|
|
2616
|
+
var pcb_trace_missing_error = z78.object({
|
|
2617
|
+
type: z78.literal("pcb_trace_missing_error"),
|
|
2747
2618
|
pcb_trace_missing_error_id: getZodPrefixedIdWithDefault(
|
|
2748
2619
|
"pcb_trace_missing_error"
|
|
2749
2620
|
),
|
|
2750
|
-
error_type:
|
|
2751
|
-
message:
|
|
2621
|
+
error_type: z78.literal("pcb_trace_missing_error").default("pcb_trace_missing_error"),
|
|
2622
|
+
message: z78.string(),
|
|
2752
2623
|
center: point.optional(),
|
|
2753
|
-
source_trace_id:
|
|
2754
|
-
pcb_component_ids:
|
|
2755
|
-
pcb_port_ids:
|
|
2756
|
-
subcircuit_id:
|
|
2624
|
+
source_trace_id: z78.string(),
|
|
2625
|
+
pcb_component_ids: z78.array(z78.string()),
|
|
2626
|
+
pcb_port_ids: z78.array(z78.string()),
|
|
2627
|
+
subcircuit_id: z78.string().optional()
|
|
2757
2628
|
}).describe(
|
|
2758
2629
|
"Defines an error when a source trace has no corresponding PCB trace"
|
|
2759
2630
|
);
|
|
2760
2631
|
expectTypesMatch(true);
|
|
2761
|
-
var pcb_port_not_matched_error =
|
|
2762
|
-
type:
|
|
2632
|
+
var pcb_port_not_matched_error = z79.object({
|
|
2633
|
+
type: z79.literal("pcb_port_not_matched_error"),
|
|
2763
2634
|
pcb_error_id: getZodPrefixedIdWithDefault("pcb_error"),
|
|
2764
|
-
error_type:
|
|
2765
|
-
message:
|
|
2766
|
-
pcb_component_ids:
|
|
2767
|
-
subcircuit_id:
|
|
2635
|
+
error_type: z79.literal("pcb_port_not_matched_error").default("pcb_port_not_matched_error"),
|
|
2636
|
+
message: z79.string(),
|
|
2637
|
+
pcb_component_ids: z79.array(z79.string()),
|
|
2638
|
+
subcircuit_id: z79.string().optional()
|
|
2768
2639
|
}).describe("Defines a trace error on the PCB where a port is not matched");
|
|
2769
2640
|
expectTypesMatch(true);
|
|
2770
|
-
var pcb_port_not_connected_error =
|
|
2771
|
-
type:
|
|
2641
|
+
var pcb_port_not_connected_error = z80.object({
|
|
2642
|
+
type: z80.literal("pcb_port_not_connected_error"),
|
|
2772
2643
|
pcb_port_not_connected_error_id: getZodPrefixedIdWithDefault(
|
|
2773
2644
|
"pcb_port_not_connected_error"
|
|
2774
2645
|
),
|
|
2775
|
-
error_type:
|
|
2776
|
-
message:
|
|
2777
|
-
pcb_port_ids:
|
|
2778
|
-
pcb_component_ids:
|
|
2779
|
-
subcircuit_id:
|
|
2646
|
+
error_type: z80.literal("pcb_port_not_connected_error").default("pcb_port_not_connected_error"),
|
|
2647
|
+
message: z80.string(),
|
|
2648
|
+
pcb_port_ids: z80.array(z80.string()),
|
|
2649
|
+
pcb_component_ids: z80.array(z80.string()),
|
|
2650
|
+
subcircuit_id: z80.string().optional()
|
|
2780
2651
|
}).describe("Defines an error when a pcb port is not connected to any trace");
|
|
2781
2652
|
expectTypesMatch(
|
|
2782
2653
|
true
|
|
2783
2654
|
);
|
|
2784
|
-
var pcb_net =
|
|
2785
|
-
type:
|
|
2655
|
+
var pcb_net = z81.object({
|
|
2656
|
+
type: z81.literal("pcb_net"),
|
|
2786
2657
|
pcb_net_id: getZodPrefixedIdWithDefault("pcb_net"),
|
|
2787
|
-
source_net_id:
|
|
2788
|
-
highlight_color:
|
|
2658
|
+
source_net_id: z81.string().optional(),
|
|
2659
|
+
highlight_color: z81.string().optional()
|
|
2789
2660
|
}).describe("Defines a net on the PCB");
|
|
2790
2661
|
expectTypesMatch(true);
|
|
2791
|
-
var pcb_via =
|
|
2792
|
-
type:
|
|
2662
|
+
var pcb_via = z82.object({
|
|
2663
|
+
type: z82.literal("pcb_via"),
|
|
2793
2664
|
pcb_via_id: getZodPrefixedIdWithDefault("pcb_via"),
|
|
2794
|
-
pcb_group_id:
|
|
2795
|
-
subcircuit_id:
|
|
2796
|
-
subcircuit_connectivity_map_key: z85.string().optional(),
|
|
2665
|
+
pcb_group_id: z82.string().optional(),
|
|
2666
|
+
subcircuit_id: z82.string().optional(),
|
|
2797
2667
|
x: distance,
|
|
2798
2668
|
y: distance,
|
|
2799
2669
|
outer_diameter: distance.default("0.6mm"),
|
|
@@ -2802,61 +2672,56 @@ var pcb_via = z85.object({
|
|
|
2802
2672
|
from_layer: layer_ref.optional(),
|
|
2803
2673
|
/** @deprecated */
|
|
2804
2674
|
to_layer: layer_ref.optional(),
|
|
2805
|
-
layers:
|
|
2806
|
-
pcb_trace_id:
|
|
2807
|
-
net_is_assignable: z85.boolean().optional(),
|
|
2808
|
-
net_assigned: z85.boolean().optional(),
|
|
2809
|
-
is_tented: z85.boolean().optional()
|
|
2675
|
+
layers: z82.array(layer_ref),
|
|
2676
|
+
pcb_trace_id: z82.string().optional()
|
|
2810
2677
|
}).describe("Defines a via on the PCB");
|
|
2811
2678
|
expectTypesMatch(true);
|
|
2812
|
-
var pcb_board =
|
|
2813
|
-
type:
|
|
2679
|
+
var pcb_board = z83.object({
|
|
2680
|
+
type: z83.literal("pcb_board"),
|
|
2814
2681
|
pcb_board_id: getZodPrefixedIdWithDefault("pcb_board"),
|
|
2815
|
-
pcb_panel_id:
|
|
2816
|
-
is_subcircuit:
|
|
2817
|
-
subcircuit_id:
|
|
2818
|
-
width: length
|
|
2819
|
-
height: length
|
|
2682
|
+
pcb_panel_id: z83.string().optional(),
|
|
2683
|
+
is_subcircuit: z83.boolean().optional(),
|
|
2684
|
+
subcircuit_id: z83.string().optional(),
|
|
2685
|
+
width: length,
|
|
2686
|
+
height: length,
|
|
2820
2687
|
center: point,
|
|
2821
2688
|
thickness: length.optional().default(1.4),
|
|
2822
|
-
num_layers:
|
|
2823
|
-
outline:
|
|
2824
|
-
|
|
2825
|
-
material: z86.enum(["fr4", "fr1"]).default("fr4")
|
|
2689
|
+
num_layers: z83.number().optional().default(4),
|
|
2690
|
+
outline: z83.array(point).optional(),
|
|
2691
|
+
material: z83.enum(["fr4", "fr1"]).default("fr4")
|
|
2826
2692
|
}).describe("Defines the board outline of the PCB");
|
|
2827
2693
|
expectTypesMatch(true);
|
|
2828
|
-
var pcb_panel =
|
|
2829
|
-
type:
|
|
2694
|
+
var pcb_panel = z84.object({
|
|
2695
|
+
type: z84.literal("pcb_panel"),
|
|
2830
2696
|
pcb_panel_id: getZodPrefixedIdWithDefault("pcb_panel"),
|
|
2831
2697
|
width: length,
|
|
2832
2698
|
height: length,
|
|
2833
|
-
|
|
2834
|
-
covered_with_solder_mask: z87.boolean().optional().default(true)
|
|
2699
|
+
covered_with_solder_mask: z84.boolean().optional().default(true)
|
|
2835
2700
|
}).describe("Defines a PCB panel that can contain multiple boards");
|
|
2836
2701
|
expectTypesMatch(true);
|
|
2837
|
-
var pcb_placement_error =
|
|
2838
|
-
type:
|
|
2702
|
+
var pcb_placement_error = z85.object({
|
|
2703
|
+
type: z85.literal("pcb_placement_error"),
|
|
2839
2704
|
pcb_placement_error_id: getZodPrefixedIdWithDefault("pcb_placement_error"),
|
|
2840
|
-
error_type:
|
|
2841
|
-
message:
|
|
2842
|
-
subcircuit_id:
|
|
2705
|
+
error_type: z85.literal("pcb_placement_error").default("pcb_placement_error"),
|
|
2706
|
+
message: z85.string(),
|
|
2707
|
+
subcircuit_id: z85.string().optional()
|
|
2843
2708
|
}).describe("Defines a placement error on the PCB");
|
|
2844
2709
|
expectTypesMatch(true);
|
|
2845
|
-
var pcb_trace_hint =
|
|
2846
|
-
type:
|
|
2710
|
+
var pcb_trace_hint = z86.object({
|
|
2711
|
+
type: z86.literal("pcb_trace_hint"),
|
|
2847
2712
|
pcb_trace_hint_id: getZodPrefixedIdWithDefault("pcb_trace_hint"),
|
|
2848
|
-
pcb_port_id:
|
|
2849
|
-
pcb_component_id:
|
|
2850
|
-
route:
|
|
2851
|
-
subcircuit_id:
|
|
2713
|
+
pcb_port_id: z86.string(),
|
|
2714
|
+
pcb_component_id: z86.string(),
|
|
2715
|
+
route: z86.array(route_hint_point),
|
|
2716
|
+
subcircuit_id: z86.string().optional()
|
|
2852
2717
|
}).describe("A hint that can be used during generation of a PCB trace");
|
|
2853
2718
|
expectTypesMatch(true);
|
|
2854
|
-
var pcb_silkscreen_line =
|
|
2855
|
-
type:
|
|
2719
|
+
var pcb_silkscreen_line = z87.object({
|
|
2720
|
+
type: z87.literal("pcb_silkscreen_line"),
|
|
2856
2721
|
pcb_silkscreen_line_id: getZodPrefixedIdWithDefault("pcb_silkscreen_line"),
|
|
2857
|
-
pcb_component_id:
|
|
2858
|
-
pcb_group_id:
|
|
2859
|
-
subcircuit_id:
|
|
2722
|
+
pcb_component_id: z87.string(),
|
|
2723
|
+
pcb_group_id: z87.string().optional(),
|
|
2724
|
+
subcircuit_id: z87.string().optional(),
|
|
2860
2725
|
stroke_width: distance.default("0.1mm"),
|
|
2861
2726
|
x1: distance,
|
|
2862
2727
|
y1: distance,
|
|
@@ -2865,28 +2730,28 @@ var pcb_silkscreen_line = z90.object({
|
|
|
2865
2730
|
layer: visible_layer
|
|
2866
2731
|
}).describe("Defines a silkscreen line on the PCB");
|
|
2867
2732
|
expectTypesMatch(true);
|
|
2868
|
-
var pcb_silkscreen_path =
|
|
2869
|
-
type:
|
|
2733
|
+
var pcb_silkscreen_path = z88.object({
|
|
2734
|
+
type: z88.literal("pcb_silkscreen_path"),
|
|
2870
2735
|
pcb_silkscreen_path_id: getZodPrefixedIdWithDefault("pcb_silkscreen_path"),
|
|
2871
|
-
pcb_component_id:
|
|
2872
|
-
pcb_group_id:
|
|
2873
|
-
subcircuit_id:
|
|
2736
|
+
pcb_component_id: z88.string(),
|
|
2737
|
+
pcb_group_id: z88.string().optional(),
|
|
2738
|
+
subcircuit_id: z88.string().optional(),
|
|
2874
2739
|
layer: visible_layer,
|
|
2875
|
-
route:
|
|
2740
|
+
route: z88.array(point),
|
|
2876
2741
|
stroke_width: length
|
|
2877
2742
|
}).describe("Defines a silkscreen path on the PCB");
|
|
2878
2743
|
expectTypesMatch(true);
|
|
2879
|
-
var pcb_silkscreen_text =
|
|
2880
|
-
type:
|
|
2744
|
+
var pcb_silkscreen_text = z89.object({
|
|
2745
|
+
type: z89.literal("pcb_silkscreen_text"),
|
|
2881
2746
|
pcb_silkscreen_text_id: getZodPrefixedIdWithDefault("pcb_silkscreen_text"),
|
|
2882
|
-
pcb_group_id:
|
|
2883
|
-
subcircuit_id:
|
|
2884
|
-
font:
|
|
2747
|
+
pcb_group_id: z89.string().optional(),
|
|
2748
|
+
subcircuit_id: z89.string().optional(),
|
|
2749
|
+
font: z89.literal("tscircuit2024").default("tscircuit2024"),
|
|
2885
2750
|
font_size: distance.default("0.2mm"),
|
|
2886
|
-
pcb_component_id:
|
|
2887
|
-
text:
|
|
2888
|
-
is_knockout:
|
|
2889
|
-
knockout_padding:
|
|
2751
|
+
pcb_component_id: z89.string(),
|
|
2752
|
+
text: z89.string(),
|
|
2753
|
+
is_knockout: z89.boolean().default(false).optional(),
|
|
2754
|
+
knockout_padding: z89.object({
|
|
2890
2755
|
left: length,
|
|
2891
2756
|
top: length,
|
|
2892
2757
|
bottom: length,
|
|
@@ -2897,24 +2762,24 @@ var pcb_silkscreen_text = z92.object({
|
|
|
2897
2762
|
bottom: "0.2mm",
|
|
2898
2763
|
right: "0.2mm"
|
|
2899
2764
|
}).optional(),
|
|
2900
|
-
ccw_rotation:
|
|
2765
|
+
ccw_rotation: z89.number().optional(),
|
|
2901
2766
|
layer: layer_ref,
|
|
2902
|
-
is_mirrored:
|
|
2767
|
+
is_mirrored: z89.boolean().default(false).optional(),
|
|
2903
2768
|
anchor_position: point.default({ x: 0, y: 0 }),
|
|
2904
2769
|
anchor_alignment: ninePointAnchor.default("center")
|
|
2905
2770
|
}).describe("Defines silkscreen text on the PCB");
|
|
2906
2771
|
expectTypesMatch(true);
|
|
2907
|
-
var pcb_copper_text =
|
|
2908
|
-
type:
|
|
2772
|
+
var pcb_copper_text = z90.object({
|
|
2773
|
+
type: z90.literal("pcb_copper_text"),
|
|
2909
2774
|
pcb_copper_text_id: getZodPrefixedIdWithDefault("pcb_copper_text"),
|
|
2910
|
-
pcb_group_id:
|
|
2911
|
-
subcircuit_id:
|
|
2912
|
-
font:
|
|
2775
|
+
pcb_group_id: z90.string().optional(),
|
|
2776
|
+
subcircuit_id: z90.string().optional(),
|
|
2777
|
+
font: z90.literal("tscircuit2024").default("tscircuit2024"),
|
|
2913
2778
|
font_size: distance.default("0.2mm"),
|
|
2914
|
-
pcb_component_id:
|
|
2915
|
-
text:
|
|
2916
|
-
is_knockout:
|
|
2917
|
-
knockout_padding:
|
|
2779
|
+
pcb_component_id: z90.string(),
|
|
2780
|
+
text: z90.string(),
|
|
2781
|
+
is_knockout: z90.boolean().default(false).optional(),
|
|
2782
|
+
knockout_padding: z90.object({
|
|
2918
2783
|
left: length,
|
|
2919
2784
|
top: length,
|
|
2920
2785
|
bottom: length,
|
|
@@ -2925,454 +2790,439 @@ var pcb_copper_text = z93.object({
|
|
|
2925
2790
|
bottom: "0.2mm",
|
|
2926
2791
|
right: "0.2mm"
|
|
2927
2792
|
}).optional(),
|
|
2928
|
-
ccw_rotation:
|
|
2793
|
+
ccw_rotation: z90.number().optional(),
|
|
2929
2794
|
layer: layer_ref,
|
|
2930
|
-
is_mirrored:
|
|
2795
|
+
is_mirrored: z90.boolean().default(false).optional(),
|
|
2931
2796
|
anchor_position: point.default({ x: 0, y: 0 }),
|
|
2932
2797
|
anchor_alignment: ninePointAnchor.default("center")
|
|
2933
2798
|
}).describe("Defines copper text on the PCB");
|
|
2934
2799
|
expectTypesMatch(true);
|
|
2935
|
-
var pcb_silkscreen_rect =
|
|
2936
|
-
type:
|
|
2800
|
+
var pcb_silkscreen_rect = z91.object({
|
|
2801
|
+
type: z91.literal("pcb_silkscreen_rect"),
|
|
2937
2802
|
pcb_silkscreen_rect_id: getZodPrefixedIdWithDefault("pcb_silkscreen_rect"),
|
|
2938
|
-
pcb_component_id:
|
|
2939
|
-
pcb_group_id:
|
|
2940
|
-
subcircuit_id:
|
|
2803
|
+
pcb_component_id: z91.string(),
|
|
2804
|
+
pcb_group_id: z91.string().optional(),
|
|
2805
|
+
subcircuit_id: z91.string().optional(),
|
|
2941
2806
|
center: point,
|
|
2942
2807
|
width: length,
|
|
2943
2808
|
height: length,
|
|
2944
2809
|
layer: layer_ref,
|
|
2945
2810
|
stroke_width: length.default("1mm"),
|
|
2946
2811
|
corner_radius: length.optional(),
|
|
2947
|
-
is_filled:
|
|
2948
|
-
has_stroke:
|
|
2949
|
-
is_stroke_dashed:
|
|
2812
|
+
is_filled: z91.boolean().default(true).optional(),
|
|
2813
|
+
has_stroke: z91.boolean().optional(),
|
|
2814
|
+
is_stroke_dashed: z91.boolean().optional()
|
|
2950
2815
|
}).describe("Defines a silkscreen rect on the PCB");
|
|
2951
2816
|
expectTypesMatch(true);
|
|
2952
|
-
var pcb_silkscreen_circle =
|
|
2953
|
-
type:
|
|
2817
|
+
var pcb_silkscreen_circle = z92.object({
|
|
2818
|
+
type: z92.literal("pcb_silkscreen_circle"),
|
|
2954
2819
|
pcb_silkscreen_circle_id: getZodPrefixedIdWithDefault(
|
|
2955
2820
|
"pcb_silkscreen_circle"
|
|
2956
2821
|
),
|
|
2957
|
-
pcb_component_id:
|
|
2958
|
-
pcb_group_id:
|
|
2959
|
-
subcircuit_id:
|
|
2822
|
+
pcb_component_id: z92.string(),
|
|
2823
|
+
pcb_group_id: z92.string().optional(),
|
|
2824
|
+
subcircuit_id: z92.string().optional(),
|
|
2960
2825
|
center: point,
|
|
2961
2826
|
radius: length,
|
|
2962
2827
|
layer: visible_layer,
|
|
2963
2828
|
stroke_width: length.default("1mm")
|
|
2964
2829
|
}).describe("Defines a silkscreen circle on the PCB");
|
|
2965
2830
|
expectTypesMatch(true);
|
|
2966
|
-
var pcb_silkscreen_oval =
|
|
2967
|
-
type:
|
|
2831
|
+
var pcb_silkscreen_oval = z93.object({
|
|
2832
|
+
type: z93.literal("pcb_silkscreen_oval"),
|
|
2968
2833
|
pcb_silkscreen_oval_id: getZodPrefixedIdWithDefault("pcb_silkscreen_oval"),
|
|
2969
|
-
pcb_component_id:
|
|
2970
|
-
pcb_group_id:
|
|
2971
|
-
subcircuit_id:
|
|
2834
|
+
pcb_component_id: z93.string(),
|
|
2835
|
+
pcb_group_id: z93.string().optional(),
|
|
2836
|
+
subcircuit_id: z93.string().optional(),
|
|
2972
2837
|
center: point,
|
|
2973
2838
|
radius_x: distance,
|
|
2974
2839
|
radius_y: distance,
|
|
2975
2840
|
layer: visible_layer
|
|
2976
2841
|
}).describe("Defines a silkscreen oval on the PCB");
|
|
2977
2842
|
expectTypesMatch(true);
|
|
2978
|
-
var pcb_fabrication_note_text =
|
|
2979
|
-
type:
|
|
2843
|
+
var pcb_fabrication_note_text = z94.object({
|
|
2844
|
+
type: z94.literal("pcb_fabrication_note_text"),
|
|
2980
2845
|
pcb_fabrication_note_text_id: getZodPrefixedIdWithDefault(
|
|
2981
2846
|
"pcb_fabrication_note_text"
|
|
2982
2847
|
),
|
|
2983
|
-
subcircuit_id:
|
|
2984
|
-
pcb_group_id:
|
|
2985
|
-
font:
|
|
2848
|
+
subcircuit_id: z94.string().optional(),
|
|
2849
|
+
pcb_group_id: z94.string().optional(),
|
|
2850
|
+
font: z94.literal("tscircuit2024").default("tscircuit2024"),
|
|
2986
2851
|
font_size: distance.default("1mm"),
|
|
2987
|
-
pcb_component_id:
|
|
2988
|
-
text:
|
|
2852
|
+
pcb_component_id: z94.string(),
|
|
2853
|
+
text: z94.string(),
|
|
2989
2854
|
layer: visible_layer,
|
|
2990
2855
|
anchor_position: point.default({ x: 0, y: 0 }),
|
|
2991
|
-
anchor_alignment:
|
|
2992
|
-
color:
|
|
2856
|
+
anchor_alignment: z94.enum(["center", "top_left", "top_right", "bottom_left", "bottom_right"]).default("center"),
|
|
2857
|
+
color: z94.string().optional()
|
|
2993
2858
|
}).describe(
|
|
2994
2859
|
"Defines a fabrication note in text on the PCB, useful for leaving notes for assemblers or fabricators"
|
|
2995
2860
|
);
|
|
2996
2861
|
expectTypesMatch(true);
|
|
2997
|
-
var pcb_fabrication_note_path =
|
|
2998
|
-
type:
|
|
2862
|
+
var pcb_fabrication_note_path = z95.object({
|
|
2863
|
+
type: z95.literal("pcb_fabrication_note_path"),
|
|
2999
2864
|
pcb_fabrication_note_path_id: getZodPrefixedIdWithDefault(
|
|
3000
2865
|
"pcb_fabrication_note_path"
|
|
3001
2866
|
),
|
|
3002
|
-
pcb_component_id:
|
|
3003
|
-
subcircuit_id:
|
|
2867
|
+
pcb_component_id: z95.string(),
|
|
2868
|
+
subcircuit_id: z95.string().optional(),
|
|
3004
2869
|
layer: layer_ref,
|
|
3005
|
-
route:
|
|
2870
|
+
route: z95.array(point),
|
|
3006
2871
|
stroke_width: length,
|
|
3007
|
-
color:
|
|
2872
|
+
color: z95.string().optional()
|
|
3008
2873
|
}).describe(
|
|
3009
2874
|
"Defines a fabrication path on the PCB for fabricators or assemblers"
|
|
3010
2875
|
);
|
|
3011
2876
|
expectTypesMatch(true);
|
|
3012
|
-
var pcb_fabrication_note_rect =
|
|
3013
|
-
type:
|
|
2877
|
+
var pcb_fabrication_note_rect = z96.object({
|
|
2878
|
+
type: z96.literal("pcb_fabrication_note_rect"),
|
|
3014
2879
|
pcb_fabrication_note_rect_id: getZodPrefixedIdWithDefault(
|
|
3015
2880
|
"pcb_fabrication_note_rect"
|
|
3016
2881
|
),
|
|
3017
|
-
pcb_component_id:
|
|
3018
|
-
pcb_group_id:
|
|
3019
|
-
subcircuit_id:
|
|
2882
|
+
pcb_component_id: z96.string(),
|
|
2883
|
+
pcb_group_id: z96.string().optional(),
|
|
2884
|
+
subcircuit_id: z96.string().optional(),
|
|
3020
2885
|
center: point,
|
|
3021
2886
|
width: length,
|
|
3022
2887
|
height: length,
|
|
3023
2888
|
layer: visible_layer,
|
|
3024
2889
|
stroke_width: length.default("0.1mm"),
|
|
3025
2890
|
corner_radius: length.optional(),
|
|
3026
|
-
is_filled:
|
|
3027
|
-
has_stroke:
|
|
3028
|
-
is_stroke_dashed:
|
|
3029
|
-
color:
|
|
2891
|
+
is_filled: z96.boolean().optional(),
|
|
2892
|
+
has_stroke: z96.boolean().optional(),
|
|
2893
|
+
is_stroke_dashed: z96.boolean().optional(),
|
|
2894
|
+
color: z96.string().optional()
|
|
3030
2895
|
}).describe("Defines a fabrication note rectangle on the PCB");
|
|
3031
2896
|
expectTypesMatch(true);
|
|
3032
|
-
var pcb_fabrication_note_dimension =
|
|
3033
|
-
type:
|
|
2897
|
+
var pcb_fabrication_note_dimension = z97.object({
|
|
2898
|
+
type: z97.literal("pcb_fabrication_note_dimension"),
|
|
3034
2899
|
pcb_fabrication_note_dimension_id: getZodPrefixedIdWithDefault(
|
|
3035
2900
|
"pcb_fabrication_note_dimension"
|
|
3036
2901
|
),
|
|
3037
|
-
pcb_component_id:
|
|
3038
|
-
pcb_group_id:
|
|
3039
|
-
subcircuit_id:
|
|
2902
|
+
pcb_component_id: z97.string(),
|
|
2903
|
+
pcb_group_id: z97.string().optional(),
|
|
2904
|
+
subcircuit_id: z97.string().optional(),
|
|
3040
2905
|
layer: visible_layer,
|
|
3041
2906
|
from: point,
|
|
3042
2907
|
to: point,
|
|
3043
|
-
text:
|
|
3044
|
-
text_ccw_rotation:
|
|
2908
|
+
text: z97.string().optional(),
|
|
2909
|
+
text_ccw_rotation: z97.number().optional(),
|
|
3045
2910
|
offset: length.optional(),
|
|
3046
2911
|
offset_distance: length.optional(),
|
|
3047
|
-
offset_direction:
|
|
3048
|
-
x:
|
|
3049
|
-
y:
|
|
2912
|
+
offset_direction: z97.object({
|
|
2913
|
+
x: z97.number(),
|
|
2914
|
+
y: z97.number()
|
|
3050
2915
|
}).optional(),
|
|
3051
|
-
font:
|
|
2916
|
+
font: z97.literal("tscircuit2024").default("tscircuit2024"),
|
|
3052
2917
|
font_size: length.default("1mm"),
|
|
3053
|
-
color:
|
|
2918
|
+
color: z97.string().optional(),
|
|
3054
2919
|
arrow_size: length.default("1mm")
|
|
3055
2920
|
}).describe("Defines a measurement annotation within PCB fabrication notes");
|
|
3056
2921
|
expectTypesMatch(true);
|
|
3057
|
-
var pcb_note_text =
|
|
3058
|
-
type:
|
|
2922
|
+
var pcb_note_text = z98.object({
|
|
2923
|
+
type: z98.literal("pcb_note_text"),
|
|
3059
2924
|
pcb_note_text_id: getZodPrefixedIdWithDefault("pcb_note_text"),
|
|
3060
|
-
pcb_component_id:
|
|
3061
|
-
pcb_group_id:
|
|
3062
|
-
subcircuit_id:
|
|
3063
|
-
name:
|
|
3064
|
-
font:
|
|
2925
|
+
pcb_component_id: z98.string().optional(),
|
|
2926
|
+
pcb_group_id: z98.string().optional(),
|
|
2927
|
+
subcircuit_id: z98.string().optional(),
|
|
2928
|
+
name: z98.string().optional(),
|
|
2929
|
+
font: z98.literal("tscircuit2024").default("tscircuit2024"),
|
|
3065
2930
|
font_size: distance.default("1mm"),
|
|
3066
|
-
text:
|
|
2931
|
+
text: z98.string().optional(),
|
|
3067
2932
|
anchor_position: point.default({ x: 0, y: 0 }),
|
|
3068
|
-
anchor_alignment:
|
|
3069
|
-
color:
|
|
2933
|
+
anchor_alignment: z98.enum(["center", "top_left", "top_right", "bottom_left", "bottom_right"]).default("center"),
|
|
2934
|
+
color: z98.string().optional()
|
|
3070
2935
|
}).describe("Defines a documentation note in text on the PCB");
|
|
3071
2936
|
expectTypesMatch(true);
|
|
3072
|
-
var pcb_note_rect =
|
|
3073
|
-
type:
|
|
2937
|
+
var pcb_note_rect = z99.object({
|
|
2938
|
+
type: z99.literal("pcb_note_rect"),
|
|
3074
2939
|
pcb_note_rect_id: getZodPrefixedIdWithDefault("pcb_note_rect"),
|
|
3075
|
-
pcb_component_id:
|
|
3076
|
-
pcb_group_id:
|
|
3077
|
-
subcircuit_id:
|
|
3078
|
-
name:
|
|
3079
|
-
text:
|
|
2940
|
+
pcb_component_id: z99.string().optional(),
|
|
2941
|
+
pcb_group_id: z99.string().optional(),
|
|
2942
|
+
subcircuit_id: z99.string().optional(),
|
|
2943
|
+
name: z99.string().optional(),
|
|
2944
|
+
text: z99.string().optional(),
|
|
3080
2945
|
center: point,
|
|
3081
2946
|
width: length,
|
|
3082
2947
|
height: length,
|
|
3083
2948
|
stroke_width: length.default("0.1mm"),
|
|
3084
2949
|
corner_radius: length.optional(),
|
|
3085
|
-
is_filled:
|
|
3086
|
-
has_stroke:
|
|
3087
|
-
is_stroke_dashed:
|
|
3088
|
-
color:
|
|
2950
|
+
is_filled: z99.boolean().optional(),
|
|
2951
|
+
has_stroke: z99.boolean().optional(),
|
|
2952
|
+
is_stroke_dashed: z99.boolean().optional(),
|
|
2953
|
+
color: z99.string().optional()
|
|
3089
2954
|
}).describe("Defines a rectangular documentation note on the PCB");
|
|
3090
2955
|
expectTypesMatch(true);
|
|
3091
|
-
var pcb_note_path =
|
|
3092
|
-
type:
|
|
2956
|
+
var pcb_note_path = z100.object({
|
|
2957
|
+
type: z100.literal("pcb_note_path"),
|
|
3093
2958
|
pcb_note_path_id: getZodPrefixedIdWithDefault("pcb_note_path"),
|
|
3094
|
-
pcb_component_id:
|
|
3095
|
-
pcb_group_id:
|
|
3096
|
-
subcircuit_id:
|
|
3097
|
-
name:
|
|
3098
|
-
text:
|
|
3099
|
-
route:
|
|
2959
|
+
pcb_component_id: z100.string().optional(),
|
|
2960
|
+
pcb_group_id: z100.string().optional(),
|
|
2961
|
+
subcircuit_id: z100.string().optional(),
|
|
2962
|
+
name: z100.string().optional(),
|
|
2963
|
+
text: z100.string().optional(),
|
|
2964
|
+
route: z100.array(point),
|
|
3100
2965
|
stroke_width: length.default("0.1mm"),
|
|
3101
|
-
color:
|
|
2966
|
+
color: z100.string().optional()
|
|
3102
2967
|
}).describe("Defines a polyline documentation note on the PCB");
|
|
3103
2968
|
expectTypesMatch(true);
|
|
3104
|
-
var pcb_note_line =
|
|
3105
|
-
type:
|
|
2969
|
+
var pcb_note_line = z101.object({
|
|
2970
|
+
type: z101.literal("pcb_note_line"),
|
|
3106
2971
|
pcb_note_line_id: getZodPrefixedIdWithDefault("pcb_note_line"),
|
|
3107
|
-
pcb_component_id:
|
|
3108
|
-
pcb_group_id:
|
|
3109
|
-
subcircuit_id:
|
|
3110
|
-
name:
|
|
3111
|
-
text:
|
|
2972
|
+
pcb_component_id: z101.string().optional(),
|
|
2973
|
+
pcb_group_id: z101.string().optional(),
|
|
2974
|
+
subcircuit_id: z101.string().optional(),
|
|
2975
|
+
name: z101.string().optional(),
|
|
2976
|
+
text: z101.string().optional(),
|
|
3112
2977
|
x1: distance,
|
|
3113
2978
|
y1: distance,
|
|
3114
2979
|
x2: distance,
|
|
3115
2980
|
y2: distance,
|
|
3116
2981
|
stroke_width: distance.default("0.1mm"),
|
|
3117
|
-
color:
|
|
3118
|
-
is_dashed:
|
|
2982
|
+
color: z101.string().optional(),
|
|
2983
|
+
is_dashed: z101.boolean().optional()
|
|
3119
2984
|
}).describe("Defines a straight documentation note line on the PCB");
|
|
3120
2985
|
expectTypesMatch(true);
|
|
3121
|
-
var pcb_note_dimension =
|
|
3122
|
-
type:
|
|
2986
|
+
var pcb_note_dimension = z102.object({
|
|
2987
|
+
type: z102.literal("pcb_note_dimension"),
|
|
3123
2988
|
pcb_note_dimension_id: getZodPrefixedIdWithDefault("pcb_note_dimension"),
|
|
3124
|
-
pcb_component_id:
|
|
3125
|
-
pcb_group_id:
|
|
3126
|
-
subcircuit_id:
|
|
3127
|
-
name:
|
|
2989
|
+
pcb_component_id: z102.string().optional(),
|
|
2990
|
+
pcb_group_id: z102.string().optional(),
|
|
2991
|
+
subcircuit_id: z102.string().optional(),
|
|
2992
|
+
name: z102.string().optional(),
|
|
3128
2993
|
from: point,
|
|
3129
2994
|
to: point,
|
|
3130
|
-
text:
|
|
3131
|
-
text_ccw_rotation:
|
|
2995
|
+
text: z102.string().optional(),
|
|
2996
|
+
text_ccw_rotation: z102.number().optional(),
|
|
3132
2997
|
offset_distance: length.optional(),
|
|
3133
|
-
offset_direction:
|
|
3134
|
-
x:
|
|
3135
|
-
y:
|
|
2998
|
+
offset_direction: z102.object({
|
|
2999
|
+
x: z102.number(),
|
|
3000
|
+
y: z102.number()
|
|
3136
3001
|
}).optional(),
|
|
3137
|
-
font:
|
|
3002
|
+
font: z102.literal("tscircuit2024").default("tscircuit2024"),
|
|
3138
3003
|
font_size: length.default("1mm"),
|
|
3139
|
-
color:
|
|
3004
|
+
color: z102.string().optional(),
|
|
3140
3005
|
arrow_size: length.default("1mm")
|
|
3141
3006
|
}).describe("Defines a measurement annotation within PCB documentation notes");
|
|
3142
3007
|
expectTypesMatch(true);
|
|
3143
|
-
var pcb_footprint_overlap_error =
|
|
3144
|
-
type:
|
|
3008
|
+
var pcb_footprint_overlap_error = z103.object({
|
|
3009
|
+
type: z103.literal("pcb_footprint_overlap_error"),
|
|
3145
3010
|
pcb_error_id: getZodPrefixedIdWithDefault("pcb_error"),
|
|
3146
|
-
error_type:
|
|
3147
|
-
message:
|
|
3148
|
-
pcb_smtpad_ids:
|
|
3149
|
-
pcb_plated_hole_ids:
|
|
3150
|
-
pcb_hole_ids:
|
|
3151
|
-
pcb_keepout_ids:
|
|
3011
|
+
error_type: z103.literal("pcb_footprint_overlap_error").default("pcb_footprint_overlap_error"),
|
|
3012
|
+
message: z103.string(),
|
|
3013
|
+
pcb_smtpad_ids: z103.array(z103.string()).optional(),
|
|
3014
|
+
pcb_plated_hole_ids: z103.array(z103.string()).optional(),
|
|
3015
|
+
pcb_hole_ids: z103.array(z103.string()).optional(),
|
|
3016
|
+
pcb_keepout_ids: z103.array(z103.string()).optional()
|
|
3152
3017
|
}).describe("Error emitted when a pcb footprint overlaps with another element");
|
|
3153
3018
|
expectTypesMatch(
|
|
3154
3019
|
true
|
|
3155
3020
|
);
|
|
3156
|
-
var pcb_keepout =
|
|
3157
|
-
type:
|
|
3158
|
-
shape:
|
|
3159
|
-
pcb_group_id:
|
|
3160
|
-
subcircuit_id:
|
|
3021
|
+
var pcb_keepout = z104.object({
|
|
3022
|
+
type: z104.literal("pcb_keepout"),
|
|
3023
|
+
shape: z104.literal("rect"),
|
|
3024
|
+
pcb_group_id: z104.string().optional(),
|
|
3025
|
+
subcircuit_id: z104.string().optional(),
|
|
3161
3026
|
center: point,
|
|
3162
3027
|
width: distance,
|
|
3163
3028
|
height: distance,
|
|
3164
|
-
pcb_keepout_id:
|
|
3165
|
-
layers:
|
|
3029
|
+
pcb_keepout_id: z104.string(),
|
|
3030
|
+
layers: z104.array(z104.string()),
|
|
3166
3031
|
// Specify layers where the keepout applies
|
|
3167
|
-
description:
|
|
3032
|
+
description: z104.string().optional()
|
|
3168
3033
|
// Optional description of the keepout
|
|
3169
3034
|
}).or(
|
|
3170
|
-
|
|
3171
|
-
type:
|
|
3172
|
-
shape:
|
|
3173
|
-
pcb_group_id:
|
|
3174
|
-
subcircuit_id:
|
|
3035
|
+
z104.object({
|
|
3036
|
+
type: z104.literal("pcb_keepout"),
|
|
3037
|
+
shape: z104.literal("circle"),
|
|
3038
|
+
pcb_group_id: z104.string().optional(),
|
|
3039
|
+
subcircuit_id: z104.string().optional(),
|
|
3175
3040
|
center: point,
|
|
3176
3041
|
radius: distance,
|
|
3177
|
-
pcb_keepout_id:
|
|
3178
|
-
layers:
|
|
3042
|
+
pcb_keepout_id: z104.string(),
|
|
3043
|
+
layers: z104.array(z104.string()),
|
|
3179
3044
|
// Specify layers where the keepout applies
|
|
3180
|
-
description:
|
|
3045
|
+
description: z104.string().optional()
|
|
3181
3046
|
// Optional description of the keepout
|
|
3182
3047
|
})
|
|
3183
3048
|
);
|
|
3184
3049
|
expectTypesMatch(true);
|
|
3185
|
-
var pcb_cutout_base =
|
|
3186
|
-
type:
|
|
3050
|
+
var pcb_cutout_base = z105.object({
|
|
3051
|
+
type: z105.literal("pcb_cutout"),
|
|
3187
3052
|
pcb_cutout_id: getZodPrefixedIdWithDefault("pcb_cutout"),
|
|
3188
|
-
pcb_group_id:
|
|
3189
|
-
subcircuit_id:
|
|
3190
|
-
pcb_board_id: z108.string().optional(),
|
|
3191
|
-
pcb_panel_id: z108.string().optional()
|
|
3053
|
+
pcb_group_id: z105.string().optional(),
|
|
3054
|
+
subcircuit_id: z105.string().optional()
|
|
3192
3055
|
});
|
|
3193
3056
|
var pcb_cutout_rect = pcb_cutout_base.extend({
|
|
3194
|
-
shape:
|
|
3057
|
+
shape: z105.literal("rect"),
|
|
3195
3058
|
center: point,
|
|
3196
3059
|
width: length,
|
|
3197
3060
|
height: length,
|
|
3198
|
-
rotation: rotation.optional()
|
|
3199
|
-
corner_radius: length.optional()
|
|
3061
|
+
rotation: rotation.optional()
|
|
3200
3062
|
});
|
|
3201
3063
|
expectTypesMatch(true);
|
|
3202
3064
|
var pcb_cutout_circle = pcb_cutout_base.extend({
|
|
3203
|
-
shape:
|
|
3065
|
+
shape: z105.literal("circle"),
|
|
3204
3066
|
center: point,
|
|
3205
3067
|
radius: length
|
|
3206
3068
|
});
|
|
3207
3069
|
expectTypesMatch(true);
|
|
3208
3070
|
var pcb_cutout_polygon = pcb_cutout_base.extend({
|
|
3209
|
-
shape:
|
|
3210
|
-
points:
|
|
3211
|
-
});
|
|
3212
|
-
expectTypesMatch(true);
|
|
3213
|
-
var pcb_cutout_path = pcb_cutout_base.extend({
|
|
3214
|
-
shape: z108.literal("path"),
|
|
3215
|
-
route: z108.array(point),
|
|
3216
|
-
slot_width: length,
|
|
3217
|
-
slot_length: length.optional(),
|
|
3218
|
-
space_between_slots: length.optional(),
|
|
3219
|
-
slot_corner_radius: length.optional()
|
|
3071
|
+
shape: z105.literal("polygon"),
|
|
3072
|
+
points: z105.array(point)
|
|
3220
3073
|
});
|
|
3221
3074
|
expectTypesMatch(true);
|
|
3222
|
-
var pcb_cutout =
|
|
3075
|
+
var pcb_cutout = z105.discriminatedUnion("shape", [
|
|
3223
3076
|
pcb_cutout_rect,
|
|
3224
3077
|
pcb_cutout_circle,
|
|
3225
|
-
pcb_cutout_polygon
|
|
3226
|
-
pcb_cutout_path
|
|
3078
|
+
pcb_cutout_polygon
|
|
3227
3079
|
]).describe("Defines a cutout on the PCB, removing board material.");
|
|
3228
3080
|
expectTypesMatch(true);
|
|
3229
|
-
var pcb_missing_footprint_error =
|
|
3230
|
-
type:
|
|
3081
|
+
var pcb_missing_footprint_error = z106.object({
|
|
3082
|
+
type: z106.literal("pcb_missing_footprint_error"),
|
|
3231
3083
|
pcb_missing_footprint_error_id: getZodPrefixedIdWithDefault(
|
|
3232
3084
|
"pcb_missing_footprint_error"
|
|
3233
3085
|
),
|
|
3234
|
-
pcb_group_id:
|
|
3235
|
-
subcircuit_id:
|
|
3236
|
-
error_type:
|
|
3237
|
-
source_component_id:
|
|
3238
|
-
message:
|
|
3086
|
+
pcb_group_id: z106.string().optional(),
|
|
3087
|
+
subcircuit_id: z106.string().optional(),
|
|
3088
|
+
error_type: z106.literal("pcb_missing_footprint_error").default("pcb_missing_footprint_error"),
|
|
3089
|
+
source_component_id: z106.string(),
|
|
3090
|
+
message: z106.string()
|
|
3239
3091
|
}).describe("Defines a missing footprint error on the PCB");
|
|
3240
3092
|
expectTypesMatch(
|
|
3241
3093
|
true
|
|
3242
3094
|
);
|
|
3243
|
-
var external_footprint_load_error =
|
|
3244
|
-
type:
|
|
3095
|
+
var external_footprint_load_error = z107.object({
|
|
3096
|
+
type: z107.literal("external_footprint_load_error"),
|
|
3245
3097
|
external_footprint_load_error_id: getZodPrefixedIdWithDefault(
|
|
3246
3098
|
"external_footprint_load_error"
|
|
3247
3099
|
),
|
|
3248
|
-
pcb_component_id:
|
|
3249
|
-
source_component_id:
|
|
3250
|
-
pcb_group_id:
|
|
3251
|
-
subcircuit_id:
|
|
3252
|
-
footprinter_string:
|
|
3253
|
-
error_type:
|
|
3254
|
-
message:
|
|
3100
|
+
pcb_component_id: z107.string(),
|
|
3101
|
+
source_component_id: z107.string(),
|
|
3102
|
+
pcb_group_id: z107.string().optional(),
|
|
3103
|
+
subcircuit_id: z107.string().optional(),
|
|
3104
|
+
footprinter_string: z107.string().optional(),
|
|
3105
|
+
error_type: z107.literal("external_footprint_load_error").default("external_footprint_load_error"),
|
|
3106
|
+
message: z107.string()
|
|
3255
3107
|
}).describe("Defines an error when an external footprint fails to load");
|
|
3256
3108
|
expectTypesMatch(true);
|
|
3257
|
-
var circuit_json_footprint_load_error =
|
|
3258
|
-
type:
|
|
3109
|
+
var circuit_json_footprint_load_error = z108.object({
|
|
3110
|
+
type: z108.literal("circuit_json_footprint_load_error"),
|
|
3259
3111
|
circuit_json_footprint_load_error_id: getZodPrefixedIdWithDefault(
|
|
3260
3112
|
"circuit_json_footprint_load_error"
|
|
3261
3113
|
),
|
|
3262
|
-
pcb_component_id:
|
|
3263
|
-
source_component_id:
|
|
3264
|
-
pcb_group_id:
|
|
3265
|
-
subcircuit_id:
|
|
3266
|
-
error_type:
|
|
3267
|
-
message:
|
|
3268
|
-
circuit_json:
|
|
3114
|
+
pcb_component_id: z108.string(),
|
|
3115
|
+
source_component_id: z108.string(),
|
|
3116
|
+
pcb_group_id: z108.string().optional(),
|
|
3117
|
+
subcircuit_id: z108.string().optional(),
|
|
3118
|
+
error_type: z108.literal("circuit_json_footprint_load_error").default("circuit_json_footprint_load_error"),
|
|
3119
|
+
message: z108.string(),
|
|
3120
|
+
circuit_json: z108.array(z108.any()).optional()
|
|
3269
3121
|
}).describe("Defines an error when a circuit JSON footprint fails to load");
|
|
3270
3122
|
expectTypesMatch(true);
|
|
3271
|
-
var pcb_group =
|
|
3272
|
-
type:
|
|
3123
|
+
var pcb_group = z109.object({
|
|
3124
|
+
type: z109.literal("pcb_group"),
|
|
3273
3125
|
pcb_group_id: getZodPrefixedIdWithDefault("pcb_group"),
|
|
3274
|
-
source_group_id:
|
|
3275
|
-
is_subcircuit:
|
|
3276
|
-
subcircuit_id:
|
|
3126
|
+
source_group_id: z109.string(),
|
|
3127
|
+
is_subcircuit: z109.boolean().optional(),
|
|
3128
|
+
subcircuit_id: z109.string().optional(),
|
|
3277
3129
|
width: length.optional(),
|
|
3278
3130
|
height: length.optional(),
|
|
3279
3131
|
center: point,
|
|
3280
|
-
outline:
|
|
3132
|
+
outline: z109.array(point).optional(),
|
|
3281
3133
|
anchor_position: point.optional(),
|
|
3282
|
-
anchor_alignment:
|
|
3283
|
-
pcb_component_ids:
|
|
3284
|
-
|
|
3285
|
-
|
|
3286
|
-
|
|
3287
|
-
|
|
3288
|
-
autorouter_configuration: z112.object({
|
|
3134
|
+
anchor_alignment: z109.enum(["center", "top_left", "top_right", "bottom_left", "bottom_right"]).optional(),
|
|
3135
|
+
pcb_component_ids: z109.array(z109.string()),
|
|
3136
|
+
name: z109.string().optional(),
|
|
3137
|
+
description: z109.string().optional(),
|
|
3138
|
+
layout_mode: z109.string().optional(),
|
|
3139
|
+
autorouter_configuration: z109.object({
|
|
3289
3140
|
trace_clearance: length
|
|
3290
3141
|
}).optional(),
|
|
3291
|
-
autorouter_used_string:
|
|
3142
|
+
autorouter_used_string: z109.string().optional()
|
|
3292
3143
|
}).describe("Defines a group of components on the PCB");
|
|
3293
3144
|
expectTypesMatch(true);
|
|
3294
|
-
var pcb_autorouting_error =
|
|
3295
|
-
type:
|
|
3145
|
+
var pcb_autorouting_error = z110.object({
|
|
3146
|
+
type: z110.literal("pcb_autorouting_error"),
|
|
3296
3147
|
pcb_error_id: getZodPrefixedIdWithDefault("pcb_autorouting_error"),
|
|
3297
|
-
error_type:
|
|
3298
|
-
message:
|
|
3299
|
-
subcircuit_id:
|
|
3148
|
+
error_type: z110.literal("pcb_autorouting_error").default("pcb_autorouting_error"),
|
|
3149
|
+
message: z110.string(),
|
|
3150
|
+
subcircuit_id: z110.string().optional()
|
|
3300
3151
|
}).describe("The autorouting has failed to route a portion of the board");
|
|
3301
3152
|
expectTypesMatch(true);
|
|
3302
|
-
var pcb_manual_edit_conflict_warning =
|
|
3303
|
-
type:
|
|
3153
|
+
var pcb_manual_edit_conflict_warning = z111.object({
|
|
3154
|
+
type: z111.literal("pcb_manual_edit_conflict_warning"),
|
|
3304
3155
|
pcb_manual_edit_conflict_warning_id: getZodPrefixedIdWithDefault(
|
|
3305
3156
|
"pcb_manual_edit_conflict_warning"
|
|
3306
3157
|
),
|
|
3307
|
-
warning_type:
|
|
3308
|
-
message:
|
|
3309
|
-
pcb_component_id:
|
|
3310
|
-
pcb_group_id:
|
|
3311
|
-
subcircuit_id:
|
|
3312
|
-
source_component_id:
|
|
3158
|
+
warning_type: z111.literal("pcb_manual_edit_conflict_warning").default("pcb_manual_edit_conflict_warning"),
|
|
3159
|
+
message: z111.string(),
|
|
3160
|
+
pcb_component_id: z111.string(),
|
|
3161
|
+
pcb_group_id: z111.string().optional(),
|
|
3162
|
+
subcircuit_id: z111.string().optional(),
|
|
3163
|
+
source_component_id: z111.string()
|
|
3313
3164
|
}).describe(
|
|
3314
3165
|
"Warning emitted when a component has both manual placement and explicit pcbX/pcbY coordinates"
|
|
3315
3166
|
);
|
|
3316
3167
|
expectTypesMatch(true);
|
|
3317
|
-
var pcb_breakout_point =
|
|
3318
|
-
type:
|
|
3168
|
+
var pcb_breakout_point = z112.object({
|
|
3169
|
+
type: z112.literal("pcb_breakout_point"),
|
|
3319
3170
|
pcb_breakout_point_id: getZodPrefixedIdWithDefault("pcb_breakout_point"),
|
|
3320
|
-
pcb_group_id:
|
|
3321
|
-
subcircuit_id:
|
|
3322
|
-
source_trace_id:
|
|
3323
|
-
source_port_id:
|
|
3324
|
-
source_net_id:
|
|
3171
|
+
pcb_group_id: z112.string(),
|
|
3172
|
+
subcircuit_id: z112.string().optional(),
|
|
3173
|
+
source_trace_id: z112.string().optional(),
|
|
3174
|
+
source_port_id: z112.string().optional(),
|
|
3175
|
+
source_net_id: z112.string().optional(),
|
|
3325
3176
|
x: distance,
|
|
3326
3177
|
y: distance
|
|
3327
3178
|
}).describe(
|
|
3328
3179
|
"Defines a routing target within a pcb_group for a source_trace or source_net"
|
|
3329
3180
|
);
|
|
3330
3181
|
expectTypesMatch(true);
|
|
3331
|
-
var pcb_ground_plane =
|
|
3332
|
-
type:
|
|
3182
|
+
var pcb_ground_plane = z113.object({
|
|
3183
|
+
type: z113.literal("pcb_ground_plane"),
|
|
3333
3184
|
pcb_ground_plane_id: getZodPrefixedIdWithDefault("pcb_ground_plane"),
|
|
3334
|
-
source_pcb_ground_plane_id:
|
|
3335
|
-
source_net_id:
|
|
3336
|
-
pcb_group_id:
|
|
3337
|
-
subcircuit_id:
|
|
3185
|
+
source_pcb_ground_plane_id: z113.string(),
|
|
3186
|
+
source_net_id: z113.string(),
|
|
3187
|
+
pcb_group_id: z113.string().optional(),
|
|
3188
|
+
subcircuit_id: z113.string().optional()
|
|
3338
3189
|
}).describe("Defines a ground plane on the PCB");
|
|
3339
3190
|
expectTypesMatch(true);
|
|
3340
|
-
var pcb_ground_plane_region =
|
|
3341
|
-
type:
|
|
3191
|
+
var pcb_ground_plane_region = z114.object({
|
|
3192
|
+
type: z114.literal("pcb_ground_plane_region"),
|
|
3342
3193
|
pcb_ground_plane_region_id: getZodPrefixedIdWithDefault(
|
|
3343
3194
|
"pcb_ground_plane_region"
|
|
3344
3195
|
),
|
|
3345
|
-
pcb_ground_plane_id:
|
|
3346
|
-
pcb_group_id:
|
|
3347
|
-
subcircuit_id:
|
|
3196
|
+
pcb_ground_plane_id: z114.string(),
|
|
3197
|
+
pcb_group_id: z114.string().optional(),
|
|
3198
|
+
subcircuit_id: z114.string().optional(),
|
|
3348
3199
|
layer: layer_ref,
|
|
3349
|
-
points:
|
|
3200
|
+
points: z114.array(point)
|
|
3350
3201
|
}).describe("Defines a polygon region of a ground plane");
|
|
3351
3202
|
expectTypesMatch(true);
|
|
3352
|
-
var pcb_thermal_spoke =
|
|
3353
|
-
type:
|
|
3203
|
+
var pcb_thermal_spoke = z115.object({
|
|
3204
|
+
type: z115.literal("pcb_thermal_spoke"),
|
|
3354
3205
|
pcb_thermal_spoke_id: getZodPrefixedIdWithDefault("pcb_thermal_spoke"),
|
|
3355
|
-
pcb_ground_plane_id:
|
|
3356
|
-
shape:
|
|
3357
|
-
spoke_count:
|
|
3206
|
+
pcb_ground_plane_id: z115.string(),
|
|
3207
|
+
shape: z115.string(),
|
|
3208
|
+
spoke_count: z115.number(),
|
|
3358
3209
|
spoke_thickness: distance,
|
|
3359
3210
|
spoke_inner_diameter: distance,
|
|
3360
3211
|
spoke_outer_diameter: distance,
|
|
3361
|
-
pcb_plated_hole_id:
|
|
3362
|
-
subcircuit_id:
|
|
3212
|
+
pcb_plated_hole_id: z115.string().optional(),
|
|
3213
|
+
subcircuit_id: z115.string().optional()
|
|
3363
3214
|
}).describe("Pattern for connecting a ground plane to a plated hole");
|
|
3364
3215
|
expectTypesMatch(true);
|
|
3365
|
-
var pcb_copper_pour_base =
|
|
3366
|
-
type:
|
|
3216
|
+
var pcb_copper_pour_base = z116.object({
|
|
3217
|
+
type: z116.literal("pcb_copper_pour"),
|
|
3367
3218
|
pcb_copper_pour_id: getZodPrefixedIdWithDefault("pcb_copper_pour"),
|
|
3368
|
-
pcb_group_id:
|
|
3369
|
-
subcircuit_id:
|
|
3219
|
+
pcb_group_id: z116.string().optional(),
|
|
3220
|
+
subcircuit_id: z116.string().optional(),
|
|
3370
3221
|
layer: layer_ref,
|
|
3371
|
-
source_net_id:
|
|
3372
|
-
covered_with_solder_mask: z119.boolean().optional().default(true)
|
|
3222
|
+
source_net_id: z116.string().optional()
|
|
3373
3223
|
});
|
|
3374
3224
|
var pcb_copper_pour_rect = pcb_copper_pour_base.extend({
|
|
3375
|
-
shape:
|
|
3225
|
+
shape: z116.literal("rect"),
|
|
3376
3226
|
center: point,
|
|
3377
3227
|
width: length,
|
|
3378
3228
|
height: length,
|
|
@@ -3380,141 +3230,140 @@ var pcb_copper_pour_rect = pcb_copper_pour_base.extend({
|
|
|
3380
3230
|
});
|
|
3381
3231
|
expectTypesMatch(true);
|
|
3382
3232
|
var pcb_copper_pour_brep = pcb_copper_pour_base.extend({
|
|
3383
|
-
shape:
|
|
3233
|
+
shape: z116.literal("brep"),
|
|
3384
3234
|
brep_shape
|
|
3385
3235
|
});
|
|
3386
3236
|
expectTypesMatch(true);
|
|
3387
3237
|
var pcb_copper_pour_polygon = pcb_copper_pour_base.extend({
|
|
3388
|
-
shape:
|
|
3389
|
-
points:
|
|
3238
|
+
shape: z116.literal("polygon"),
|
|
3239
|
+
points: z116.array(point)
|
|
3390
3240
|
});
|
|
3391
3241
|
expectTypesMatch(true);
|
|
3392
|
-
var pcb_copper_pour =
|
|
3242
|
+
var pcb_copper_pour = z116.discriminatedUnion("shape", [
|
|
3393
3243
|
pcb_copper_pour_rect,
|
|
3394
3244
|
pcb_copper_pour_brep,
|
|
3395
3245
|
pcb_copper_pour_polygon
|
|
3396
3246
|
]).describe("Defines a copper pour on the PCB.");
|
|
3397
3247
|
expectTypesMatch(true);
|
|
3398
|
-
var pcb_component_outside_board_error =
|
|
3399
|
-
type:
|
|
3248
|
+
var pcb_component_outside_board_error = z117.object({
|
|
3249
|
+
type: z117.literal("pcb_component_outside_board_error"),
|
|
3400
3250
|
pcb_component_outside_board_error_id: getZodPrefixedIdWithDefault(
|
|
3401
3251
|
"pcb_component_outside_board_error"
|
|
3402
3252
|
),
|
|
3403
|
-
error_type:
|
|
3404
|
-
message:
|
|
3405
|
-
pcb_component_id:
|
|
3406
|
-
pcb_board_id:
|
|
3253
|
+
error_type: z117.literal("pcb_component_outside_board_error").default("pcb_component_outside_board_error"),
|
|
3254
|
+
message: z117.string(),
|
|
3255
|
+
pcb_component_id: z117.string(),
|
|
3256
|
+
pcb_board_id: z117.string(),
|
|
3407
3257
|
component_center: point,
|
|
3408
|
-
component_bounds:
|
|
3409
|
-
min_x:
|
|
3410
|
-
max_x:
|
|
3411
|
-
min_y:
|
|
3412
|
-
max_y:
|
|
3258
|
+
component_bounds: z117.object({
|
|
3259
|
+
min_x: z117.number(),
|
|
3260
|
+
max_x: z117.number(),
|
|
3261
|
+
min_y: z117.number(),
|
|
3262
|
+
max_y: z117.number()
|
|
3413
3263
|
}),
|
|
3414
|
-
subcircuit_id:
|
|
3415
|
-
source_component_id:
|
|
3264
|
+
subcircuit_id: z117.string().optional(),
|
|
3265
|
+
source_component_id: z117.string().optional()
|
|
3416
3266
|
}).describe(
|
|
3417
3267
|
"Error emitted when a PCB component is placed outside the board boundaries"
|
|
3418
3268
|
);
|
|
3419
3269
|
expectTypesMatch(true);
|
|
3420
|
-
var pcb_component_invalid_layer_error =
|
|
3421
|
-
type:
|
|
3270
|
+
var pcb_component_invalid_layer_error = z118.object({
|
|
3271
|
+
type: z118.literal("pcb_component_invalid_layer_error"),
|
|
3422
3272
|
pcb_component_invalid_layer_error_id: getZodPrefixedIdWithDefault(
|
|
3423
3273
|
"pcb_component_invalid_layer_error"
|
|
3424
3274
|
),
|
|
3425
|
-
error_type:
|
|
3426
|
-
message:
|
|
3427
|
-
pcb_component_id:
|
|
3428
|
-
source_component_id:
|
|
3275
|
+
error_type: z118.literal("pcb_component_invalid_layer_error").default("pcb_component_invalid_layer_error"),
|
|
3276
|
+
message: z118.string(),
|
|
3277
|
+
pcb_component_id: z118.string().optional(),
|
|
3278
|
+
source_component_id: z118.string(),
|
|
3429
3279
|
layer: layer_ref,
|
|
3430
|
-
subcircuit_id:
|
|
3280
|
+
subcircuit_id: z118.string().optional()
|
|
3431
3281
|
}).describe(
|
|
3432
3282
|
"Error emitted when a component is placed on an invalid layer (components can only be on 'top' or 'bottom' layers)"
|
|
3433
3283
|
);
|
|
3434
3284
|
expectTypesMatch(true);
|
|
3435
|
-
var pcb_via_clearance_error =
|
|
3436
|
-
type:
|
|
3285
|
+
var pcb_via_clearance_error = z119.object({
|
|
3286
|
+
type: z119.literal("pcb_via_clearance_error"),
|
|
3437
3287
|
pcb_error_id: getZodPrefixedIdWithDefault("pcb_error"),
|
|
3438
|
-
error_type:
|
|
3439
|
-
message:
|
|
3440
|
-
pcb_via_ids:
|
|
3288
|
+
error_type: z119.literal("pcb_via_clearance_error").default("pcb_via_clearance_error"),
|
|
3289
|
+
message: z119.string(),
|
|
3290
|
+
pcb_via_ids: z119.array(z119.string()).min(2),
|
|
3441
3291
|
minimum_clearance: distance.optional(),
|
|
3442
3292
|
actual_clearance: distance.optional(),
|
|
3443
|
-
pcb_center:
|
|
3444
|
-
x:
|
|
3445
|
-
y:
|
|
3293
|
+
pcb_center: z119.object({
|
|
3294
|
+
x: z119.number().optional(),
|
|
3295
|
+
y: z119.number().optional()
|
|
3446
3296
|
}).optional(),
|
|
3447
|
-
subcircuit_id:
|
|
3297
|
+
subcircuit_id: z119.string().optional()
|
|
3448
3298
|
}).describe("Error emitted when vias are closer than the allowed clearance");
|
|
3449
3299
|
expectTypesMatch(true);
|
|
3450
|
-
var pcb_courtyard_rect =
|
|
3451
|
-
type:
|
|
3300
|
+
var pcb_courtyard_rect = z120.object({
|
|
3301
|
+
type: z120.literal("pcb_courtyard_rect"),
|
|
3452
3302
|
pcb_courtyard_rect_id: getZodPrefixedIdWithDefault("pcb_courtyard_rect"),
|
|
3453
|
-
pcb_component_id:
|
|
3454
|
-
pcb_group_id:
|
|
3455
|
-
subcircuit_id:
|
|
3303
|
+
pcb_component_id: z120.string(),
|
|
3304
|
+
pcb_group_id: z120.string().optional(),
|
|
3305
|
+
subcircuit_id: z120.string().optional(),
|
|
3456
3306
|
center: point,
|
|
3457
3307
|
width: length,
|
|
3458
3308
|
height: length,
|
|
3459
3309
|
layer: visible_layer,
|
|
3460
|
-
color:
|
|
3310
|
+
color: z120.string().optional()
|
|
3461
3311
|
}).describe("Defines a courtyard rectangle on the PCB");
|
|
3462
3312
|
expectTypesMatch(true);
|
|
3463
|
-
var pcb_courtyard_outline =
|
|
3464
|
-
type:
|
|
3313
|
+
var pcb_courtyard_outline = z121.object({
|
|
3314
|
+
type: z121.literal("pcb_courtyard_outline"),
|
|
3465
3315
|
pcb_courtyard_outline_id: getZodPrefixedIdWithDefault(
|
|
3466
3316
|
"pcb_courtyard_outline"
|
|
3467
3317
|
),
|
|
3468
|
-
pcb_component_id:
|
|
3469
|
-
pcb_group_id:
|
|
3470
|
-
subcircuit_id:
|
|
3318
|
+
pcb_component_id: z121.string(),
|
|
3319
|
+
pcb_group_id: z121.string().optional(),
|
|
3320
|
+
subcircuit_id: z121.string().optional(),
|
|
3471
3321
|
layer: visible_layer,
|
|
3472
|
-
outline:
|
|
3322
|
+
outline: z121.array(point).min(2),
|
|
3473
3323
|
stroke_width: length.default("0.1mm"),
|
|
3474
|
-
is_closed:
|
|
3475
|
-
is_stroke_dashed:
|
|
3476
|
-
color:
|
|
3324
|
+
is_closed: z121.boolean().optional(),
|
|
3325
|
+
is_stroke_dashed: z121.boolean().optional(),
|
|
3326
|
+
color: z121.string().optional()
|
|
3477
3327
|
}).describe("Defines a courtyard outline on the PCB");
|
|
3478
3328
|
expectTypesMatch(true);
|
|
3479
|
-
var pcb_courtyard_polygon =
|
|
3480
|
-
type:
|
|
3329
|
+
var pcb_courtyard_polygon = z122.object({
|
|
3330
|
+
type: z122.literal("pcb_courtyard_polygon"),
|
|
3481
3331
|
pcb_courtyard_polygon_id: getZodPrefixedIdWithDefault(
|
|
3482
3332
|
"pcb_courtyard_polygon"
|
|
3483
3333
|
),
|
|
3484
|
-
pcb_component_id:
|
|
3485
|
-
pcb_group_id:
|
|
3486
|
-
subcircuit_id:
|
|
3334
|
+
pcb_component_id: z122.string(),
|
|
3335
|
+
pcb_group_id: z122.string().optional(),
|
|
3336
|
+
subcircuit_id: z122.string().optional(),
|
|
3487
3337
|
layer: visible_layer,
|
|
3488
|
-
points:
|
|
3489
|
-
color:
|
|
3338
|
+
points: z122.array(point).min(3),
|
|
3339
|
+
color: z122.string().optional()
|
|
3490
3340
|
}).describe("Defines a courtyard polygon on the PCB");
|
|
3491
3341
|
expectTypesMatch(true);
|
|
3492
|
-
var cad_component =
|
|
3493
|
-
type:
|
|
3494
|
-
cad_component_id:
|
|
3495
|
-
pcb_component_id:
|
|
3496
|
-
source_component_id:
|
|
3342
|
+
var cad_component = z123.object({
|
|
3343
|
+
type: z123.literal("cad_component"),
|
|
3344
|
+
cad_component_id: z123.string(),
|
|
3345
|
+
pcb_component_id: z123.string(),
|
|
3346
|
+
source_component_id: z123.string(),
|
|
3497
3347
|
position: point3,
|
|
3498
3348
|
rotation: point3.optional(),
|
|
3499
3349
|
size: point3.optional(),
|
|
3500
3350
|
layer: layer_ref.optional(),
|
|
3501
|
-
subcircuit_id:
|
|
3351
|
+
subcircuit_id: z123.string().optional(),
|
|
3502
3352
|
// These are all ways to generate/load the 3d model
|
|
3503
|
-
footprinter_string:
|
|
3504
|
-
model_obj_url:
|
|
3505
|
-
model_stl_url:
|
|
3506
|
-
model_3mf_url:
|
|
3507
|
-
model_gltf_url:
|
|
3508
|
-
model_glb_url:
|
|
3509
|
-
model_step_url:
|
|
3510
|
-
model_wrl_url:
|
|
3511
|
-
model_unit_to_mm_scale_factor:
|
|
3512
|
-
model_jscad:
|
|
3513
|
-
show_as_translucent_model: z126.boolean().optional()
|
|
3353
|
+
footprinter_string: z123.string().optional(),
|
|
3354
|
+
model_obj_url: z123.string().optional(),
|
|
3355
|
+
model_stl_url: z123.string().optional(),
|
|
3356
|
+
model_3mf_url: z123.string().optional(),
|
|
3357
|
+
model_gltf_url: z123.string().optional(),
|
|
3358
|
+
model_glb_url: z123.string().optional(),
|
|
3359
|
+
model_step_url: z123.string().optional(),
|
|
3360
|
+
model_wrl_url: z123.string().optional(),
|
|
3361
|
+
model_unit_to_mm_scale_factor: z123.number().optional(),
|
|
3362
|
+
model_jscad: z123.any().optional()
|
|
3514
3363
|
}).describe("Defines a component on the PCB");
|
|
3515
3364
|
expectTypesMatch(true);
|
|
3516
|
-
var wave_shape =
|
|
3517
|
-
var percentage =
|
|
3365
|
+
var wave_shape = z124.enum(["sinewave", "square", "triangle", "sawtooth"]);
|
|
3366
|
+
var percentage = z124.union([z124.string(), z124.number()]).transform((val) => {
|
|
3518
3367
|
if (typeof val === "string") {
|
|
3519
3368
|
if (val.endsWith("%")) {
|
|
3520
3369
|
return parseFloat(val.slice(0, -1)) / 100;
|
|
@@ -3523,30 +3372,30 @@ var percentage = z127.union([z127.string(), z127.number()]).transform((val) => {
|
|
|
3523
3372
|
}
|
|
3524
3373
|
return val;
|
|
3525
3374
|
}).pipe(
|
|
3526
|
-
|
|
3375
|
+
z124.number().min(0, "Duty cycle must be non-negative").max(1, "Duty cycle cannot be greater than 100%")
|
|
3527
3376
|
);
|
|
3528
|
-
var simulation_dc_voltage_source =
|
|
3529
|
-
type:
|
|
3377
|
+
var simulation_dc_voltage_source = z124.object({
|
|
3378
|
+
type: z124.literal("simulation_voltage_source"),
|
|
3530
3379
|
simulation_voltage_source_id: getZodPrefixedIdWithDefault(
|
|
3531
3380
|
"simulation_voltage_source"
|
|
3532
3381
|
),
|
|
3533
|
-
is_dc_source:
|
|
3534
|
-
positive_source_port_id:
|
|
3535
|
-
negative_source_port_id:
|
|
3536
|
-
positive_source_net_id:
|
|
3537
|
-
negative_source_net_id:
|
|
3382
|
+
is_dc_source: z124.literal(true).optional().default(true),
|
|
3383
|
+
positive_source_port_id: z124.string().optional(),
|
|
3384
|
+
negative_source_port_id: z124.string().optional(),
|
|
3385
|
+
positive_source_net_id: z124.string().optional(),
|
|
3386
|
+
negative_source_net_id: z124.string().optional(),
|
|
3538
3387
|
voltage
|
|
3539
3388
|
}).describe("Defines a DC voltage source for simulation");
|
|
3540
|
-
var simulation_ac_voltage_source =
|
|
3541
|
-
type:
|
|
3389
|
+
var simulation_ac_voltage_source = z124.object({
|
|
3390
|
+
type: z124.literal("simulation_voltage_source"),
|
|
3542
3391
|
simulation_voltage_source_id: getZodPrefixedIdWithDefault(
|
|
3543
3392
|
"simulation_voltage_source"
|
|
3544
3393
|
),
|
|
3545
|
-
is_dc_source:
|
|
3546
|
-
terminal1_source_port_id:
|
|
3547
|
-
terminal2_source_port_id:
|
|
3548
|
-
terminal1_source_net_id:
|
|
3549
|
-
terminal2_source_net_id:
|
|
3394
|
+
is_dc_source: z124.literal(false),
|
|
3395
|
+
terminal1_source_port_id: z124.string().optional(),
|
|
3396
|
+
terminal2_source_port_id: z124.string().optional(),
|
|
3397
|
+
terminal1_source_net_id: z124.string().optional(),
|
|
3398
|
+
terminal2_source_net_id: z124.string().optional(),
|
|
3550
3399
|
voltage: voltage.optional(),
|
|
3551
3400
|
frequency: frequency.optional(),
|
|
3552
3401
|
peak_to_peak_voltage: voltage.optional(),
|
|
@@ -3554,117 +3403,74 @@ var simulation_ac_voltage_source = z127.object({
|
|
|
3554
3403
|
phase: rotation.optional(),
|
|
3555
3404
|
duty_cycle: percentage.optional()
|
|
3556
3405
|
}).describe("Defines an AC voltage source for simulation");
|
|
3557
|
-
var simulation_voltage_source =
|
|
3406
|
+
var simulation_voltage_source = z124.union([simulation_dc_voltage_source, simulation_ac_voltage_source]).describe("Defines a voltage source for simulation");
|
|
3558
3407
|
expectTypesMatch(true);
|
|
3559
3408
|
expectTypesMatch(true);
|
|
3560
3409
|
expectTypesMatch(true);
|
|
3561
|
-
var experiment_type =
|
|
3562
|
-
|
|
3563
|
-
|
|
3564
|
-
|
|
3565
|
-
|
|
3410
|
+
var experiment_type = z125.union([
|
|
3411
|
+
z125.literal("spice_dc_sweep"),
|
|
3412
|
+
z125.literal("spice_dc_operating_point"),
|
|
3413
|
+
z125.literal("spice_transient_analysis"),
|
|
3414
|
+
z125.literal("spice_ac_analysis")
|
|
3566
3415
|
]);
|
|
3567
|
-
var simulation_experiment =
|
|
3568
|
-
type:
|
|
3416
|
+
var simulation_experiment = z125.object({
|
|
3417
|
+
type: z125.literal("simulation_experiment"),
|
|
3569
3418
|
simulation_experiment_id: getZodPrefixedIdWithDefault(
|
|
3570
3419
|
"simulation_experiment"
|
|
3571
3420
|
),
|
|
3572
|
-
name:
|
|
3421
|
+
name: z125.string(),
|
|
3573
3422
|
experiment_type,
|
|
3574
3423
|
time_per_step: duration_ms.optional(),
|
|
3575
3424
|
start_time_ms: ms.optional(),
|
|
3576
3425
|
end_time_ms: ms.optional()
|
|
3577
3426
|
}).describe("Defines a simulation experiment configuration");
|
|
3578
3427
|
expectTypesMatch(true);
|
|
3579
|
-
var simulation_transient_voltage_graph =
|
|
3580
|
-
type:
|
|
3428
|
+
var simulation_transient_voltage_graph = z126.object({
|
|
3429
|
+
type: z126.literal("simulation_transient_voltage_graph"),
|
|
3581
3430
|
simulation_transient_voltage_graph_id: getZodPrefixedIdWithDefault(
|
|
3582
3431
|
"simulation_transient_voltage_graph"
|
|
3583
3432
|
),
|
|
3584
|
-
simulation_experiment_id:
|
|
3585
|
-
timestamps_ms:
|
|
3586
|
-
voltage_levels:
|
|
3587
|
-
|
|
3588
|
-
|
|
3433
|
+
simulation_experiment_id: z126.string(),
|
|
3434
|
+
timestamps_ms: z126.array(z126.number()).optional(),
|
|
3435
|
+
voltage_levels: z126.array(z126.number()),
|
|
3436
|
+
schematic_voltage_probe_id: z126.string().optional(),
|
|
3437
|
+
simulation_voltage_probe_id: z126.string().optional(),
|
|
3438
|
+
subcircuit_connectivity_map_key: z126.string().optional(),
|
|
3589
3439
|
time_per_step: duration_ms,
|
|
3590
3440
|
start_time_ms: ms,
|
|
3591
3441
|
end_time_ms: ms,
|
|
3592
|
-
name:
|
|
3593
|
-
color: z129.string().optional()
|
|
3442
|
+
name: z126.string().optional()
|
|
3594
3443
|
}).describe("Stores voltage measurements over time for a simulation");
|
|
3595
3444
|
expectTypesMatch(true);
|
|
3596
|
-
var simulation_switch =
|
|
3597
|
-
type:
|
|
3445
|
+
var simulation_switch = z127.object({
|
|
3446
|
+
type: z127.literal("simulation_switch"),
|
|
3598
3447
|
simulation_switch_id: getZodPrefixedIdWithDefault("simulation_switch"),
|
|
3599
|
-
source_component_id:
|
|
3448
|
+
source_component_id: z127.string().optional(),
|
|
3600
3449
|
closes_at: ms.optional(),
|
|
3601
3450
|
opens_at: ms.optional(),
|
|
3602
|
-
starts_closed:
|
|
3451
|
+
starts_closed: z127.boolean().optional(),
|
|
3603
3452
|
switching_frequency: frequency.optional()
|
|
3604
3453
|
}).describe("Defines a switch for simulation timing control");
|
|
3605
3454
|
expectTypesMatch(true);
|
|
3606
|
-
var simulation_voltage_probe =
|
|
3607
|
-
type:
|
|
3455
|
+
var simulation_voltage_probe = z128.object({
|
|
3456
|
+
type: z128.literal("simulation_voltage_probe"),
|
|
3608
3457
|
simulation_voltage_probe_id: getZodPrefixedIdWithDefault(
|
|
3609
3458
|
"simulation_voltage_probe"
|
|
3610
3459
|
),
|
|
3611
|
-
|
|
3612
|
-
|
|
3613
|
-
|
|
3614
|
-
|
|
3615
|
-
reference_input_source_port_id: z131.string().optional(),
|
|
3616
|
-
reference_input_source_net_id: z131.string().optional(),
|
|
3617
|
-
subcircuit_id: z131.string().optional(),
|
|
3618
|
-
color: z131.string().optional()
|
|
3460
|
+
source_port_id: z128.string().optional(),
|
|
3461
|
+
source_net_id: z128.string().optional(),
|
|
3462
|
+
name: z128.string().optional(),
|
|
3463
|
+
subcircuit_id: z128.string().optional()
|
|
3619
3464
|
}).describe(
|
|
3620
|
-
"Defines a voltage probe for simulation
|
|
3621
|
-
).
|
|
3622
|
-
|
|
3623
|
-
|
|
3624
|
-
|
|
3625
|
-
const has_nets = !!data.signal_input_source_net_id || !!data.reference_input_source_net_id;
|
|
3626
|
-
if (has_ports && has_nets) {
|
|
3627
|
-
ctx.addIssue({
|
|
3628
|
-
code: z131.ZodIssueCode.custom,
|
|
3629
|
-
message: "Cannot mix port and net connections in a differential probe."
|
|
3630
|
-
});
|
|
3631
|
-
} else if (has_ports) {
|
|
3632
|
-
if (!data.signal_input_source_port_id || !data.reference_input_source_port_id) {
|
|
3633
|
-
ctx.addIssue({
|
|
3634
|
-
code: z131.ZodIssueCode.custom,
|
|
3635
|
-
message: "Differential port probe requires both signal_input_source_port_id and reference_input_source_port_id."
|
|
3636
|
-
});
|
|
3637
|
-
}
|
|
3638
|
-
} else if (has_nets) {
|
|
3639
|
-
if (!data.signal_input_source_net_id || !data.reference_input_source_net_id) {
|
|
3640
|
-
ctx.addIssue({
|
|
3641
|
-
code: z131.ZodIssueCode.custom,
|
|
3642
|
-
message: "Differential net probe requires both signal_input_source_net_id and reference_input_source_net_id."
|
|
3643
|
-
});
|
|
3644
|
-
}
|
|
3645
|
-
}
|
|
3646
|
-
} else {
|
|
3647
|
-
if (!!data.signal_input_source_port_id === !!data.signal_input_source_net_id) {
|
|
3648
|
-
ctx.addIssue({
|
|
3649
|
-
code: z131.ZodIssueCode.custom,
|
|
3650
|
-
message: "A voltage probe must have exactly one of signal_input_source_port_id or signal_input_source_net_id."
|
|
3651
|
-
});
|
|
3652
|
-
}
|
|
3465
|
+
"Defines a voltage probe for simulation, connected to a port or a net"
|
|
3466
|
+
).refine(
|
|
3467
|
+
(data) => Boolean(data.source_port_id) !== Boolean(data.source_net_id),
|
|
3468
|
+
{
|
|
3469
|
+
message: "Exactly one of source_port_id or source_net_id must be provided to simulation_voltage_probe"
|
|
3653
3470
|
}
|
|
3654
|
-
|
|
3655
|
-
expectTypesMatch(true);
|
|
3656
|
-
var simulation_unknown_experiment_error = z132.object({
|
|
3657
|
-
type: z132.literal("simulation_unknown_experiment_error"),
|
|
3658
|
-
simulation_unknown_experiment_error_id: getZodPrefixedIdWithDefault(
|
|
3659
|
-
"simulation_unknown_experiment_error"
|
|
3660
|
-
),
|
|
3661
|
-
error_type: z132.literal("simulation_unknown_experiment_error").default("simulation_unknown_experiment_error"),
|
|
3662
|
-
message: z132.string(),
|
|
3663
|
-
simulation_experiment_id: z132.string().optional(),
|
|
3664
|
-
subcircuit_id: z132.string().optional()
|
|
3665
|
-
}).describe("An unknown error occurred during the simulation experiment.");
|
|
3471
|
+
);
|
|
3666
3472
|
expectTypesMatch(true);
|
|
3667
|
-
var any_circuit_element =
|
|
3473
|
+
var any_circuit_element = z129.union([
|
|
3668
3474
|
source_trace,
|
|
3669
3475
|
source_port,
|
|
3670
3476
|
any_source_component,
|
|
@@ -3693,7 +3499,6 @@ var any_circuit_element = z133.union([
|
|
|
3693
3499
|
source_project_metadata,
|
|
3694
3500
|
source_trace_not_connected_error,
|
|
3695
3501
|
source_pin_missing_trace_warning,
|
|
3696
|
-
source_pin_must_be_connected_error,
|
|
3697
3502
|
unknown_error_finding_part,
|
|
3698
3503
|
pcb_component,
|
|
3699
3504
|
pcb_hole,
|
|
@@ -3774,8 +3579,7 @@ var any_circuit_element = z133.union([
|
|
|
3774
3579
|
simulation_experiment,
|
|
3775
3580
|
simulation_transient_voltage_graph,
|
|
3776
3581
|
simulation_switch,
|
|
3777
|
-
simulation_voltage_probe
|
|
3778
|
-
simulation_unknown_experiment_error
|
|
3582
|
+
simulation_voltage_probe
|
|
3779
3583
|
]);
|
|
3780
3584
|
var any_soup_element = any_circuit_element;
|
|
3781
3585
|
expectTypesMatch(true);
|
|
@@ -6007,10 +5811,10 @@ var re = e({ primitives: [...Object.values(sh), ...Object.values(mh), { type: "t
|
|
|
6007
5811
|
var Zp = E(re);
|
|
6008
5812
|
var { paths: nh, texts: zg, bounds: Qp, refblocks: Kp, circles: fh } = gt;
|
|
6009
5813
|
var ta = e({ primitives: [...Object.values(nh), ...Object.values(fh), { type: "text", text: "{REF}", x: 0, y: 0.2594553499999995 }], ports: [{ ...Kp.left1, labels: ["1"] }, { ...Kp.right1, labels: ["2"] }], center: { x: Qp.centerX, y: Qp.centerY } }).rotateRightFacingSymbol("up").labelPort("left1", ["1"]).labelPort("right1", ["2"]).changeTextAnchor("{REF}", "middle_right").build();
|
|
6010
|
-
var
|
|
6011
|
-
var { paths: ch, texts: Cg, bounds: oe, refblocks: ea, circles: dh } =
|
|
5814
|
+
var z130 = { paths: { path27: { type: "path", points: [{ x: 0.55, y: 0.02 }, { x: 0.07, y: 0.02 }], color: "primary", fill: false }, path28: { type: "path", points: [{ x: -0.09, y: 0.02 }, { x: -0.55, y: 0.02 }], color: "primary", fill: false }, path29: { type: "path", points: [{ x: 0.07, y: 0.28 }, { x: 0.07, y: -0.25 }], color: "primary", fill: false }, path30: { type: "path", points: [{ x: -0.09, y: 0.28 }, { x: -0.09, y: -0.25 }], color: "primary", fill: false } }, texts: { top1: { type: "text", text: "{REF}", x: -0.01, y: 0.42 }, bottom1: { type: "text", text: "{VAL}", x: 0, y: -0.42 } }, refblocks: { left1: { x: -0.55, y: 0.02 }, right1: { x: 0.55, y: 0.02 } }, bounds: { minX: -0.58, maxX: 0.58, minY: -0.42, maxY: 0.42, width: 1.16, height: 0.84, centerX: 0, centerY: 0 }, circles: {} };
|
|
5815
|
+
var { paths: ch, texts: Cg, bounds: oe, refblocks: ea, circles: dh } = z130;
|
|
6012
5816
|
var ra = e({ primitives: [...Object.values(ch), ...Object.values(dh), { type: "text", text: "{REF}", x: -0.2, y: 0.115 }, { type: "text", text: "{VAL}", x: 0.2, y: 0.115 }], ports: [{ ...ea.left1, labels: ["1"] }, { ...ea.right1, labels: ["2"] }], size: { width: oe.width, height: oe.height }, center: { x: oe.centerX, y: oe.centerY } }).changeTextAnchor("{VAL}", "top_left").rotateRightFacingSymbol("down").labelPort("left1", ["1", "pos"]).labelPort("right1", ["2", "neg"]).changeTextAnchor("{REF}", "bottom_left").build();
|
|
6013
|
-
var oa = e(
|
|
5817
|
+
var oa = e(z130).changeTextAnchor("{VAL}", "middle_top").rotateRightFacingSymbol("right").labelPort("left1", ["2", "neg"]).labelPort("right1", ["1", "pos"]).changeTextAnchor("{REF}", "middle_bottom").build();
|
|
6014
5818
|
var O = { paths: { "path27-5": { type: "path", points: [{ x: 0.45, y: 0.02 }, { x: 0, y: 0.02 }], color: "primary", fill: false }, "path28-5": { type: "path", points: [{ x: -0.09, y: 0.02 }, { x: -0.54, y: 0.02 }], color: "primary", fill: false }, "path30-7": { type: "path", points: [{ x: 0, y: 0.28 }, { x: 0, y: -0.25 }], color: "primary", fill: false }, path8704: { type: "path", points: [{ x: -0.14, y: -0.24 }, { x: -0.14, y: -0.24 }, { x: -0.14, y: -0.24 }, { x: -0.14, y: -0.24 }, { x: -0.14, y: -0.24 }, { x: -0.14, y: -0.24 }, { x: -0.14, y: -0.24 }, { x: -0.14, y: -0.24 }, { x: -0.14, y: -0.24 }, { x: -0.14, y: -0.23 }, { x: -0.14, y: -0.23 }, { x: -0.14, y: -0.23 }, { x: -0.14, y: -0.23 }, { x: -0.13, y: -0.23 }, { x: -0.13, y: -0.23 }, { x: -0.13, y: -0.23 }, { x: -0.13, y: -0.23 }, { x: -0.13, y: -0.22 }, { x: -0.13, y: -0.22 }, { x: -0.13, y: -0.22 }, { x: -0.13, y: -0.22 }, { x: -0.13, y: -0.22 }, { x: -0.13, y: -0.22 }, { x: -0.13, y: -0.22 }, { x: -0.13, y: -0.22 }, { x: -0.13, y: -0.21 }, { x: -0.13, y: -0.21 }, { x: -0.13, y: -0.21 }, { x: -0.12, y: -0.21 }, { x: -0.12, y: -0.21 }, { x: -0.12, y: -0.21 }, { x: -0.12, y: -0.21 }, { x: -0.12, y: -0.21 }, { x: -0.12, y: -0.2 }, { x: -0.12, y: -0.2 }, { x: -0.12, y: -0.2 }, { x: -0.12, y: -0.2 }, { x: -0.12, y: -0.2 }, { x: -0.12, y: -0.2 }, { x: -0.12, y: -0.2 }, { x: -0.12, y: -0.2 }, { x: -0.12, y: -0.19 }, { x: -0.12, y: -0.19 }, { x: -0.12, y: -0.19 }, { x: -0.12, y: -0.19 }, { x: -0.11, y: -0.19 }, { x: -0.11, y: -0.19 }, { x: -0.11, y: -0.19 }, { x: -0.11, y: -0.18 }, { x: -0.11, y: -0.18 }, { x: -0.11, y: -0.18 }, { x: -0.11, y: -0.18 }, { x: -0.11, y: -0.18 }, { x: -0.11, y: -0.18 }, { x: -0.11, y: -0.18 }, { x: -0.11, y: -0.18 }, { x: -0.11, y: -0.17 }, { x: -0.11, y: -0.17 }, { x: -0.11, y: -0.17 }, { x: -0.11, y: -0.17 }, { x: -0.11, y: -0.17 }, { x: -0.11, y: -0.17 }, { x: -0.11, y: -0.17 }, { x: -0.11, y: -0.17 }, { x: -0.1, y: -0.16 }, { x: -0.1, y: -0.16 }, { x: -0.1, y: -0.16 }, { x: -0.1, y: -0.16 }, { x: -0.1, y: -0.16 }, { x: -0.1, y: -0.16 }, { x: -0.1, y: -0.16 }, { x: -0.1, y: -0.16 }, { x: -0.1, y: -0.15 }, { x: -0.1, y: -0.15 }, { x: -0.1, y: -0.15 }, { x: -0.1, y: -0.15 }, { x: -0.1, y: -0.15 }, { x: -0.1, y: -0.15 }, { x: -0.1, y: -0.15 }, { x: -0.1, y: -0.14 }, { x: -0.1, y: -0.14 }, { x: -0.1, y: -0.14 }, { x: -0.1, y: -0.14 }, { x: -0.1, y: -0.14 }, { x: -0.1, y: -0.14 }, { x: -0.1, y: -0.14 }, { x: -0.09, y: -0.14 }, { x: -0.09, y: -0.13 }, { x: -0.09, y: -0.13 }, { x: -0.09, y: -0.13 }, { x: -0.09, y: -0.13 }, { x: -0.09, y: -0.13 }, { x: -0.09, y: -0.13 }, { x: -0.09, y: -0.13 }, { x: -0.09, y: -0.13 }, { x: -0.09, y: -0.12 }, { x: -0.09, y: -0.12 }, { x: -0.09, y: -0.12 }, { x: -0.09, y: -0.12 }, { x: -0.09, y: -0.12 }, { x: -0.09, y: -0.12 }, { x: -0.09, y: -0.12 }, { x: -0.09, y: -0.12 }, { x: -0.09, y: -0.11 }, { x: -0.09, y: -0.11 }, { x: -0.09, y: -0.11 }, { x: -0.09, y: -0.11 }, { x: -0.09, y: -0.11 }, { x: -0.09, y: -0.11 }, { x: -0.09, y: -0.1 }, { x: -0.09, y: -0.1 }, { x: -0.09, y: -0.1 }, { x: -0.09, y: -0.1 }, { x: -0.09, y: -0.1 }, { x: -0.09, y: -0.1 }, { x: -0.08, y: -0.09 }, { x: -0.08, y: -0.09 }, { x: -0.08, y: -0.09 }, { x: -0.08, y: -0.09 }, { x: -0.08, y: -0.09 }, { x: -0.08, y: -0.09 }, { x: -0.08, y: -0.08 }, { x: -0.08, y: -0.08 }, { x: -0.08, y: -0.08 }, { x: -0.08, y: -0.08 }, { x: -0.08, y: -0.08 }, { x: -0.08, y: -0.08 }, { x: -0.08, y: -0.07 }, { x: -0.08, y: -0.07 }, { x: -0.08, y: -0.07 }, { x: -0.08, y: -0.07 }, { x: -0.08, y: -0.07 }, { x: -0.08, y: -0.07 }, { x: -0.08, y: -0.06 }, { x: -0.08, y: -0.06 }, { x: -0.08, y: -0.06 }, { x: -0.08, y: -0.06 }, { x: -0.08, y: -0.06 }, { x: -0.08, y: -0.05 }, { x: -0.08, y: -0.05 }, { x: -0.08, y: -0.05 }, { x: -0.08, y: -0.05 }, { x: -0.08, y: -0.05 }, { x: -0.08, y: -0.05 }, { x: -0.08, y: -0.04 }, { x: -0.08, y: -0.04 }, { x: -0.08, y: -0.04 }, { x: -0.08, y: -0.04 }, { x: -0.08, y: -0.04 }, { x: -0.08, y: -0.04 }, { x: -0.08, y: -0.03 }, { x: -0.08, y: -0.03 }, { x: -0.08, y: -0.03 }, { x: -0.08, y: -0.03 }, { x: -0.08, y: -0.03 }, { x: -0.08, y: -0.03 }, { x: -0.08, y: -0.02 }, { x: -0.08, y: -0.02 }, { x: -0.08, y: -0.02 }, { x: -0.08, y: -0.02 }, { x: -0.08, y: -0.02 }, { x: -0.08, y: -0.02 }, { x: -0.08, y: -0.01 }, { x: -0.08, y: -0.01 }, { x: -0.08, y: -0.01 }, { x: -0.08, y: -0.01 }, { x: -0.08, y: -0.01 }, { x: -0.08, y: 0 }, { x: -0.08, y: 0 }, { x: -0.08, y: 0 }, { x: -0.08, y: 0 }, { x: -0.08, y: 0 }, { x: -0.08, y: 0 }, { x: -0.08, y: 0.01 }, { x: -0.07, y: 0.01 }, { x: -0.07, y: 0.01 }, { x: -0.07, y: 0.01 }, { x: -0.07, y: 0.01 }, { x: -0.07, y: 0.01 }, { x: -0.08, y: 0.02 }, { x: -0.08, y: 0.02 }, { x: -0.08, y: 0.02 }, { x: -0.08, y: 0.02 }, { x: -0.08, y: 0.02 }, { x: -0.08, y: 0.02 }, { x: -0.08, y: 0.03 }, { x: -0.08, y: 0.03 }, { x: -0.08, y: 0.03 }, { x: -0.08, y: 0.03 }, { x: -0.08, y: 0.03 }, { x: -0.08, y: 0.03 }, { x: -0.08, y: 0.04 }, { x: -0.08, y: 0.04 }, { x: -0.08, y: 0.04 }, { x: -0.08, y: 0.04 }, { x: -0.08, y: 0.04 }, { x: -0.08, y: 0.05 }, { x: -0.08, y: 0.05 }, { x: -0.08, y: 0.05 }, { x: -0.08, y: 0.05 }, { x: -0.08, y: 0.05 }, { x: -0.08, y: 0.05 }, { x: -0.08, y: 0.06 }, { x: -0.08, y: 0.06 }, { x: -0.08, y: 0.06 }, { x: -0.08, y: 0.06 }, { x: -0.08, y: 0.06 }, { x: -0.08, y: 0.06 }, { x: -0.08, y: 0.06 }, { x: -0.08, y: 0.06 }, { x: -0.08, y: 0.07 }, { x: -0.08, y: 0.07 }, { x: -0.08, y: 0.07 }, { x: -0.08, y: 0.07 }, { x: -0.08, y: 0.07 }, { x: -0.08, y: 0.07 }, { x: -0.08, y: 0.07 }, { x: -0.08, y: 0.08 }, { x: -0.08, y: 0.08 }, { x: -0.08, y: 0.08 }, { x: -0.08, y: 0.08 }, { x: -0.08, y: 0.08 }, { x: -0.08, y: 0.08 }, { x: -0.08, y: 0.09 }, { x: -0.08, y: 0.09 }, { x: -0.08, y: 0.09 }, { x: -0.08, y: 0.09 }, { x: -0.08, y: 0.09 }, { x: -0.08, y: 0.09 }, { x: -0.08, y: 0.09 }, { x: -0.08, y: 0.1 }, { x: -0.08, y: 0.1 }, { x: -0.08, y: 0.1 }, { x: -0.08, y: 0.1 }, { x: -0.08, y: 0.1 }, { x: -0.08, y: 0.1 }, { x: -0.08, y: 0.1 }, { x: -0.08, y: 0.11 }, { x: -0.08, y: 0.11 }, { x: -0.08, y: 0.11 }, { x: -0.08, y: 0.11 }, { x: -0.08, y: 0.11 }, { x: -0.08, y: 0.11 }, { x: -0.08, y: 0.11 }, { x: -0.08, y: 0.12 }, { x: -0.08, y: 0.12 }, { x: -0.08, y: 0.12 }, { x: -0.08, y: 0.12 }, { x: -0.09, y: 0.12 }, { x: -0.09, y: 0.12 }, { x: -0.09, y: 0.12 }, { x: -0.09, y: 0.13 }, { x: -0.09, y: 0.13 }, { x: -0.09, y: 0.13 }, { x: -0.09, y: 0.13 }, { x: -0.09, y: 0.13 }, { x: -0.09, y: 0.13 }, { x: -0.09, y: 0.14 }, { x: -0.09, y: 0.14 }, { x: -0.09, y: 0.14 }, { x: -0.09, y: 0.14 }, { x: -0.09, y: 0.14 }, { x: -0.09, y: 0.14 }, { x: -0.09, y: 0.14 }, { x: -0.09, y: 0.15 }, { x: -0.09, y: 0.15 }, { x: -0.09, y: 0.15 }, { x: -0.09, y: 0.15 }, { x: -0.09, y: 0.15 }, { x: -0.09, y: 0.15 }, { x: -0.09, y: 0.15 }, { x: -0.09, y: 0.16 }, { x: -0.09, y: 0.16 }, { x: -0.09, y: 0.16 }, { x: -0.09, y: 0.16 }, { x: -0.09, y: 0.16 }, { x: -0.09, y: 0.16 }, { x: -0.09, y: 0.16 }, { x: -0.09, y: 0.17 }, { x: -0.09, y: 0.17 }, { x: -0.1, y: 0.17 }, { x: -0.1, y: 0.17 }, { x: -0.1, y: 0.17 }, { x: -0.1, y: 0.17 }, { x: -0.1, y: 0.17 }, { x: -0.1, y: 0.18 }, { x: -0.1, y: 0.18 }, { x: -0.1, y: 0.18 }, { x: -0.1, y: 0.18 }, { x: -0.1, y: 0.18 }, { x: -0.1, y: 0.18 }, { x: -0.1, y: 0.18 }, { x: -0.1, y: 0.19 }, { x: -0.1, y: 0.19 }, { x: -0.1, y: 0.19 }, { x: -0.1, y: 0.19 }, { x: -0.1, y: 0.19 }, { x: -0.1, y: 0.19 }, { x: -0.1, y: 0.19 }, { x: -0.1, y: 0.2 }, { x: -0.1, y: 0.2 }, { x: -0.1, y: 0.2 }, { x: -0.1, y: 0.2 }, { x: -0.1, y: 0.2 }, { x: -0.1, y: 0.2 }, { x: -0.11, y: 0.2 }, { x: -0.11, y: 0.2 }, { x: -0.11, y: 0.2 }, { x: -0.11, y: 0.21 }, { x: -0.11, y: 0.21 }, { x: -0.11, y: 0.21 }, { x: -0.11, y: 0.21 }, { x: -0.11, y: 0.21 }, { x: -0.11, y: 0.21 }, { x: -0.11, y: 0.21 }, { x: -0.11, y: 0.21 }, { x: -0.11, y: 0.21 }, { x: -0.11, y: 0.21 }, { x: -0.11, y: 0.21 }, { x: -0.11, y: 0.21 }, { x: -0.11, y: 0.21 }, { x: -0.11, y: 0.22 }, { x: -0.11, y: 0.22 }, { x: -0.11, y: 0.22 }, { x: -0.11, y: 0.22 }, { x: -0.11, y: 0.22 }, { x: -0.11, y: 0.22 }, { x: -0.11, y: 0.22 }, { x: -0.11, y: 0.22 }, { x: -0.11, y: 0.22 }, { x: -0.11, y: 0.22 }, { x: -0.11, y: 0.22 }, { x: -0.11, y: 0.22 }, { x: -0.11, y: 0.23 }, { x: -0.11, y: 0.23 }, { x: -0.11, y: 0.23 }, { x: -0.11, y: 0.23 }, { x: -0.12, y: 0.23 }, { x: -0.12, y: 0.23 }, { x: -0.12, y: 0.23 }, { x: -0.12, y: 0.23 }, { x: -0.12, y: 0.23 }, { x: -0.12, y: 0.23 }, { x: -0.12, y: 0.23 }, { x: -0.12, y: 0.23 }, { x: -0.12, y: 0.24 }, { x: -0.12, y: 0.24 }, { x: -0.12, y: 0.24 }, { x: -0.12, y: 0.24 }, { x: -0.12, y: 0.24 }, { x: -0.12, y: 0.24 }, { x: -0.12, y: 0.24 }, { x: -0.12, y: 0.24 }, { x: -0.12, y: 0.24 }, { x: -0.12, y: 0.24 }, { x: -0.12, y: 0.24 }, { x: -0.12, y: 0.24 }, { x: -0.12, y: 0.25 }, { x: -0.12, y: 0.25 }, { x: -0.12, y: 0.25 }, { x: -0.12, y: 0.25 }, { x: -0.12, y: 0.25 }, { x: -0.12, y: 0.25 }, { x: -0.13, y: 0.25 }, { x: -0.13, y: 0.25 }, { x: -0.13, y: 0.25 }, { x: -0.13, y: 0.25 }, { x: -0.13, y: 0.25 }, { x: -0.13, y: 0.25 }, { x: -0.13, y: 0.25 }, { x: -0.13, y: 0.26 }, { x: -0.13, y: 0.26 }, { x: -0.13, y: 0.26 }, { x: -0.13, y: 0.26 }, { x: -0.13, y: 0.26 }, { x: -0.13, y: 0.26 }, { x: -0.13, y: 0.26 }, { x: -0.13, y: 0.26 }, { x: -0.13, y: 0.26 }, { x: -0.13, y: 0.26 }, { x: -0.13, y: 0.26 }, { x: -0.13, y: 0.26 }, { x: -0.13, y: 0.26 }, { x: -0.13, y: 0.27 }, { x: -0.13, y: 0.27 }, { x: -0.13, y: 0.27 }, { x: -0.13, y: 0.27 }, { x: -0.14, y: 0.27 }, { x: -0.14, y: 0.27 }, { x: -0.14, y: 0.27 }, { x: -0.14, y: 0.27 }, { x: -0.14, y: 0.27 }, { x: -0.14, y: 0.27 }, { x: -0.14, y: 0.27 }, { x: -0.14, y: 0.27 }, { x: -0.14, y: 0.27 }, { x: -0.14, y: 0.28 }, { x: -0.14, y: 0.28 }, { x: -0.14, y: 0.28 }, { x: -0.14, y: 0.28 }, { x: -0.14, y: 0.28 }, { x: -0.14, y: 0.28 }, { x: -0.14, y: 0.28 }, { x: -0.14, y: 0.28 }, { x: -0.14, y: 0.28 }], color: "primary", fill: false }, "rect1577-4": { type: "path", points: [{ x: 0.26, y: 0.25 }, { x: 0.12, y: 0.25 }, { x: 0.12, y: 0.25 }, { x: 0.26, y: 0.25 }], color: "primary", fill: true }, "rect1577-4-7": { type: "path", points: [{ x: 0.2, y: 0.32 }, { x: 0.2, y: 0.18 }, { x: 0.19, y: 0.18 }, { x: 0.19, y: 0.32 }], color: "primary", fill: true } }, texts: { top1: { type: "text", text: "{REF}", x: -0.01, y: 0.42 }, bottom1: { type: "text", text: "{VAL}", x: 0, y: -0.42 } }, refblocks: { left1: { x: -0.54, y: 0.02 }, right1: { x: 0.45, y: 0.02 } }, bounds: { minX: -0.58, maxX: 0.58, minY: -0.42, maxY: 0.42, width: 1.16, height: 0.84, centerX: 0, centerY: 0 }, circles: {} };
|
|
6015
5819
|
var { paths: _h, texts: Wg, bounds: ie, refblocks: ia, circles: gh } = O;
|
|
6016
5820
|
var la = e({ primitives: [...Object.values(_h), ...Object.values(gh), { type: "text", text: "{REF}", x: 0.1, y: -0.2094553499999995 }, { type: "text", text: "{VAL}", x: -0.2, y: -0.2094553499999995 }], ports: [{ ...ia.left1, labels: ["2", "neg"] }, { ...ia.right1, labels: ["1", "pos"] }], size: { width: ie.width, height: ie.height }, center: { x: ie.centerX, y: ie.centerY } }).changeTextAnchor("{VAL}", "top_left").rotateRightFacingSymbol("up").changeTextAnchor("{REF}", "bottom_left").build();
|
|
@@ -6019,8 +5823,8 @@ var { paths: uh, texts: r3, bounds: le, refblocks: aa, circles: vh } = O;
|
|
|
6019
5823
|
var ya = e({ primitives: [...Object.values(uh), ...Object.values(vh), { type: "text", text: "{REF}", x: 0, y: -0.4094553499999995 }, { type: "text", text: "{VAL}", x: -0, y: 0.4094553499999995 }], ports: [{ ...aa.left1, labels: ["2", "neg"] }, { ...aa.right1, labels: ["1", "pos"] }], size: { width: le.width, height: le.height }, center: { x: le.centerX, y: le.centerY } }).changeTextAnchor("{VAL}", "middle_bottom").rotateRightFacingSymbol("left").changeTextAnchor("{REF}", "middle_bottom").build();
|
|
6020
5824
|
var { paths: wh, texts: p3, bounds: pe, refblocks: xa, circles: Ah } = O;
|
|
6021
5825
|
var sa = e({ primitives: [...Object.values(wh), ...Object.values(Ah), { type: "text", text: "{REF}", x: -0.2, y: 0.2094553499999995 }, { type: "text", text: "{VAL}", x: 0.3, y: 0.2094553499999995 }], ports: [{ ...xa.left1, labels: ["2", "neg"] }, { ...xa.right1, labels: ["1", "pos"] }], size: { width: pe.width, height: pe.height }, center: { x: pe.centerX, y: pe.centerY } }).changeTextAnchor("{VAL}", "top_left").rotateRightFacingSymbol("down").changeTextAnchor("{REF}", "bottom_left").build();
|
|
6022
|
-
var ma = e(
|
|
6023
|
-
var { paths: Ph, texts: f3, bounds: ae, refblocks: na, circles: Sh } =
|
|
5826
|
+
var ma = e(z130).rotateRightFacingSymbol("right").changeTextAnchor("{VAL}", "middle_top").labelPort("left1", ["1", "pos"]).labelPort("right1", ["2", "neg"]).changeTextAnchor("{REF}", "middle_bottom").build();
|
|
5827
|
+
var { paths: Ph, texts: f3, bounds: ae, refblocks: na, circles: Sh } = z130;
|
|
6024
5828
|
var fa = e({ primitives: [...Object.values(Ph), ...Object.values(Sh), { type: "text", text: "{REF}", x: 0.2, y: -0.095 }, { type: "text", text: "{VAL}", x: -0.2, y: -0.095 }], ports: [{ ...na.left1, labels: ["1"] }, { ...na.right1, labels: ["2"] }], size: { width: ae.width, height: ae.height }, center: { x: ae.centerX, y: ae.centerY } }).changeTextAnchor("{VAL}", "top_left").rotateRightFacingSymbol("up").labelPort("left1", ["1", "pos"]).labelPort("right1", ["2", "neg"]).changeTextAnchor("{REF}", "bottom_left").build();
|
|
6025
5829
|
var A = { paths: { path11: { type: "path", points: [{ x: -0.54, y: 0.03 }, { x: -0.3, y: 0.03 }], color: "primary", fill: false }, path12: { type: "path", points: [{ x: 0.29, y: 0.03 }, { x: 0.54, y: 0.03 }], color: "primary", fill: false }, path2: { type: "path", points: [{ x: 0.29, y: 0.29 }, { x: 0.29, y: -0.23 }], color: "primary", fill: false } }, texts: { top1: { type: "text", text: "{REF}", x: -0.02, y: 0.37 }, bottom1: { type: "text", text: "{VAL}", x: -0.01, y: -0.37 } }, refblocks: { left1: { x: -0.54, y: 0.03 }, right1: { x: 0.54, y: 0.03 } }, bounds: { minX: -0.57, maxX: 0.57, minY: -0.37, maxY: 0.37, width: 1.14, height: 0.74, centerX: 0, centerY: 0 }, circles: { path1: { type: "circle", x: 0, y: 0.04, radius: 0.29, color: "primary", fill: false } } };
|
|
6026
5830
|
var { paths: Rh, texts: _3, bounds: ye, refblocks: ha, circles: Th } = A;
|
|
@@ -7914,4 +7718,4 @@ svgson/dist/svgson.umd.js:
|
|
|
7914
7718
|
* @license MIT
|
|
7915
7719
|
*)
|
|
7916
7720
|
*/
|
|
7917
|
-
//# sourceMappingURL=chunk-
|
|
7721
|
+
//# sourceMappingURL=chunk-6S7LH5YP.js.map
|