@tscircuit/core 0.0.1845 → 0.0.1847

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 +9 -10
  2. package/package.json +2 -2
package/dist/index.js CHANGED
@@ -37451,14 +37451,18 @@ var getDifferentialPairSrjConnectionNamesByCohortOrThrow = ({
37451
37451
  traceNameOrPortSelector
37452
37452
  }) => {
37453
37453
  const differentialPairSourceTraceIds = [];
37454
+ const differentialPairSourceNetIds = /* @__PURE__ */ new Set();
37454
37455
  for (const sourceTrace of differentialPairSourceTraces) {
37455
37456
  if (sourceTrace.subcircuit_connectivity_map_key === traceSubcircuitConnectivityMapKey) {
37456
37457
  differentialPairSourceTraceIds.push(sourceTrace.source_trace_id);
37458
+ for (const sourceNetId of sourceTrace.connected_source_net_ids ?? []) {
37459
+ differentialPairSourceNetIds.add(sourceNetId);
37460
+ }
37457
37461
  }
37458
37462
  }
37459
37463
  const matchingSrjConnections = [];
37460
37464
  for (const srjConnection of srjConnections) {
37461
- if (srjConnection.source_trace_id && differentialPairSourceTraceIds.includes(srjConnection.source_trace_id)) {
37465
+ if (differentialPairSourceNetIds.has(srjConnection.name) || srjConnection.source_trace_id && differentialPairSourceTraceIds.includes(srjConnection.source_trace_id)) {
37462
37466
  matchingSrjConnections.push(srjConnection);
37463
37467
  }
37464
37468
  }
@@ -46506,7 +46510,7 @@ function Group_getRoutingPhasePlans(group) {
46506
46510
  var package_default = {
46507
46511
  name: "@tscircuit/core",
46508
46512
  type: "module",
46509
- version: "0.0.1844",
46513
+ version: "0.0.1846",
46510
46514
  types: "dist/index.d.ts",
46511
46515
  main: "dist/index.js",
46512
46516
  module: "dist/index.js",
@@ -46624,7 +46628,7 @@ var package_default = {
46624
46628
  dependencies: {
46625
46629
  "@flatten-js/core": "^1.6.2",
46626
46630
  "@lume/kiwi": "^0.4.3",
46627
- "calculate-cell-boundaries": "^0.0.19",
46631
+ "calculate-cell-boundaries": "^0.0.21",
46628
46632
  "calculate-packing": "^0.0.89",
46629
46633
  "css-select": "5.1.0",
46630
46634
  "format-si-unit": "^0.0.12",
@@ -59143,14 +59147,9 @@ var SchematicSection = class _SchematicSection extends PrimitiveComponent2 {
59143
59147
  if (allSectionsWithBounds.length === 0) return;
59144
59148
  const allCells = allSectionsWithBounds.map((s) => s.cell);
59145
59149
  const outer = computeBoundsFromCellContents(allCells);
59146
- const CELL_MARGIN = 1;
59147
59150
  const dividers = calculateCellBoundaries(
59148
- allSectionsWithBounds.map((s) => ({
59149
- minX: s.rawBounds.minX - CELL_MARGIN,
59150
- maxX: s.rawBounds.maxX + CELL_MARGIN,
59151
- minY: s.rawBounds.minY - CELL_MARGIN,
59152
- maxY: s.rawBounds.maxY + CELL_MARGIN
59153
- }))
59151
+ allSectionsWithBounds.map((s) => s.rawBounds),
59152
+ { cellMargin: 1 }
59154
59153
  );
59155
59154
  for (const line of dividers) {
59156
59155
  db.schematic_line.insert({
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@tscircuit/core",
3
3
  "type": "module",
4
- "version": "0.0.1845",
4
+ "version": "0.0.1847",
5
5
  "types": "dist/index.d.ts",
6
6
  "main": "dist/index.js",
7
7
  "module": "dist/index.js",
@@ -119,7 +119,7 @@
119
119
  "dependencies": {
120
120
  "@flatten-js/core": "^1.6.2",
121
121
  "@lume/kiwi": "^0.4.3",
122
- "calculate-cell-boundaries": "^0.0.19",
122
+ "calculate-cell-boundaries": "^0.0.21",
123
123
  "calculate-packing": "^0.0.89",
124
124
  "css-select": "5.1.0",
125
125
  "format-si-unit": "^0.0.12",