@tscircuit/core 0.0.1943 → 0.0.1944

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 +16 -1
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -53615,6 +53615,9 @@ var resolvePointToPointConnection = (differentialPair, connectionSelector) => {
53615
53615
  (sourcePort) => sourcePort.subcircuit_connectivity_map_key === connectivityMapKey
53616
53616
  );
53617
53617
  return {
53618
+ sourceTraceIds: subcircuitSourceTraces.filter(
53619
+ (trace) => trace.subcircuit_connectivity_map_key === connectivityMapKey
53620
+ ).map((trace) => trace.source_trace_id),
53618
53621
  sourcePorts,
53619
53622
  sourceTraceName: matchingSourceTraces.length > 0 ? connectionSelector : void 0
53620
53623
  };
@@ -53657,6 +53660,8 @@ var DifferentialPair_doInitialSourceDesignRuleChecks = (differentialPair) => {
53657
53660
  name: sourceComponent.name
53658
53661
  });
53659
53662
  }
53663
+ const memberTraceIds = [];
53664
+ let resolvedPolarityCount = 0;
53660
53665
  for (const connectionPolarity of ["positive", "negative"]) {
53661
53666
  let connectionSelector = differentialPair._parsedProps.negativeConnection;
53662
53667
  if (connectionPolarity === "positive") {
@@ -53667,6 +53672,8 @@ var DifferentialPair_doInitialSourceDesignRuleChecks = (differentialPair) => {
53667
53672
  connectionSelector
53668
53673
  );
53669
53674
  if (!resolvedConnection) continue;
53675
+ resolvedPolarityCount++;
53676
+ memberTraceIds.push(...resolvedConnection.sourceTraceIds);
53670
53677
  const terminalSourcePorts = resolvedConnection.sourcePorts;
53671
53678
  if (terminalSourcePorts.length === 2) continue;
53672
53679
  let warningSourceComponentId = "";
@@ -53696,6 +53703,14 @@ var DifferentialPair_doInitialSourceDesignRuleChecks = (differentialPair) => {
53696
53703
  subcircuit_id: differentialPair.getSubcircuit().subcircuit_id ?? void 0
53697
53704
  });
53698
53705
  }
53706
+ if (resolvedPolarityCount === 2 && memberTraceIds.length > 0) {
53707
+ db.source_bus.insert({
53708
+ name: differentialPair.name,
53709
+ source_trace_ids: [...new Set(memberTraceIds)],
53710
+ max_length_skew: differentialPair._parsedProps.maxLengthSkew,
53711
+ subcircuit_id: differentialPair.getSubcircuit().subcircuit_id ?? void 0
53712
+ });
53713
+ }
53699
53714
  };
53700
53715
 
53701
53716
  // lib/components/primitive-components/DifferentialPair.ts
@@ -63427,7 +63442,7 @@ function Group_getRoutingPhasePlans(group) {
63427
63442
  var package_default = {
63428
63443
  name: "@tscircuit/core",
63429
63444
  type: "module",
63430
- version: "0.0.1942",
63445
+ version: "0.0.1943",
63431
63446
  types: "dist/index.d.ts",
63432
63447
  main: "dist/index.js",
63433
63448
  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.1943",
4
+ "version": "0.0.1944",
5
5
  "types": "dist/index.d.ts",
6
6
  "main": "dist/index.js",
7
7
  "module": "dist/index.js",