From 362b54bee91ffee89e6055ccd2937c9d7da9c82c Mon Sep 17 00:00:00 2001 From: Severin Ibarluzea Date: Thu, 23 Oct 2025 15:10:47 -0700 Subject: [PATCH 1/2] Document custom trace thickness example --- docs/elements/trace.mdx | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/docs/elements/trace.mdx b/docs/elements/trace.mdx index 5ed11ec..cd30f54 100644 --- a/docs/elements/trace.mdx +++ b/docs/elements/trace.mdx @@ -39,6 +39,7 @@ Here's a simple example connecting two components: | `maxLength` | Maximum length the trace can be (optional) | `"10mm"` | | `minLength` | Minimum length the trace must be (optional) | `"5mm"` | | `width` | Width of the trace (optional) | `"0.2mm"` | +| `thickness` | Same as `width`; sets the copper width for the trace (optional) | `"0.2mm"` | | `pcbPath` | Array of points defining a manual PCB path relative to an anchor port | `[{ x: 1, y: 0 }, { x: 1, y: 1 }]` | | `pcbPathRelativeTo` | Port selector that `pcbPath` coordinates are relative to (defaults to the `from` port) | `".R1 > .pin2"` | @@ -152,3 +153,23 @@ When using net connections we use a Rats Nest on a PCB view or a net label on a schematic view. When you see a dotted line on a Rats Nest, you should think of it as a _possible_ connection point, but not necessarily the final place where the autorouter will connect to the net. + +## Creating a direct path with a custom thickness + +Use an empty `pcbPath` array to keep the autorouter's direct path between two +ports while still overriding the copper width via the `thickness` property. + + ( + + + + + + ) +`} /> From d1e3ee59524f05398a8f7b88383f20fa48cc50d8 Mon Sep 17 00:00:00 2001 From: Severin Ibarluzea Date: Thu, 23 Oct 2025 16:55:40 -0700 Subject: [PATCH 2/2] Fix trace example to use R1.pin2 instead of R1.pin1 --- docs/elements/trace.mdx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/elements/trace.mdx b/docs/elements/trace.mdx index cd30f54..788d291 100644 --- a/docs/elements/trace.mdx +++ b/docs/elements/trace.mdx @@ -157,7 +157,7 @@ the autorouter will connect to the net. ## Creating a direct path with a custom thickness Use an empty `pcbPath` array to keep the autorouter's direct path between two -ports while still overriding the copper width via the `thickness` property. +ports while overriding the trace width via the `thickness` property. ( @@ -165,7 +165,7 @@ ports while still overriding the copper width via the `thickness` property.