easyeda 0.0.338 → 0.0.340
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/index.js +247 -17
- package/dist/browser/index.js.map +1 -1
- package/dist/index.js +1645 -1409
- package/dist/index.js.map +1 -1
- package/dist/main.cjs +1644 -1408
- package/dist/main.cjs.map +1 -1
- package/package.json +4 -4
package/dist/browser/index.js
CHANGED
|
@@ -27,8 +27,12 @@ __export(dist_exports, {
|
|
|
27
27
|
experiment_type: () => experiment_type,
|
|
28
28
|
external_footprint_load_error: () => external_footprint_load_error,
|
|
29
29
|
frequency: () => frequency,
|
|
30
|
+
getRotationBetweenPcbPin1Locations: () => getRotationBetweenPcbPin1Locations,
|
|
30
31
|
getZodPrefixedIdWithDefault: () => getZodPrefixedIdWithDefault,
|
|
31
32
|
inductance: () => inductance,
|
|
33
|
+
insertionDirectionToCanonical: () => insertionDirectionToCanonical,
|
|
34
|
+
insertionDirectionToVector: () => insertionDirectionToVector,
|
|
35
|
+
insertion_direction: () => insertion_direction,
|
|
32
36
|
kicadAt: () => kicadAt,
|
|
33
37
|
kicadEffects: () => kicadEffects,
|
|
34
38
|
kicadFont: () => kicadFont,
|
|
@@ -57,6 +61,7 @@ __export(dist_exports, {
|
|
|
57
61
|
pcb_breakout_point: () => pcb_breakout_point,
|
|
58
62
|
pcb_component: () => pcb_component,
|
|
59
63
|
pcb_component_invalid_layer_error: () => pcb_component_invalid_layer_error,
|
|
64
|
+
pcb_component_missing_courtyard_warning: () => pcb_component_missing_courtyard_warning,
|
|
60
65
|
pcb_component_not_on_board_edge_error: () => pcb_component_not_on_board_edge_error,
|
|
61
66
|
pcb_component_outside_board_error: () => pcb_component_outside_board_error,
|
|
62
67
|
pcb_connector_not_in_accessible_orientation_warning: () => pcb_connector_not_in_accessible_orientation_warning,
|
|
@@ -76,6 +81,11 @@ __export(dist_exports, {
|
|
|
76
81
|
pcb_cutout_path: () => pcb_cutout_path,
|
|
77
82
|
pcb_cutout_polygon: () => pcb_cutout_polygon,
|
|
78
83
|
pcb_cutout_rect: () => pcb_cutout_rect,
|
|
84
|
+
pcb_debug_line: () => pcb_debug_line,
|
|
85
|
+
pcb_debug_object: () => pcb_debug_object,
|
|
86
|
+
pcb_debug_object_base: () => pcb_debug_object_base,
|
|
87
|
+
pcb_debug_point: () => pcb_debug_point,
|
|
88
|
+
pcb_debug_rect: () => pcb_debug_rect,
|
|
79
89
|
pcb_fabrication_note_dimension: () => pcb_fabrication_note_dimension,
|
|
80
90
|
pcb_fabrication_note_path: () => pcb_fabrication_note_path,
|
|
81
91
|
pcb_fabrication_note_rect: () => pcb_fabrication_note_rect,
|
|
@@ -105,6 +115,7 @@ __export(dist_exports, {
|
|
|
105
115
|
pcb_pad_trace_clearance_error: () => pcb_pad_trace_clearance_error,
|
|
106
116
|
pcb_panel: () => pcb_panel,
|
|
107
117
|
pcb_panelization_placement_error: () => pcb_panelization_placement_error,
|
|
118
|
+
pcb_pin1_location: () => pcb_pin1_location,
|
|
108
119
|
pcb_placement_error: () => pcb_placement_error,
|
|
109
120
|
pcb_plated_hole: () => pcb_plated_hole,
|
|
110
121
|
pcb_port: () => pcb_port,
|
|
@@ -135,6 +146,7 @@ __export(dist_exports, {
|
|
|
135
146
|
pcb_trace_route_point_via: () => pcb_trace_route_point_via,
|
|
136
147
|
pcb_trace_route_point_wire: () => pcb_trace_route_point_wire,
|
|
137
148
|
pcb_trace_too_long_warning: () => pcb_trace_too_long_warning,
|
|
149
|
+
pcb_trace_too_many_vias_warning: () => pcb_trace_too_many_vias_warning,
|
|
138
150
|
pcb_trace_warning: () => pcb_trace_warning,
|
|
139
151
|
pcb_via: () => pcb_via,
|
|
140
152
|
pcb_via_clearance_error: () => pcb_via_clearance_error,
|
|
@@ -156,6 +168,7 @@ __export(dist_exports, {
|
|
|
156
168
|
schematic_component_overlap_warning: () => schematic_component_overlap_warning,
|
|
157
169
|
schematic_component_port_arrangement_by_sides: () => schematic_component_port_arrangement_by_sides,
|
|
158
170
|
schematic_component_port_arrangement_by_size: () => schematic_component_port_arrangement_by_size,
|
|
171
|
+
schematic_component_styling_warning: () => schematic_component_styling_warning,
|
|
159
172
|
schematic_debug_line: () => schematic_debug_line,
|
|
160
173
|
schematic_debug_object: () => schematic_debug_object,
|
|
161
174
|
schematic_debug_object_base: () => schematic_debug_object_base,
|
|
@@ -239,6 +252,7 @@ __export(dist_exports, {
|
|
|
239
252
|
source_simple_capacitor: () => source_simple_capacitor,
|
|
240
253
|
source_simple_chip: () => source_simple_chip,
|
|
241
254
|
source_simple_connector: () => source_simple_connector,
|
|
255
|
+
source_simple_connector_standards: () => source_simple_connector_standards,
|
|
242
256
|
source_simple_crystal: () => source_simple_crystal,
|
|
243
257
|
source_simple_current_source: () => source_simple_current_source,
|
|
244
258
|
source_simple_diode: () => source_simple_diode,
|
|
@@ -285,6 +299,7 @@ var SI_PREFIX_VALUES = /* @__PURE__ */ new Map([
|
|
|
285
299
|
["", 1],
|
|
286
300
|
["m", 1e-3],
|
|
287
301
|
["\xB5", 1e-6],
|
|
302
|
+
["\u03BC", 1e-6],
|
|
288
303
|
["u", 1e-6],
|
|
289
304
|
["n", 1e-9],
|
|
290
305
|
["p", 1e-12],
|
|
@@ -355,6 +370,7 @@ var unitMappings = {
|
|
|
355
370
|
baseUnit: "A",
|
|
356
371
|
variants: {
|
|
357
372
|
\u00B5A: 1e-6,
|
|
373
|
+
\u03BCA: 1e-6,
|
|
358
374
|
mA: 1e-3,
|
|
359
375
|
ma: 1e-3,
|
|
360
376
|
A: 1,
|
|
@@ -368,6 +384,7 @@ var unitMappings = {
|
|
|
368
384
|
pF: 1e-12,
|
|
369
385
|
nF: 1e-9,
|
|
370
386
|
\u00B5F: 1e-6,
|
|
387
|
+
\u03BCF: 1e-6,
|
|
371
388
|
uF: 1e-6,
|
|
372
389
|
mF: 1e-3,
|
|
373
390
|
F: 1,
|
|
@@ -382,6 +399,7 @@ var unitMappings = {
|
|
|
382
399
|
pH: 1e-12,
|
|
383
400
|
nH: 1e-9,
|
|
384
401
|
\u00B5H: 1e-6,
|
|
402
|
+
\u03BCH: 1e-6,
|
|
385
403
|
uH: 1e-6,
|
|
386
404
|
mH: 1e-3,
|
|
387
405
|
H: 1,
|
|
@@ -413,6 +431,7 @@ var unitMappings = {
|
|
|
413
431
|
ns: 1e-6,
|
|
414
432
|
us: 1e-3,
|
|
415
433
|
\u00B5s: 1e-3,
|
|
434
|
+
\u03BCs: 1e-3,
|
|
416
435
|
ms: 1,
|
|
417
436
|
s: 1e3
|
|
418
437
|
}
|
|
@@ -422,6 +441,7 @@ var unitMappings = {
|
|
|
422
441
|
variants: {
|
|
423
442
|
nm: 1e-6,
|
|
424
443
|
\u00B5m: 1e-3,
|
|
444
|
+
\u03BCm: 1e-3,
|
|
425
445
|
um: 1e-3,
|
|
426
446
|
mm: 1,
|
|
427
447
|
cm: 10,
|
|
@@ -4995,9 +5015,20 @@ var source_simple_pin_header = source_component_base.extend({
|
|
|
4995
5015
|
gender: external_exports.enum(["male", "female"]).optional().default("male")
|
|
4996
5016
|
});
|
|
4997
5017
|
expectTypesMatch(true);
|
|
5018
|
+
var source_simple_connector_standards = [
|
|
5019
|
+
"usb_c",
|
|
5020
|
+
"m2",
|
|
5021
|
+
"jst_sh",
|
|
5022
|
+
"jst_gh",
|
|
5023
|
+
"jst_zh",
|
|
5024
|
+
"jst_ph",
|
|
5025
|
+
"jst_xh",
|
|
5026
|
+
"jst_vh"
|
|
5027
|
+
];
|
|
4998
5028
|
var source_simple_connector = source_component_base.extend({
|
|
4999
5029
|
ftype: external_exports.literal("simple_connector"),
|
|
5000
|
-
standard: external_exports.enum(
|
|
5030
|
+
standard: external_exports.enum(source_simple_connector_standards).optional(),
|
|
5031
|
+
pin_count: external_exports.number().int().positive().optional()
|
|
5001
5032
|
});
|
|
5002
5033
|
expectTypesMatch(true);
|
|
5003
5034
|
var source_simple_pinout = source_component_base.extend({
|
|
@@ -5283,6 +5314,7 @@ var source_trace = external_exports.object({
|
|
|
5283
5314
|
subcircuit_id: external_exports.string().optional(),
|
|
5284
5315
|
subcircuit_connectivity_map_key: external_exports.string().optional(),
|
|
5285
5316
|
max_length: external_exports.number().optional(),
|
|
5317
|
+
max_via_count: external_exports.number().int().nonnegative().optional(),
|
|
5286
5318
|
name: external_exports.string().optional(),
|
|
5287
5319
|
min_trace_thickness: external_exports.number().optional(),
|
|
5288
5320
|
display_name: external_exports.string().optional()
|
|
@@ -5371,7 +5403,7 @@ var source_manually_placed_via = external_exports.object({
|
|
|
5371
5403
|
type: external_exports.literal("source_manually_placed_via"),
|
|
5372
5404
|
source_manually_placed_via_id: external_exports.string(),
|
|
5373
5405
|
source_group_id: external_exports.string(),
|
|
5374
|
-
source_net_id: external_exports.string(),
|
|
5406
|
+
source_net_id: external_exports.string().min(1).optional(),
|
|
5375
5407
|
subcircuit_id: external_exports.string().optional(),
|
|
5376
5408
|
source_trace_id: external_exports.string().optional()
|
|
5377
5409
|
}).describe("Defines a via that is manually placed in the source domain");
|
|
@@ -5693,6 +5725,7 @@ var schematic_text = external_exports.object({
|
|
|
5693
5725
|
schematic_component_id: external_exports.string().optional(),
|
|
5694
5726
|
schematic_symbol_id: external_exports.string().optional(),
|
|
5695
5727
|
schematic_text_id: external_exports.string(),
|
|
5728
|
+
source_trace_id: external_exports.string().optional(),
|
|
5696
5729
|
text: external_exports.string(),
|
|
5697
5730
|
font_size: external_exports.number().default(0.18),
|
|
5698
5731
|
position: external_exports.object({
|
|
@@ -5718,6 +5751,7 @@ var schematic_port = external_exports.object({
|
|
|
5718
5751
|
true_ccw_index: external_exports.number().optional(),
|
|
5719
5752
|
pin_number: external_exports.number().optional(),
|
|
5720
5753
|
display_pin_label: external_exports.string().optional(),
|
|
5754
|
+
display_pin_label_font_size: external_exports.number().positive().finite().optional(),
|
|
5721
5755
|
subcircuit_id: external_exports.string().optional(),
|
|
5722
5756
|
is_connected: external_exports.boolean().optional(),
|
|
5723
5757
|
is_internal_circuit_port: external_exports.boolean().optional(),
|
|
@@ -5829,6 +5863,23 @@ var schematic_component_overlap_warning = external_exports.object({
|
|
|
5829
5863
|
"Warning emitted when the rendered bounds of two schematic components overlap"
|
|
5830
5864
|
);
|
|
5831
5865
|
expectTypesMatch(true);
|
|
5866
|
+
var schematic_component_styling_warning = external_exports.object({
|
|
5867
|
+
type: external_exports.literal("schematic_component_styling_warning"),
|
|
5868
|
+
schematic_component_styling_warning_id: getZodPrefixedIdWithDefault(
|
|
5869
|
+
"schematic_component_styling_warning"
|
|
5870
|
+
),
|
|
5871
|
+
warning_type: external_exports.literal("schematic_component_styling_warning").default("schematic_component_styling_warning"),
|
|
5872
|
+
message: external_exports.string(),
|
|
5873
|
+
schematic_component_id: external_exports.string(),
|
|
5874
|
+
styling_issue_type: external_exports.string(),
|
|
5875
|
+
schematic_port_ids: external_exports.array(external_exports.string()).optional(),
|
|
5876
|
+
source_component_id: external_exports.string().optional(),
|
|
5877
|
+
schematic_sheet_id: external_exports.string().optional(),
|
|
5878
|
+
subcircuit_id: external_exports.string().optional()
|
|
5879
|
+
}).describe(
|
|
5880
|
+
"Warning emitted when a schematic component has a visual styling issue"
|
|
5881
|
+
);
|
|
5882
|
+
expectTypesMatch(true);
|
|
5832
5883
|
var schematic_element_outside_sheet_warning = external_exports.object({
|
|
5833
5884
|
type: external_exports.literal("schematic_element_outside_sheet_warning"),
|
|
5834
5885
|
schematic_element_outside_sheet_warning_id: getZodPrefixedIdWithDefault(
|
|
@@ -5924,6 +5975,90 @@ var brep_shape = external_exports.object({
|
|
|
5924
5975
|
inner_rings: external_exports.array(ring).default([])
|
|
5925
5976
|
});
|
|
5926
5977
|
expectTypesMatch(true);
|
|
5978
|
+
var insertionDirectionToCanonical = {
|
|
5979
|
+
from_left: "from_left",
|
|
5980
|
+
from_right: "from_right",
|
|
5981
|
+
from_top: "from_top",
|
|
5982
|
+
from_bottom: "from_bottom",
|
|
5983
|
+
from_above: "from_above",
|
|
5984
|
+
from_below: "from_below",
|
|
5985
|
+
from_x_neg: "from_left",
|
|
5986
|
+
from_x_pos: "from_right",
|
|
5987
|
+
from_y_pos: "from_top",
|
|
5988
|
+
from_y_neg: "from_bottom",
|
|
5989
|
+
from_z_pos: "from_above",
|
|
5990
|
+
from_z_neg: "from_below",
|
|
5991
|
+
/** @deprecated use `from_top` */
|
|
5992
|
+
from_front: "from_top",
|
|
5993
|
+
/** @deprecated use `from_bottom` */
|
|
5994
|
+
from_back: "from_bottom"
|
|
5995
|
+
};
|
|
5996
|
+
var insertionDirectionToVector = {
|
|
5997
|
+
from_left: { x: -1, y: 0, z: 0 },
|
|
5998
|
+
from_right: { x: 1, y: 0, z: 0 },
|
|
5999
|
+
from_top: { x: 0, y: 1, z: 0 },
|
|
6000
|
+
from_bottom: { x: 0, y: -1, z: 0 },
|
|
6001
|
+
from_above: { x: 0, y: 0, z: 1 },
|
|
6002
|
+
from_below: { x: 0, y: 0, z: -1 }
|
|
6003
|
+
};
|
|
6004
|
+
var insertion_direction = external_exports.enum([
|
|
6005
|
+
"from_left",
|
|
6006
|
+
"from_right",
|
|
6007
|
+
"from_top",
|
|
6008
|
+
"from_bottom",
|
|
6009
|
+
"from_above",
|
|
6010
|
+
"from_below",
|
|
6011
|
+
"from_x_neg",
|
|
6012
|
+
"from_x_pos",
|
|
6013
|
+
"from_y_pos",
|
|
6014
|
+
"from_y_neg",
|
|
6015
|
+
"from_z_pos",
|
|
6016
|
+
"from_z_neg",
|
|
6017
|
+
// Deprecated, accepted so existing Circuit JSON keeps parsing.
|
|
6018
|
+
"from_front",
|
|
6019
|
+
"from_back"
|
|
6020
|
+
]).transform((value) => insertionDirectionToCanonical[value]).describe(
|
|
6021
|
+
'The side exposing the receptacle where the cable or mating part is attached, following the 2D PCB diagram convention, not a 3D viewport frame. In project coordinate space, "from_top" is +Y, "from_bottom" -Y, "from_left" -X, "from_right" +X, "from_above" +Z and "from_below" -Z. A receptacle on the +Y edge is "from_top" even though the plug moves in -Y as it seats. Cartesian spellings such as "from_y_pos" are accepted and normalized to the named values, as are the deprecated "from_front" (now "from_top") and "from_back" (now "from_bottom").'
|
|
6022
|
+
);
|
|
6023
|
+
expectTypesMatch(true);
|
|
6024
|
+
expectTypesMatch(
|
|
6025
|
+
true
|
|
6026
|
+
);
|
|
6027
|
+
var pcb_pin1_location = external_exports.enum([
|
|
6028
|
+
"leftside_top",
|
|
6029
|
+
"leftside_bottom",
|
|
6030
|
+
"rightside_top",
|
|
6031
|
+
"rightside_bottom",
|
|
6032
|
+
"topside_left",
|
|
6033
|
+
"topside_right",
|
|
6034
|
+
"bottomside_left",
|
|
6035
|
+
"bottomside_right"
|
|
6036
|
+
]);
|
|
6037
|
+
expectTypesMatch(true);
|
|
6038
|
+
var pin1LocationRotationCycles = [
|
|
6039
|
+
[
|
|
6040
|
+
"leftside_top",
|
|
6041
|
+
"bottomside_left",
|
|
6042
|
+
"rightside_bottom",
|
|
6043
|
+
"topside_right"
|
|
6044
|
+
],
|
|
6045
|
+
[
|
|
6046
|
+
"leftside_bottom",
|
|
6047
|
+
"bottomside_right",
|
|
6048
|
+
"rightside_top",
|
|
6049
|
+
"topside_left"
|
|
6050
|
+
]
|
|
6051
|
+
];
|
|
6052
|
+
var getRotationBetweenPcbPin1Locations = (from, to) => {
|
|
6053
|
+
for (const cycle of pin1LocationRotationCycles) {
|
|
6054
|
+
const fromIndex = cycle.indexOf(from);
|
|
6055
|
+
const toIndex = cycle.indexOf(to);
|
|
6056
|
+
if (fromIndex !== -1 && toIndex !== -1) {
|
|
6057
|
+
return (toIndex - fromIndex + cycle.length) % cycle.length * 90;
|
|
6058
|
+
}
|
|
6059
|
+
}
|
|
6060
|
+
return null;
|
|
6061
|
+
};
|
|
5927
6062
|
var pcb_route_hint = external_exports.object({
|
|
5928
6063
|
x: distance,
|
|
5929
6064
|
y: distance,
|
|
@@ -5984,13 +6119,13 @@ var pcb_component = external_exports.object({
|
|
|
5984
6119
|
positioned_relative_to_pcb_group_id: external_exports.string().optional(),
|
|
5985
6120
|
positioned_relative_to_pcb_board_id: external_exports.string().optional(),
|
|
5986
6121
|
cable_insertion_center: point.optional(),
|
|
5987
|
-
insertion_direction:
|
|
5988
|
-
|
|
5989
|
-
"
|
|
5990
|
-
|
|
5991
|
-
|
|
5992
|
-
"
|
|
5993
|
-
|
|
6122
|
+
insertion_direction: insertion_direction.optional(),
|
|
6123
|
+
pin1_location: pcb_pin1_location.optional().describe(
|
|
6124
|
+
"Location of pin 1 on the unrotated, top-view component footprint"
|
|
6125
|
+
),
|
|
6126
|
+
supplier_pin1_location_map: external_exports.record(supplier_name, pcb_pin1_location).optional().describe(
|
|
6127
|
+
"Pin 1 location for each supplier's unrotated, top-view footprint"
|
|
6128
|
+
),
|
|
5994
6129
|
metadata: external_exports.object({
|
|
5995
6130
|
kicad_footprint: kicadFootprintMetadata.optional()
|
|
5996
6131
|
}).optional(),
|
|
@@ -5999,6 +6134,32 @@ var pcb_component = external_exports.object({
|
|
|
5999
6134
|
)
|
|
6000
6135
|
}).describe("Defines a component on the PCB");
|
|
6001
6136
|
expectTypesMatch(true);
|
|
6137
|
+
var pcb_debug_object_base = external_exports.object({
|
|
6138
|
+
type: external_exports.literal("pcb_debug_object"),
|
|
6139
|
+
pcb_debug_object_id: getZodPrefixedIdWithDefault("pcb_debug_object"),
|
|
6140
|
+
label: external_exports.string().optional(),
|
|
6141
|
+
subcircuit_id: external_exports.string().optional()
|
|
6142
|
+
});
|
|
6143
|
+
var pcb_debug_rect = pcb_debug_object_base.extend({
|
|
6144
|
+
shape: external_exports.literal("rect"),
|
|
6145
|
+
center: point,
|
|
6146
|
+
size
|
|
6147
|
+
});
|
|
6148
|
+
var pcb_debug_line = pcb_debug_object_base.extend({
|
|
6149
|
+
shape: external_exports.literal("line"),
|
|
6150
|
+
start: point,
|
|
6151
|
+
end: point
|
|
6152
|
+
});
|
|
6153
|
+
var pcb_debug_point = pcb_debug_object_base.extend({
|
|
6154
|
+
shape: external_exports.literal("point"),
|
|
6155
|
+
center: point
|
|
6156
|
+
});
|
|
6157
|
+
var pcb_debug_object = external_exports.discriminatedUnion("shape", [
|
|
6158
|
+
pcb_debug_rect,
|
|
6159
|
+
pcb_debug_line,
|
|
6160
|
+
pcb_debug_point
|
|
6161
|
+
]);
|
|
6162
|
+
expectTypesMatch(true);
|
|
6002
6163
|
var pcb_hole_circle = external_exports.object({
|
|
6003
6164
|
type: external_exports.literal("pcb_hole"),
|
|
6004
6165
|
pcb_hole_id: getZodPrefixedIdWithDefault("pcb_hole"),
|
|
@@ -6289,7 +6450,8 @@ var pcb_smtpad_circle = external_exports.object({
|
|
|
6289
6450
|
pcb_component_id: external_exports.string().optional(),
|
|
6290
6451
|
pcb_port_id: external_exports.string().optional(),
|
|
6291
6452
|
is_covered_with_solder_mask: external_exports.boolean().optional(),
|
|
6292
|
-
soldermask_margin: external_exports.number().optional()
|
|
6453
|
+
soldermask_margin: external_exports.number().optional(),
|
|
6454
|
+
solderpaste_margin: external_exports.number().optional()
|
|
6293
6455
|
});
|
|
6294
6456
|
var pcb_smtpad_rect = external_exports.object({
|
|
6295
6457
|
type: external_exports.literal("pcb_smtpad"),
|
|
@@ -6312,7 +6474,8 @@ var pcb_smtpad_rect = external_exports.object({
|
|
|
6312
6474
|
soldermask_margin_left: external_exports.number().optional(),
|
|
6313
6475
|
soldermask_margin_top: external_exports.number().optional(),
|
|
6314
6476
|
soldermask_margin_right: external_exports.number().optional(),
|
|
6315
|
-
soldermask_margin_bottom: external_exports.number().optional()
|
|
6477
|
+
soldermask_margin_bottom: external_exports.number().optional(),
|
|
6478
|
+
solderpaste_margin: external_exports.number().optional()
|
|
6316
6479
|
});
|
|
6317
6480
|
var pcb_smtpad_rotated_rect = external_exports.object({
|
|
6318
6481
|
type: external_exports.literal("pcb_smtpad"),
|
|
@@ -6336,7 +6499,8 @@ var pcb_smtpad_rotated_rect = external_exports.object({
|
|
|
6336
6499
|
soldermask_margin_left: external_exports.number().optional(),
|
|
6337
6500
|
soldermask_margin_top: external_exports.number().optional(),
|
|
6338
6501
|
soldermask_margin_right: external_exports.number().optional(),
|
|
6339
|
-
soldermask_margin_bottom: external_exports.number().optional()
|
|
6502
|
+
soldermask_margin_bottom: external_exports.number().optional(),
|
|
6503
|
+
solderpaste_margin: external_exports.number().optional()
|
|
6340
6504
|
});
|
|
6341
6505
|
var pcb_smtpad_pill = external_exports.object({
|
|
6342
6506
|
type: external_exports.literal("pcb_smtpad"),
|
|
@@ -6354,7 +6518,8 @@ var pcb_smtpad_pill = external_exports.object({
|
|
|
6354
6518
|
pcb_component_id: external_exports.string().optional(),
|
|
6355
6519
|
pcb_port_id: external_exports.string().optional(),
|
|
6356
6520
|
is_covered_with_solder_mask: external_exports.boolean().optional(),
|
|
6357
|
-
soldermask_margin: external_exports.number().optional()
|
|
6521
|
+
soldermask_margin: external_exports.number().optional(),
|
|
6522
|
+
solderpaste_margin: external_exports.number().optional()
|
|
6358
6523
|
});
|
|
6359
6524
|
var pcb_smtpad_rotated_pill = external_exports.object({
|
|
6360
6525
|
type: external_exports.literal("pcb_smtpad"),
|
|
@@ -6373,7 +6538,8 @@ var pcb_smtpad_rotated_pill = external_exports.object({
|
|
|
6373
6538
|
pcb_component_id: external_exports.string().optional(),
|
|
6374
6539
|
pcb_port_id: external_exports.string().optional(),
|
|
6375
6540
|
is_covered_with_solder_mask: external_exports.boolean().optional(),
|
|
6376
|
-
soldermask_margin: external_exports.number().optional()
|
|
6541
|
+
soldermask_margin: external_exports.number().optional(),
|
|
6542
|
+
solderpaste_margin: external_exports.number().optional()
|
|
6377
6543
|
});
|
|
6378
6544
|
var pcb_smtpad_polygon = external_exports.object({
|
|
6379
6545
|
type: external_exports.literal("pcb_smtpad"),
|
|
@@ -6387,7 +6553,8 @@ var pcb_smtpad_polygon = external_exports.object({
|
|
|
6387
6553
|
pcb_component_id: external_exports.string().optional(),
|
|
6388
6554
|
pcb_port_id: external_exports.string().optional(),
|
|
6389
6555
|
is_covered_with_solder_mask: external_exports.boolean().optional(),
|
|
6390
|
-
soldermask_margin: external_exports.number().optional()
|
|
6556
|
+
soldermask_margin: external_exports.number().optional(),
|
|
6557
|
+
solderpaste_margin: external_exports.number().optional()
|
|
6391
6558
|
});
|
|
6392
6559
|
var pcb_smtpad = external_exports.discriminatedUnion("shape", [
|
|
6393
6560
|
pcb_smtpad_circle,
|
|
@@ -6460,6 +6627,22 @@ var pcb_solder_paste_rotated_rect = external_exports.object({
|
|
|
6460
6627
|
pcb_component_id: external_exports.string().optional(),
|
|
6461
6628
|
pcb_smtpad_id: external_exports.string().optional()
|
|
6462
6629
|
});
|
|
6630
|
+
var pcb_solder_paste_rotated_pill = external_exports.object({
|
|
6631
|
+
type: external_exports.literal("pcb_solder_paste"),
|
|
6632
|
+
shape: external_exports.literal("rotated_pill"),
|
|
6633
|
+
pcb_solder_paste_id: getZodPrefixedIdWithDefault("pcb_solder_paste"),
|
|
6634
|
+
pcb_group_id: external_exports.string().optional(),
|
|
6635
|
+
subcircuit_id: external_exports.string().optional(),
|
|
6636
|
+
x: distance,
|
|
6637
|
+
y: distance,
|
|
6638
|
+
width: external_exports.number(),
|
|
6639
|
+
height: external_exports.number(),
|
|
6640
|
+
radius: external_exports.number(),
|
|
6641
|
+
ccw_rotation: rotation,
|
|
6642
|
+
layer: layer_ref,
|
|
6643
|
+
pcb_component_id: external_exports.string().optional(),
|
|
6644
|
+
pcb_smtpad_id: external_exports.string().optional()
|
|
6645
|
+
});
|
|
6463
6646
|
var pcb_solder_paste_oval = external_exports.object({
|
|
6464
6647
|
type: external_exports.literal("pcb_solder_paste"),
|
|
6465
6648
|
shape: external_exports.literal("oval"),
|
|
@@ -6479,6 +6662,7 @@ var pcb_solder_paste = external_exports.union([
|
|
|
6479
6662
|
pcb_solder_paste_rect,
|
|
6480
6663
|
pcb_solder_paste_pill,
|
|
6481
6664
|
pcb_solder_paste_rotated_rect,
|
|
6665
|
+
pcb_solder_paste_rotated_pill,
|
|
6482
6666
|
pcb_solder_paste_oval
|
|
6483
6667
|
]).describe("Defines solderpaste on the PCB");
|
|
6484
6668
|
expectTypesMatch(true);
|
|
@@ -6487,6 +6671,9 @@ expectTypesMatch(true);
|
|
|
6487
6671
|
expectTypesMatch(
|
|
6488
6672
|
true
|
|
6489
6673
|
);
|
|
6674
|
+
expectTypesMatch(
|
|
6675
|
+
true
|
|
6676
|
+
);
|
|
6490
6677
|
expectTypesMatch(true);
|
|
6491
6678
|
var pcb_text = external_exports.object({
|
|
6492
6679
|
type: external_exports.literal("pcb_text"),
|
|
@@ -6586,6 +6773,23 @@ var pcb_trace_too_long_warning = external_exports.object({
|
|
|
6586
6773
|
"Warning emitted when a PCB trace is longer than its maximum allowed length"
|
|
6587
6774
|
);
|
|
6588
6775
|
expectTypesMatch(true);
|
|
6776
|
+
var pcb_trace_too_many_vias_warning = external_exports.object({
|
|
6777
|
+
type: external_exports.literal("pcb_trace_too_many_vias_warning"),
|
|
6778
|
+
pcb_trace_too_many_vias_warning_id: getZodPrefixedIdWithDefault(
|
|
6779
|
+
"pcb_trace_too_many_vias_warning"
|
|
6780
|
+
),
|
|
6781
|
+
warning_type: external_exports.literal("pcb_trace_too_many_vias_warning").default("pcb_trace_too_many_vias_warning"),
|
|
6782
|
+
message: external_exports.string(),
|
|
6783
|
+
pcb_trace_id: external_exports.string(),
|
|
6784
|
+
source_net_id: external_exports.string().optional(),
|
|
6785
|
+
source_trace_id: external_exports.string().optional(),
|
|
6786
|
+
actual_via_count: external_exports.number().int().nonnegative(),
|
|
6787
|
+
maximum_via_count: external_exports.number().int().nonnegative(),
|
|
6788
|
+
subcircuit_id: external_exports.string().optional()
|
|
6789
|
+
}).describe(
|
|
6790
|
+
"Warning emitted when a PCB trace has more vias than its maximum allowed count"
|
|
6791
|
+
);
|
|
6792
|
+
expectTypesMatch(true);
|
|
6589
6793
|
var pcb_trace_error = base_circuit_json_error.extend({
|
|
6590
6794
|
type: external_exports.literal("pcb_trace_error"),
|
|
6591
6795
|
pcb_trace_error_id: getZodPrefixedIdWithDefault("pcb_trace_error"),
|
|
@@ -6657,6 +6861,8 @@ var pcb_via = external_exports.object({
|
|
|
6657
6861
|
to_layer: layer_ref.optional(),
|
|
6658
6862
|
layers: external_exports.array(layer_ref),
|
|
6659
6863
|
pcb_trace_id: external_exports.string().optional(),
|
|
6864
|
+
source_trace_id: external_exports.string().optional(),
|
|
6865
|
+
source_net_id: external_exports.string().min(1).optional(),
|
|
6660
6866
|
net_is_assignable: external_exports.boolean().optional(),
|
|
6661
6867
|
net_assigned: external_exports.boolean().optional(),
|
|
6662
6868
|
is_tented: external_exports.boolean().optional()
|
|
@@ -6670,6 +6876,7 @@ var pcb_board = external_exports.object({
|
|
|
6670
6876
|
is_subcircuit: external_exports.boolean().optional(),
|
|
6671
6877
|
subcircuit_id: external_exports.string().optional(),
|
|
6672
6878
|
is_mounted_to_carrier_board: external_exports.boolean().optional(),
|
|
6879
|
+
is_via_in_pad_allowed: external_exports.boolean().optional(),
|
|
6673
6880
|
width: length.optional(),
|
|
6674
6881
|
height: length.optional(),
|
|
6675
6882
|
center: point,
|
|
@@ -6681,6 +6888,9 @@ var pcb_board = external_exports.object({
|
|
|
6681
6888
|
),
|
|
6682
6889
|
thickness: length.optional().default(1.4),
|
|
6683
6890
|
num_layers: external_exports.number().optional().default(4),
|
|
6891
|
+
allow_blind_and_buried_vias: external_exports.boolean().optional().describe(
|
|
6892
|
+
"Whether autorouters may generate blind and buried vias. False restricts newly generated vias to the full board stack."
|
|
6893
|
+
),
|
|
6684
6894
|
outline: external_exports.array(point).optional(),
|
|
6685
6895
|
shape: external_exports.enum(["rect", "polygon"]).optional(),
|
|
6686
6896
|
material: external_exports.enum(["fr4", "fr1"]).default("fr4"),
|
|
@@ -7102,8 +7312,9 @@ var pcb_keepout = external_exports.object({
|
|
|
7102
7312
|
pcb_keepout_id: external_exports.string(),
|
|
7103
7313
|
layers: external_exports.array(external_exports.string()),
|
|
7104
7314
|
// Specify layers where the keepout applies
|
|
7105
|
-
description: external_exports.string().optional()
|
|
7315
|
+
description: external_exports.string().optional(),
|
|
7106
7316
|
// Optional description of the keepout
|
|
7317
|
+
excluded_pcb_component_ids: external_exports.array(external_exports.string()).optional()
|
|
7107
7318
|
}).or(
|
|
7108
7319
|
external_exports.object({
|
|
7109
7320
|
type: external_exports.literal("pcb_keepout"),
|
|
@@ -7115,8 +7326,9 @@ var pcb_keepout = external_exports.object({
|
|
|
7115
7326
|
pcb_keepout_id: external_exports.string(),
|
|
7116
7327
|
layers: external_exports.array(external_exports.string()),
|
|
7117
7328
|
// Specify layers where the keepout applies
|
|
7118
|
-
description: external_exports.string().optional()
|
|
7329
|
+
description: external_exports.string().optional(),
|
|
7119
7330
|
// Optional description of the keepout
|
|
7331
|
+
excluded_pcb_component_ids: external_exports.array(external_exports.string()).optional()
|
|
7120
7332
|
})
|
|
7121
7333
|
);
|
|
7122
7334
|
expectTypesMatch(true);
|
|
@@ -7275,6 +7487,18 @@ var pcb_connector_not_in_accessible_orientation_warning = external_exports.objec
|
|
|
7275
7487
|
"Warning emitted when a connector PCB component is facing inward toward the board and should be reoriented to an outward-facing direction"
|
|
7276
7488
|
);
|
|
7277
7489
|
expectTypesMatch(true);
|
|
7490
|
+
var pcb_component_missing_courtyard_warning = external_exports.object({
|
|
7491
|
+
type: external_exports.literal("pcb_component_missing_courtyard_warning"),
|
|
7492
|
+
pcb_component_missing_courtyard_warning_id: getZodPrefixedIdWithDefault(
|
|
7493
|
+
"pcb_component_missing_courtyard_warning"
|
|
7494
|
+
),
|
|
7495
|
+
warning_type: external_exports.literal("pcb_component_missing_courtyard_warning").default("pcb_component_missing_courtyard_warning"),
|
|
7496
|
+
message: external_exports.string(),
|
|
7497
|
+
pcb_component_id: external_exports.string(),
|
|
7498
|
+
source_component_id: external_exports.string().optional(),
|
|
7499
|
+
subcircuit_id: external_exports.string().optional()
|
|
7500
|
+
}).describe("Warning emitted when a PCB component has no courtyard geometry");
|
|
7501
|
+
expectTypesMatch(true);
|
|
7278
7502
|
var supplier_footprint_mismatch_warning = external_exports.object({
|
|
7279
7503
|
type: external_exports.literal("supplier_footprint_mismatch_warning"),
|
|
7280
7504
|
supplier_footprint_mismatch_warning_id: getZodPrefixedIdWithDefault(
|
|
@@ -7302,6 +7526,7 @@ var pcb_breakout_point = external_exports.object({
|
|
|
7302
7526
|
source_trace_id: external_exports.string().optional(),
|
|
7303
7527
|
source_port_id: external_exports.string().optional(),
|
|
7304
7528
|
source_net_id: external_exports.string().optional(),
|
|
7529
|
+
layer: layer_ref.optional(),
|
|
7305
7530
|
x: distance,
|
|
7306
7531
|
y: distance
|
|
7307
7532
|
}).describe(
|
|
@@ -7626,6 +7851,7 @@ var cad_component = external_exports.object({
|
|
|
7626
7851
|
model_jscad: external_exports.any().optional(),
|
|
7627
7852
|
show_as_translucent_model: external_exports.boolean().optional(),
|
|
7628
7853
|
show_as_bounding_box: external_exports.boolean().optional(),
|
|
7854
|
+
show_hidden_edges: external_exports.boolean().optional(),
|
|
7629
7855
|
anchor_alignment: external_exports.enum(["center", "center_of_component_on_board_surface"]).optional().default("center")
|
|
7630
7856
|
}).describe("Defines a component on the PCB");
|
|
7631
7857
|
expectTypesMatch(true);
|
|
@@ -8269,12 +8495,14 @@ var any_circuit_element = external_exports.union([
|
|
|
8269
8495
|
source_component_misconfigured_error,
|
|
8270
8496
|
source_ambiguous_port_reference,
|
|
8271
8497
|
pcb_component,
|
|
8498
|
+
pcb_debug_object,
|
|
8272
8499
|
pcb_hole,
|
|
8273
8500
|
pcb_missing_footprint_error,
|
|
8274
8501
|
external_footprint_load_error,
|
|
8275
8502
|
circuit_json_footprint_load_error,
|
|
8276
8503
|
pcb_manual_edit_conflict_warning,
|
|
8277
8504
|
pcb_connector_not_in_accessible_orientation_warning,
|
|
8505
|
+
pcb_component_missing_courtyard_warning,
|
|
8278
8506
|
supplier_footprint_mismatch_warning,
|
|
8279
8507
|
pcb_plated_hole,
|
|
8280
8508
|
pcb_keepout,
|
|
@@ -8284,6 +8512,7 @@ var any_circuit_element = external_exports.union([
|
|
|
8284
8512
|
pcb_trace,
|
|
8285
8513
|
pcb_trace_warning,
|
|
8286
8514
|
pcb_trace_too_long_warning,
|
|
8515
|
+
pcb_trace_too_many_vias_warning,
|
|
8287
8516
|
pcb_via,
|
|
8288
8517
|
pcb_smtpad,
|
|
8289
8518
|
pcb_solder_paste,
|
|
@@ -8355,6 +8584,7 @@ var any_circuit_element = external_exports.union([
|
|
|
8355
8584
|
schematic_voltage_probe,
|
|
8356
8585
|
schematic_manual_edit_conflict_warning,
|
|
8357
8586
|
schematic_component_overlap_warning,
|
|
8587
|
+
schematic_component_styling_warning,
|
|
8358
8588
|
schematic_element_outside_sheet_warning,
|
|
8359
8589
|
schematic_group,
|
|
8360
8590
|
schematic_sheet,
|