@tscircuit/core 0.0.1032 → 0.0.1033

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 -6
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -11240,6 +11240,7 @@ function Group_doInitialPcbCalcPlacementResolution(group) {
11240
11240
  inDegree.set(component.name, 0);
11241
11241
  }
11242
11242
  for (const [candidateName, candidate] of candidatesByName.entries()) {
11243
+ const referencedCandidateNames = /* @__PURE__ */ new Set();
11243
11244
  for (const token of candidate.refs) {
11244
11245
  const { referencePath, field } = parseComponentReferenceToken(token);
11245
11246
  if (!SUPPORTED_COMPONENT_FIELDS.has(field)) {
@@ -11254,12 +11255,15 @@ function Group_doInitialPcbCalcPlacementResolution(group) {
11254
11255
  normalComponentNameMap
11255
11256
  });
11256
11257
  if (candidatesByName.has(referencedComponentName) && referencedComponentName !== candidateName) {
11257
- inDegree.set(candidateName, (inDegree.get(candidateName) ?? 0) + 1);
11258
- if (!dependents.has(referencedComponentName)) {
11259
- dependents.set(referencedComponentName, /* @__PURE__ */ new Set());
11260
- }
11261
- dependents.get(referencedComponentName).add(candidateName);
11258
+ referencedCandidateNames.add(referencedComponentName);
11259
+ }
11260
+ }
11261
+ for (const referencedComponentName of referencedCandidateNames) {
11262
+ inDegree.set(candidateName, (inDegree.get(candidateName) ?? 0) + 1);
11263
+ if (!dependents.has(referencedComponentName)) {
11264
+ dependents.set(referencedComponentName, /* @__PURE__ */ new Set());
11262
11265
  }
11266
+ dependents.get(referencedComponentName).add(candidateName);
11263
11267
  }
11264
11268
  }
11265
11269
  const queue = [...inDegree.entries()].filter(([, degree]) => degree === 0).map(([name]) => name);
@@ -12531,7 +12535,7 @@ import { identity as identity4 } from "transformation-matrix";
12531
12535
  var package_default = {
12532
12536
  name: "@tscircuit/core",
12533
12537
  type: "module",
12534
- version: "0.0.1031",
12538
+ version: "0.0.1032",
12535
12539
  types: "dist/index.d.ts",
12536
12540
  main: "dist/index.js",
12537
12541
  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.1032",
4
+ "version": "0.0.1033",
5
5
  "types": "dist/index.d.ts",
6
6
  "main": "dist/index.js",
7
7
  "module": "dist/index.js",