@tscircuit/core 0.0.1510 → 0.0.1512

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 +22 -10
  2. package/package.json +2 -2
package/dist/index.js CHANGED
@@ -22248,7 +22248,7 @@ function createSchematicTraceSolverInputProblem(group, opts = {}) {
22248
22248
  );
22249
22249
  }
22250
22250
  directConnections.push({
22251
- pinIds: [a, b],
22251
+ schematicPortIds: [a, b],
22252
22252
  netId: userNetId,
22253
22253
  netLabelWidth
22254
22254
  });
@@ -22263,15 +22263,17 @@ function createSchematicTraceSolverInputProblem(group, opts = {}) {
22263
22263
  connKeyToSourceNet.set(net.subcircuit_connectivity_map_key, net);
22264
22264
  }
22265
22265
  }
22266
- const connKeyToPinIds = /* @__PURE__ */ new Map();
22266
+ const connKeyToSchematicPortIds = /* @__PURE__ */ new Map();
22267
22267
  for (const [schId, srcPortId] of schPortIdToSourcePortId) {
22268
22268
  const sp = db.source_port.get(srcPortId);
22269
22269
  if (!sp?.subcircuit_connectivity_map_key) continue;
22270
22270
  const connKey = sp.subcircuit_connectivity_map_key;
22271
- if (!connKeyToPinIds.has(connKey)) connKeyToPinIds.set(connKey, []);
22272
- connKeyToPinIds.get(connKey).push(schId);
22271
+ if (!connKeyToSchematicPortIds.has(connKey)) {
22272
+ connKeyToSchematicPortIds.set(connKey, []);
22273
+ }
22274
+ connKeyToSchematicPortIds.get(connKey).push(schId);
22273
22275
  }
22274
- for (const [connKey, schematicPortIds] of connKeyToPinIds) {
22276
+ for (const [connKey, schematicPortIds] of connKeyToSchematicPortIds) {
22275
22277
  const sourceNet = connKeyToSourceNet.get(connKey);
22276
22278
  if (sourceNet && schematicPortIds.length >= 1) {
22277
22279
  const seenRoutedSchematicPortIds = /* @__PURE__ */ new Set();
@@ -22302,7 +22304,7 @@ function createSchematicTraceSolverInputProblem(group, opts = {}) {
22302
22304
  }
22303
22305
  netConnections.push({
22304
22306
  netId: userNetId,
22305
- pinIds: uniqueSchematicPortIds,
22307
+ schematicPortIds: uniqueSchematicPortIds,
22306
22308
  netLabelWidth,
22307
22309
  netLabelHeight
22308
22310
  });
@@ -22328,8 +22330,18 @@ function createSchematicTraceSolverInputProblem(group, opts = {}) {
22328
22330
  })();
22329
22331
  const inputProblem = {
22330
22332
  chips,
22331
- directConnections,
22332
- netConnections,
22333
+ directConnections: directConnections.map(
22334
+ ({ schematicPortIds, ...connection }) => ({
22335
+ ...connection,
22336
+ pinIds: schematicPortIds
22337
+ })
22338
+ ),
22339
+ netConnections: netConnections.map(
22340
+ ({ schematicPortIds, ...connection }) => ({
22341
+ ...connection,
22342
+ pinIds: schematicPortIds
22343
+ })
22344
+ ),
22333
22345
  textBoxes,
22334
22346
  availableNetLabelOrientations,
22335
22347
  maxMspPairDistance: group._parsedProps.schMaxTraceDistance ?? DEFAULT_MAX_MSP_PAIR_DISTANCE
@@ -23675,7 +23687,7 @@ function Group_getRoutingPhasePlans(group) {
23675
23687
  var package_default = {
23676
23688
  name: "@tscircuit/core",
23677
23689
  type: "module",
23678
- version: "0.0.1509",
23690
+ version: "0.0.1511",
23679
23691
  types: "dist/index.d.ts",
23680
23692
  main: "dist/index.js",
23681
23693
  module: "dist/index.js",
@@ -23728,7 +23740,7 @@ var package_default = {
23728
23740
  "@tscircuit/ngspice-spice-engine": "^0.0.20",
23729
23741
  "@tscircuit/props": "^0.0.592",
23730
23742
  "@tscircuit/schematic-match-adapt": "^0.0.18",
23731
- "@tscircuit/schematic-trace-solver": "^0.0.108",
23743
+ "@tscircuit/schematic-trace-solver": "^0.0.109",
23732
23744
  "@tscircuit/solver-utils": "^0.0.16",
23733
23745
  "@tscircuit/soup-util": "^0.0.41",
23734
23746
  "@types/bun": "^1.2.16",
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@tscircuit/core",
3
3
  "type": "module",
4
- "version": "0.0.1510",
4
+ "version": "0.0.1512",
5
5
  "types": "dist/index.d.ts",
6
6
  "main": "dist/index.js",
7
7
  "module": "dist/index.js",
@@ -54,7 +54,7 @@
54
54
  "@tscircuit/ngspice-spice-engine": "^0.0.20",
55
55
  "@tscircuit/props": "^0.0.592",
56
56
  "@tscircuit/schematic-match-adapt": "^0.0.18",
57
- "@tscircuit/schematic-trace-solver": "^0.0.108",
57
+ "@tscircuit/schematic-trace-solver": "^0.0.109",
58
58
  "@tscircuit/solver-utils": "^0.0.16",
59
59
  "@tscircuit/soup-util": "^0.0.41",
60
60
  "@types/bun": "^1.2.16",