@tscircuit/core 0.0.1641 → 0.0.1642
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 +20 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -22913,6 +22913,21 @@ var DifferentialPair = class extends PrimitiveComponent2 {
|
|
|
22913
22913
|
}
|
|
22914
22914
|
};
|
|
22915
22915
|
|
|
22916
|
+
// lib/utils/autorouting/expand-srj-bounds-to-include-connection-points.ts
|
|
22917
|
+
var expandSrjBoundsToIncludeConnectionPoints = (input) => {
|
|
22918
|
+
const expandedBounds = { ...input.bounds };
|
|
22919
|
+
for (const connection of input.connections) {
|
|
22920
|
+
if (connection.isOffBoard) continue;
|
|
22921
|
+
for (const point6 of connection.pointsToConnect) {
|
|
22922
|
+
expandedBounds.minX = Math.min(expandedBounds.minX, point6.x);
|
|
22923
|
+
expandedBounds.maxX = Math.max(expandedBounds.maxX, point6.x);
|
|
22924
|
+
expandedBounds.minY = Math.min(expandedBounds.minY, point6.y);
|
|
22925
|
+
expandedBounds.maxY = Math.max(expandedBounds.maxY, point6.y);
|
|
22926
|
+
}
|
|
22927
|
+
}
|
|
22928
|
+
return expandedBounds;
|
|
22929
|
+
};
|
|
22930
|
+
|
|
22916
22931
|
// lib/utils/autorouting/getBusesForSimpleRouteJson.ts
|
|
22917
22932
|
var getBusSourceTraceSubcircuitConnectivityMapKeyOrThrow = ({
|
|
22918
22933
|
bus,
|
|
@@ -23874,6 +23889,10 @@ var getSimpleRouteJsonFromCircuitJson = ({
|
|
|
23874
23889
|
conn.nominalTraceWidth ??= nominalTraceWidth ?? defaultTraceWidth;
|
|
23875
23890
|
conn.width ??= nominalTraceWidth ?? defaultTraceWidth;
|
|
23876
23891
|
}
|
|
23892
|
+
bounds = expandSrjBoundsToIncludeConnectionPoints({
|
|
23893
|
+
bounds,
|
|
23894
|
+
connections: allConns
|
|
23895
|
+
});
|
|
23877
23896
|
const differentialPairs = subcircuitComponent?.selectAll("differentialpair") ?? [];
|
|
23878
23897
|
const buses = subcircuitComponent?.selectAll("bus") ?? [];
|
|
23879
23898
|
const srjDifferentialPairs = getDifferentialPairsForSimpleRouteJson({
|
|
@@ -31434,7 +31453,7 @@ function Group_getRoutingPhasePlans(group) {
|
|
|
31434
31453
|
var package_default = {
|
|
31435
31454
|
name: "@tscircuit/core",
|
|
31436
31455
|
type: "module",
|
|
31437
|
-
version: "0.0.
|
|
31456
|
+
version: "0.0.1641",
|
|
31438
31457
|
types: "dist/index.d.ts",
|
|
31439
31458
|
main: "dist/index.js",
|
|
31440
31459
|
module: "dist/index.js",
|