@tscircuit/core 0.0.1046 → 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.
Files changed (2) hide show
  1. package/dist/index.js +12 -2
  2. package/package.json +2 -2
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.1045",
17568
+ version: "0.0.1047",
17559
17569
  types: "dist/index.d.ts",
17560
17570
  main: "dist/index.js",
17561
17571
  module: "dist/index.js",
@@ -17616,7 +17626,7 @@ var package_default = {
17616
17626
  "circuit-json": "^0.0.383",
17617
17627
  "circuit-json-to-bpc": "^0.0.13",
17618
17628
  "circuit-json-to-connectivity-map": "^0.0.23",
17619
- "circuit-json-to-gltf": "^0.0.68",
17629
+ "circuit-json-to-gltf": "^0.0.70",
17620
17630
  "circuit-json-to-simple-3d": "^0.0.9",
17621
17631
  "circuit-json-to-spice": "^0.0.34",
17622
17632
  "circuit-to-svg": "^0.0.328",
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@tscircuit/core",
3
3
  "type": "module",
4
- "version": "0.0.1046",
4
+ "version": "0.0.1048",
5
5
  "types": "dist/index.d.ts",
6
6
  "main": "dist/index.js",
7
7
  "module": "dist/index.js",
@@ -62,7 +62,7 @@
62
62
  "circuit-json": "^0.0.383",
63
63
  "circuit-json-to-bpc": "^0.0.13",
64
64
  "circuit-json-to-connectivity-map": "^0.0.23",
65
- "circuit-json-to-gltf": "^0.0.68",
65
+ "circuit-json-to-gltf": "^0.0.70",
66
66
  "circuit-json-to-simple-3d": "^0.0.9",
67
67
  "circuit-json-to-spice": "^0.0.34",
68
68
  "circuit-to-svg": "^0.0.328",