@tscircuit/core 0.0.748 → 0.0.750

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/README.md CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  The core logic used to build Circuit JSON from tscircuit React elements.
4
4
 
5
- [tscircuit](https://github.com/tscircuit/tscircuit) · [Development Guide](./docs/DEVELOPMENT.md) · [Core Benchmarks](https://core-benchmarks.tscircuit.com/)
5
+ [tscircuit](https://github.com/tscircuit/tscircuit) · [Development Guide](./docs/DEVELOPMENT.md) · [Core Benchmarks](https://core-benchmarks.tscircuit.com/) · [Contributor Getting Started Video](https://share.cleanshot.com/rbJpnvJZ)
6
6
 
7
7
  You can use `core` to create [Circuit JSON](https://github.com/tscircuit/circuit-json), which can then
8
8
  be converted into Gerbers, viewed online, and much more.
package/dist/index.js CHANGED
@@ -11503,12 +11503,10 @@ var debug7 = Debug8("Group_doInitialSchematicTraceRender");
11503
11503
  function applyTracesFromSolverOutput(args) {
11504
11504
  const { group, solver, pinIdToSchematicPortId, userNetIdToSck } = args;
11505
11505
  const { db } = group.root;
11506
- const correctedMap = solver.traceOverlapShiftSolver?.correctedTraceMap;
11506
+ const traces = solver.traceLabelOverlapAvoidanceSolver?.getOutput().traces ?? solver.schematicTraceLinesSolver?.solvedTracePaths;
11507
11507
  const pendingTraces = [];
11508
- debug7(
11509
- `Traces inside SchematicTraceSolver output: ${Object.values(correctedMap ?? {}).length}`
11510
- );
11511
- for (const solvedTracePath of Object.values(correctedMap ?? {})) {
11508
+ debug7(`Traces inside SchematicTraceSolver output: ${(traces ?? []).length}`);
11509
+ for (const solvedTracePath of traces ?? []) {
11512
11510
  const points = solvedTracePath?.tracePath;
11513
11511
  if (!Array.isArray(points) || points.length < 2) {
11514
11512
  debug7(
@@ -11629,7 +11627,7 @@ function applyNetLabelPlacements(args) {
11629
11627
  schematicPortIdsWithRoutedTraces
11630
11628
  } = args;
11631
11629
  const { db } = group.root;
11632
- const netLabelPlacements = solver.netLabelPlacementSolver?.netLabelPlacements ?? [];
11630
+ const netLabelPlacements = solver.traceLabelOverlapAvoidanceSolver?.getOutput().netLabelPlacements ?? [];
11633
11631
  const globalConnMap = solver.mspConnectionPairSolver.globalConnMap;
11634
11632
  for (const placement of netLabelPlacements) {
11635
11633
  debug8(`processing placement: ${placement.netId}`);
@@ -15775,7 +15773,7 @@ import { identity as identity6 } from "transformation-matrix";
15775
15773
  var package_default = {
15776
15774
  name: "@tscircuit/core",
15777
15775
  type: "module",
15778
- version: "0.0.747",
15776
+ version: "0.0.749",
15779
15777
  types: "dist/index.d.ts",
15780
15778
  main: "dist/index.js",
15781
15779
  module: "dist/index.js",
@@ -15817,7 +15815,7 @@ var package_default = {
15817
15815
  "@tscircuit/props": "0.0.335",
15818
15816
  "@tscircuit/schematic-autolayout": "^0.0.6",
15819
15817
  "@tscircuit/schematic-match-adapt": "^0.0.16",
15820
- "@tscircuit/schematic-trace-solver": "^0.0.38",
15818
+ "@tscircuit/schematic-trace-solver": "^0.0.40",
15821
15819
  "@tscircuit/simple-3d-svg": "^0.0.41",
15822
15820
  "@types/bun": "^1.2.16",
15823
15821
  "@types/debug": "^4.1.12",
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@tscircuit/core",
3
3
  "type": "module",
4
- "version": "0.0.748",
4
+ "version": "0.0.750",
5
5
  "types": "dist/index.d.ts",
6
6
  "main": "dist/index.js",
7
7
  "module": "dist/index.js",
@@ -43,7 +43,7 @@
43
43
  "@tscircuit/props": "0.0.335",
44
44
  "@tscircuit/schematic-autolayout": "^0.0.6",
45
45
  "@tscircuit/schematic-match-adapt": "^0.0.16",
46
- "@tscircuit/schematic-trace-solver": "^0.0.38",
46
+ "@tscircuit/schematic-trace-solver": "^0.0.40",
47
47
  "@tscircuit/simple-3d-svg": "^0.0.41",
48
48
  "@types/bun": "^1.2.16",
49
49
  "@types/debug": "^4.1.12",