@tscircuit/core 0.0.1047 → 0.0.1048
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/index.js +11 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -16914,9 +16914,19 @@ function inflateSourceTrace(sourceTrace, inflatorContext) {
|
|
|
16914
16914
|
if (pcbTrace) {
|
|
16915
16915
|
pcbPath = pcbTraceRouteToPcbPath(pcbTrace.route);
|
|
16916
16916
|
}
|
|
16917
|
+
let traceWidth = sourceTrace.min_trace_thickness;
|
|
16918
|
+
if (!traceWidth && pcbTrace?.route) {
|
|
16919
|
+
const wirePoint = pcbTrace.route.find((pt) => pt.route_type === "wire");
|
|
16920
|
+
if (wirePoint && wirePoint.route_type === "wire") {
|
|
16921
|
+
traceWidth = wirePoint.width;
|
|
16922
|
+
}
|
|
16923
|
+
}
|
|
16917
16924
|
const traceProps2 = {
|
|
16918
16925
|
path: connectedSelectors
|
|
16919
16926
|
};
|
|
16927
|
+
if (traceWidth !== void 0) {
|
|
16928
|
+
traceProps2.thickness = traceWidth;
|
|
16929
|
+
}
|
|
16920
16930
|
if (pcbPath && pcbPath.length > 0) {
|
|
16921
16931
|
traceProps2.pcbPath = pcbPath;
|
|
16922
16932
|
} else if (pcbTrace) {
|
|
@@ -17555,7 +17565,7 @@ import { identity as identity4 } from "transformation-matrix";
|
|
|
17555
17565
|
var package_default = {
|
|
17556
17566
|
name: "@tscircuit/core",
|
|
17557
17567
|
type: "module",
|
|
17558
|
-
version: "0.0.
|
|
17568
|
+
version: "0.0.1047",
|
|
17559
17569
|
types: "dist/index.d.ts",
|
|
17560
17570
|
main: "dist/index.js",
|
|
17561
17571
|
module: "dist/index.js",
|