@tscircuit/hypergraph 0.0.10 → 0.0.12

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.d.ts CHANGED
@@ -294,6 +294,13 @@ declare class HyperGraphSolver<RegionType extends Region = Region, RegionPortTyp
294
294
  rippingEnabled?: boolean;
295
295
  ripCost?: number;
296
296
  });
297
+ getConstructorParams(): {
298
+ inputGraph: HyperGraph | SerializedHyperGraph;
299
+ inputConnections: (Connection | SerializedConnection)[];
300
+ greedyMultiplier?: number;
301
+ rippingEnabled?: boolean;
302
+ ripCost?: number;
303
+ };
297
304
  computeH(candidate: CandidateType): number;
298
305
  /**
299
306
  * OVERRIDE THIS
@@ -408,4 +415,6 @@ declare const applyTransformToGraph: (graph: JumperGraph, matrix: Matrix) => Jum
408
415
  */
409
416
  declare const rotateGraph90Degrees: (graph: JumperGraph) => JumperGraph;
410
417
 
411
- export { type Candidate, type Connection, type ConnectionId, type GScore, type GraphEdgeId, type HyperGraph, HyperGraphSolver, type JPort, type JRegion, JUMPER_GRAPH_SOLVER_DEFAULTS, type JumperGraph, JumperGraphSolver, type JumperGraphWithConnections, type NetworkId, type PortAssignment, type PortId, type Region, type RegionId, type RegionPort, type RegionPortAssignment, type SerializedConnection, type SerializedGraphPort, type SerializedGraphRegion, type SerializedHyperGraph, type SerializedRegionPortAssignment, type SolvedRoute, type XYConnection, applyTransformToGraph, createGraphWithConnectionsFromBaseGraph, generateJumperGrid, generateJumperX4Grid, rotateGraph90Degrees };
418
+ declare const calculateGraphBounds: (regions: JRegion[]) => Bounds;
419
+
420
+ export { type Candidate, type Connection, type ConnectionId, type GScore, type GraphEdgeId, type HyperGraph, HyperGraphSolver, type JPort, type JRegion, JUMPER_GRAPH_SOLVER_DEFAULTS, type JumperGraph, JumperGraphSolver, type JumperGraphWithConnections, type NetworkId, type PortAssignment, type PortId, type Region, type RegionId, type RegionPort, type RegionPortAssignment, type SerializedConnection, type SerializedGraphPort, type SerializedGraphRegion, type SerializedHyperGraph, type SerializedRegionPortAssignment, type SolvedRoute, type XYConnection, applyTransformToGraph, calculateGraphBounds, createGraphWithConnectionsFromBaseGraph, generateJumperGrid, generateJumperX4Grid, rotateGraph90Degrees };
package/dist/index.js CHANGED
@@ -1767,6 +1767,9 @@ var HyperGraphSolver = class extends BaseSolver {
1767
1767
  ripCost = 0;
1768
1768
  lastCandidate = null;
1769
1769
  visitedPointsForCurrentConnection = /* @__PURE__ */ new Map();
1770
+ getConstructorParams() {
1771
+ return this.input;
1772
+ }
1770
1773
  computeH(candidate) {
1771
1774
  return this.estimateCostToEnd(candidate.port);
1772
1775
  }
@@ -2419,6 +2422,7 @@ export {
2419
2422
  JUMPER_GRAPH_SOLVER_DEFAULTS,
2420
2423
  JumperGraphSolver,
2421
2424
  applyTransformToGraph,
2425
+ calculateGraphBounds,
2422
2426
  createGraphWithConnectionsFromBaseGraph,
2423
2427
  generateJumperGrid,
2424
2428
  generateJumperX4Grid,
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@tscircuit/hypergraph",
3
3
  "main": "dist/index.js",
4
- "version": "0.0.10",
4
+ "version": "0.0.12",
5
5
  "type": "module",
6
6
  "scripts": {
7
7
  "start": "cosmos",