@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.
- package/dist/index.js +10 -6
- 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
|
-
|
|
11258
|
-
|
|
11259
|
-
|
|
11260
|
-
|
|
11261
|
-
|
|
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.
|
|
12538
|
+
version: "0.0.1032",
|
|
12535
12539
|
types: "dist/index.d.ts",
|
|
12536
12540
|
main: "dist/index.js",
|
|
12537
12541
|
module: "dist/index.js",
|