@tscircuit/capacity-autorouter 0.0.97 → 0.0.98
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 +12 -2
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -15782,7 +15782,8 @@ var CapacityMeshEdgeSolver = class extends BaseSolver {
|
|
|
15782
15782
|
`availableZ: ${node.availableZ.join(",")}`,
|
|
15783
15783
|
`target? ${node._containsTarget ?? false}`,
|
|
15784
15784
|
`obs? ${node._containsObstacle ?? false}`
|
|
15785
|
-
].join("\n")
|
|
15785
|
+
].join("\n"),
|
|
15786
|
+
layer: `z${node.availableZ.join(",")}`
|
|
15786
15787
|
};
|
|
15787
15788
|
}),
|
|
15788
15789
|
circles: []
|
|
@@ -15807,7 +15808,11 @@ var CapacityMeshEdgeSolver = class extends BaseSolver {
|
|
|
15807
15808
|
x: node2.center.x + lowestZ2 * node2.width * 0.05,
|
|
15808
15809
|
y: node2.center.y - lowestZ2 * node2.width * 0.05
|
|
15809
15810
|
};
|
|
15811
|
+
const availableZ = Array.from(
|
|
15812
|
+
/* @__PURE__ */ new Set([...node1.availableZ, ...node2.availableZ])
|
|
15813
|
+
).sort();
|
|
15810
15814
|
graphics.lines.push({
|
|
15815
|
+
layer: `z${availableZ.join(",")}`,
|
|
15811
15816
|
points: [nodeCenter1Adj, nodeCenter2Adj],
|
|
15812
15817
|
strokeDash: node1.availableZ.join(",") === node2.availableZ.join(",") ? void 0 : "10 5"
|
|
15813
15818
|
});
|
|
@@ -15944,7 +15949,8 @@ var DeadEndSolver = class extends BaseSolver {
|
|
|
15944
15949
|
`availableZ: ${node.availableZ.join(",")}`,
|
|
15945
15950
|
`target? ${node._containsTarget ?? false}`,
|
|
15946
15951
|
`obs? ${node._containsObstacle ?? false}`
|
|
15947
|
-
].join("\n")
|
|
15952
|
+
].join("\n"),
|
|
15953
|
+
layer: `z${node.availableZ.join(",")}`
|
|
15948
15954
|
};
|
|
15949
15955
|
}),
|
|
15950
15956
|
circles: []
|
|
@@ -15963,7 +15969,11 @@ var DeadEndSolver = class extends BaseSolver {
|
|
|
15963
15969
|
x: node2.center.x + lowestZ2 * node2.width * 0.05,
|
|
15964
15970
|
y: node2.center.y - lowestZ2 * node2.width * 0.05
|
|
15965
15971
|
};
|
|
15972
|
+
const availableZ = Array.from(
|
|
15973
|
+
/* @__PURE__ */ new Set([...node1.availableZ, ...node2.availableZ])
|
|
15974
|
+
).sort();
|
|
15966
15975
|
graphics.lines.push({
|
|
15976
|
+
layer: `z${availableZ.join(",")}`,
|
|
15967
15977
|
points: [nodeCenter1Adj, nodeCenter2Adj],
|
|
15968
15978
|
strokeDash: node1.availableZ.join(",") === node2.availableZ.join(",") ? void 0 : "10 5",
|
|
15969
15979
|
strokeColor: edge.nodeIds.some(
|