@tscircuit/core 0.0.499 → 0.0.500
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 +18 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -6767,6 +6767,23 @@ var getSimpleRouteJsonFromCircuitJson = ({
|
|
|
6767
6767
|
maxY: Math.max(...allPoints.map((p) => p.y)) + 1
|
|
6768
6768
|
};
|
|
6769
6769
|
}
|
|
6770
|
+
if (subcircuit_id) {
|
|
6771
|
+
const group = db.pcb_group.getWhere({ subcircuit_id });
|
|
6772
|
+
if (group) {
|
|
6773
|
+
const groupBounds = {
|
|
6774
|
+
minX: group.center.x - group.width / 2,
|
|
6775
|
+
maxX: group.center.x + group.width / 2,
|
|
6776
|
+
minY: group.center.y - group.height / 2,
|
|
6777
|
+
maxY: group.center.y + group.height / 2
|
|
6778
|
+
};
|
|
6779
|
+
bounds = {
|
|
6780
|
+
minX: Math.min(bounds.minX, groupBounds.minX),
|
|
6781
|
+
maxX: Math.max(bounds.maxX, groupBounds.maxX),
|
|
6782
|
+
minY: Math.min(bounds.minY, groupBounds.minY),
|
|
6783
|
+
maxY: Math.max(bounds.maxY, groupBounds.maxY)
|
|
6784
|
+
};
|
|
6785
|
+
}
|
|
6786
|
+
}
|
|
6770
6787
|
const directTraceConnections = db.source_trace.list().map((trace) => {
|
|
6771
6788
|
const connectedPorts = trace.connected_source_port_ids.map((id) => {
|
|
6772
6789
|
const source_port = db.source_port.get(id);
|
|
@@ -10367,7 +10384,7 @@ import { identity as identity4 } from "transformation-matrix";
|
|
|
10367
10384
|
var package_default = {
|
|
10368
10385
|
name: "@tscircuit/core",
|
|
10369
10386
|
type: "module",
|
|
10370
|
-
version: "0.0.
|
|
10387
|
+
version: "0.0.499",
|
|
10371
10388
|
types: "dist/index.d.ts",
|
|
10372
10389
|
main: "dist/index.js",
|
|
10373
10390
|
module: "dist/index.js",
|