@tscircuit/core 0.0.1504 → 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.
Files changed (2) hide show
  1. package/dist/index.js +10 -12
  2. package/package.json +3 -3
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 componentNameToSectionId = /* @__PURE__ */ new Map();
21174
+ const sectionIdBySchematicComponentId = /* @__PURE__ */ new Map();
21175
21175
  for (const component of group.getDescendants()) {
21176
- if (component.name && component._parsedProps?.schSectionName) {
21177
- componentNameToSectionId.set(
21178
- component.name,
21179
- component._parsedProps.schSectionName
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
- let sectionId;
21223
- if (sourceComponent?.name) {
21224
- sectionId = componentNameToSectionId.get(sourceComponent.name);
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.1503",
23655
+ version: "0.0.1505",
23658
23656
  types: "dist/index.d.ts",
23659
23657
  main: "dist/index.js",
23660
23658
  module: "dist/index.js",
@@ -23694,7 +23692,7 @@ var package_default = {
23694
23692
  "@tscircuit/common": "^0.0.20",
23695
23693
  "@tscircuit/copper-pour-solver": "0.0.39",
23696
23694
  "@tscircuit/create-fdm-enclosure": "0.0.3",
23697
- "@tscircuit/footprinter": "^0.0.386",
23695
+ "@tscircuit/footprinter": "^0.0.387",
23698
23696
  "@tscircuit/image-utils": "^0.0.8",
23699
23697
  "@tscircuit/infer-cable-insertion-point": "^0.0.2",
23700
23698
  "@tscircuit/infgrid-ijump-astar": "^0.0.35",
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@tscircuit/core",
3
3
  "type": "module",
4
- "version": "0.0.1504",
4
+ "version": "0.0.1506",
5
5
  "types": "dist/index.d.ts",
6
6
  "main": "dist/index.js",
7
7
  "module": "dist/index.js",
@@ -41,7 +41,7 @@
41
41
  "@tscircuit/common": "^0.0.20",
42
42
  "@tscircuit/copper-pour-solver": "0.0.39",
43
43
  "@tscircuit/create-fdm-enclosure": "0.0.3",
44
- "@tscircuit/footprinter": "^0.0.386",
44
+ "@tscircuit/footprinter": "^0.0.387",
45
45
  "@tscircuit/image-utils": "^0.0.8",
46
46
  "@tscircuit/infer-cable-insertion-point": "^0.0.2",
47
47
  "@tscircuit/infgrid-ijump-astar": "^0.0.35",
@@ -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.79",
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",