@tscircuit/core 0.0.930 → 0.0.931
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 +15 -2
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -10027,7 +10027,19 @@ var getSimpleRouteJsonFromCircuitJson = ({
|
|
|
10027
10027
|
const subcircuitElements = (circuitJson ?? db.toArray()).filter(
|
|
10028
10028
|
(e) => !subcircuit_id || "subcircuit_id" in e && relevantSubcircuitIds.has(e.subcircuit_id)
|
|
10029
10029
|
);
|
|
10030
|
-
|
|
10030
|
+
let board = null;
|
|
10031
|
+
if (subcircuit_id) {
|
|
10032
|
+
const source_group_id = subcircuit_id.replace(/^subcircuit_/, "");
|
|
10033
|
+
const source_board = db.source_board.getWhere({ source_group_id });
|
|
10034
|
+
if (source_board) {
|
|
10035
|
+
board = db.pcb_board.getWhere({
|
|
10036
|
+
source_board_id: source_board.source_board_id
|
|
10037
|
+
});
|
|
10038
|
+
}
|
|
10039
|
+
}
|
|
10040
|
+
if (!board) {
|
|
10041
|
+
board = db.pcb_board.list()[0];
|
|
10042
|
+
}
|
|
10031
10043
|
db = su4(subcircuitElements);
|
|
10032
10044
|
const connMap = getFullConnectivityMapFromCircuitJson3(subcircuitElements);
|
|
10033
10045
|
const obstacles = getObstaclesFromCircuitJson(
|
|
@@ -15809,6 +15821,7 @@ var Board = class extends Group6 {
|
|
|
15809
15821
|
);
|
|
15810
15822
|
}
|
|
15811
15823
|
const pcb_board = db.pcb_board.insert({
|
|
15824
|
+
source_board_id: this.source_board_id,
|
|
15812
15825
|
center,
|
|
15813
15826
|
thickness: this.boardThickness,
|
|
15814
15827
|
num_layers: this.allLayers.length,
|
|
@@ -19632,7 +19645,7 @@ import { identity as identity5 } from "transformation-matrix";
|
|
|
19632
19645
|
var package_default = {
|
|
19633
19646
|
name: "@tscircuit/core",
|
|
19634
19647
|
type: "module",
|
|
19635
|
-
version: "0.0.
|
|
19648
|
+
version: "0.0.930",
|
|
19636
19649
|
types: "dist/index.d.ts",
|
|
19637
19650
|
main: "dist/index.js",
|
|
19638
19651
|
module: "dist/index.js",
|