@tscircuit/core 0.0.1505 → 0.0.1506
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 +9 -11
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -21171,13 +21171,12 @@ function createSchematicTraceSolverInputProblem(group, opts = {}) {
|
|
|
21171
21171
|
sourceComponent
|
|
21172
21172
|
});
|
|
21173
21173
|
}).filter((textBox) => Boolean(textBox));
|
|
21174
|
-
const
|
|
21174
|
+
const sectionIdBySchematicComponentId = /* @__PURE__ */ new Map();
|
|
21175
21175
|
for (const component of group.getDescendants()) {
|
|
21176
|
-
|
|
21177
|
-
|
|
21178
|
-
|
|
21179
|
-
|
|
21180
|
-
);
|
|
21176
|
+
const schematicComponentId = component.schematic_component_id;
|
|
21177
|
+
const sectionId = component.getSchematicSectionName();
|
|
21178
|
+
if (schematicComponentId && sectionId) {
|
|
21179
|
+
sectionIdBySchematicComponentId.set(schematicComponentId, sectionId);
|
|
21181
21180
|
}
|
|
21182
21181
|
}
|
|
21183
21182
|
const chips = [];
|
|
@@ -21219,10 +21218,9 @@ function createSchematicTraceSolverInputProblem(group, opts = {}) {
|
|
|
21219
21218
|
)
|
|
21220
21219
|
});
|
|
21221
21220
|
}
|
|
21222
|
-
|
|
21223
|
-
|
|
21224
|
-
|
|
21225
|
-
}
|
|
21221
|
+
const sectionId = sectionIdBySchematicComponentId.get(
|
|
21222
|
+
schematicComponent.schematic_component_id
|
|
21223
|
+
);
|
|
21226
21224
|
const layoutBounds = getSchematicComponentWithTextBounds({ db, schematicComponent }) ?? getBoundFromCenteredRect4({
|
|
21227
21225
|
center: schematicComponent.center,
|
|
21228
21226
|
width: schematicComponent.size.width,
|
|
@@ -23654,7 +23652,7 @@ function Group_getRoutingPhasePlans(group) {
|
|
|
23654
23652
|
var package_default = {
|
|
23655
23653
|
name: "@tscircuit/core",
|
|
23656
23654
|
type: "module",
|
|
23657
|
-
version: "0.0.
|
|
23655
|
+
version: "0.0.1505",
|
|
23658
23656
|
types: "dist/index.d.ts",
|
|
23659
23657
|
main: "dist/index.js",
|
|
23660
23658
|
module: "dist/index.js",
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tscircuit/core",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.0.
|
|
4
|
+
"version": "0.0.1506",
|
|
5
5
|
"types": "dist/index.d.ts",
|
|
6
6
|
"main": "dist/index.js",
|
|
7
7
|
"module": "dist/index.js",
|
|
@@ -118,7 +118,7 @@
|
|
|
118
118
|
"@flatten-js/core": "^1.6.2",
|
|
119
119
|
"@lume/kiwi": "^0.4.3",
|
|
120
120
|
"calculate-cell-boundaries": "^0.0.13",
|
|
121
|
-
"calculate-packing": "^0.0.
|
|
121
|
+
"calculate-packing": "^0.0.82",
|
|
122
122
|
"css-select": "5.1.0",
|
|
123
123
|
"format-si-unit": "^0.0.7",
|
|
124
124
|
"nanoid": "^5.0.7",
|