From f0d8408a141f4c855a6c8f5df908324c7d58ba79 Mon Sep 17 00:00:00 2001 From: HWXLR8 <68k@segv.moe> Date: Sat, 13 Dec 2025 13:18:22 -0500 Subject: [PATCH 1/2] change default side to F&B --- utility_filled_zone.js | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/utility_filled_zone.js b/utility_filled_zone.js index f5ed9fb..285727e 100644 --- a/utility_filled_zone.js +++ b/utility_filled_zone.js @@ -38,7 +38,7 @@ // is 0.25 to match default net properties. It shouldn't be lowered // below 0.127 (the min width JLCPCB handles). // connect_pads: default is '' -// whether pads should be connected, one of '' (thermal reliefs), +// whether pads should be connected, one of '' (thermal reliefs), // 'yes' (solid connection), 'thru_hole_only', or 'no'. // thermal_gap: default is 0.5 // the thermal relief gap (in mm), with KiCad default being 0.5 @@ -71,7 +71,7 @@ module.exports = { params: { - side: 'F', + side: 'F\\&B', net: { type: 'net', value: 'GND' }, name: '', priority: 0, @@ -94,6 +94,7 @@ module.exports = { points: [[0, 0], [420, 0], [420, 297], [0, 297]], }, body: p => { + const side = p.side.replace('\\&', '&'); let polygon_pts = '' for (let i = 0; i < p.points.length; i++) { polygon_pts += `(xy ${p.points[i][0]} ${p.points[i][1]}) ` @@ -103,7 +104,7 @@ module.exports = { (net ${p.net.index}) (net_name "${p.net.name}") (locked ${p.locked ? 'yes' : 'no'}) - (layers "${p.side}.Cu") + (layers "${side}.Cu") ${p.name ? '(name "' + p.name + '")' : ''} (hatch edge 0.5) ${p.prority > 0 ? '(priority ' + p.priority + ')' : ''} @@ -112,7 +113,7 @@ module.exports = { ) (min_thickness ${p.min_thickness}) (filled_areas_thickness no) - (fill + (fill ${p.fill_type == 'solid' ? 'yes' : '(mode ' + p.fill_type + ')'} (thermal_gap ${p.thermal_gap}) (thermal_bridge_width ${p.thermal_bridge_width}) From a733f3347ac31ec7465e8ff20c1ebae6eaecb105 Mon Sep 17 00:00:00 2001 From: HWXLR8 <68k@segv.moe> Date: Sat, 13 Dec 2025 14:38:04 -0500 Subject: [PATCH 2/2] fix typo in 'priority' --- utility_filled_zone.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utility_filled_zone.js b/utility_filled_zone.js index 285727e..50308cc 100644 --- a/utility_filled_zone.js +++ b/utility_filled_zone.js @@ -107,7 +107,7 @@ module.exports = { (layers "${side}.Cu") ${p.name ? '(name "' + p.name + '")' : ''} (hatch edge 0.5) - ${p.prority > 0 ? '(priority ' + p.priority + ')' : ''} + ${p.priority > 0 ? '(priority ' + p.priority + ')' : ''} (connect_pads ${p.connect_pads} (clearance ${p.pad_clearance}) )