@tscircuit/hypergraph 0.0.27 → 0.0.28

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.d.ts +9 -18
  2. package/package.json +1 -1
package/dist/index.d.ts CHANGED
@@ -633,7 +633,7 @@ declare const VIA_GRAPH_SOLVER_DEFAULTS: {
633
633
  ripCost: number;
634
634
  greedyMultiplier: number;
635
635
  };
636
- type ViaData$1 = {
636
+ type ViaData = {
637
637
  viaId: string;
638
638
  diameter: number;
639
639
  position: {
@@ -641,11 +641,11 @@ type ViaData$1 = {
641
641
  y: number;
642
642
  };
643
643
  };
644
- type ViasByNet$1 = Record<string, ViaData$1[]>;
644
+ type ViasByNet = Record<string, ViaData[]>;
645
645
  declare class ViaGraphSolver extends HyperGraphSolver<JRegion, JPort> {
646
646
  getSolverName(): string;
647
647
  UNIT_OF_COST: string;
648
- viasByNet?: ViasByNet$1;
648
+ viasByNet?: ViasByNet;
649
649
  portUsagePenalty: number;
650
650
  portUsagePenaltySq: number;
651
651
  crossingPenalty: number;
@@ -657,7 +657,7 @@ declare class ViaGraphSolver extends HyperGraphSolver<JRegion, JPort> {
657
657
  constructor(input: {
658
658
  inputGraph: HyperGraph | SerializedHyperGraph;
659
659
  inputConnections: (Connection | SerializedConnection)[];
660
- viasByNet?: ViasByNet$1;
660
+ viasByNet?: ViasByNet;
661
661
  ripCost?: number;
662
662
  portUsagePenalty?: number;
663
663
  crossingPenalty?: number;
@@ -676,7 +676,7 @@ declare class ViaGraphSolver extends HyperGraphSolver<JRegion, JPort> {
676
676
 
677
677
  type ViaGraphFromXYConnectionsResult = JumperGraph & {
678
678
  connections: Connection[];
679
- tiledViasByNet: ViasByNet$1;
679
+ tiledViasByNet: ViasByNet;
680
680
  tileCount: {
681
681
  rows: number;
682
682
  cols: number;
@@ -696,7 +696,7 @@ type ViaGraphFromXYConnectionsResult = JumperGraph & {
696
696
  * @param viasByNet - Via positions grouped by net name
697
697
  * @param opts - Optional configuration (tileSize defaults to 5mm, portPitch to 0.4mm)
698
698
  */
699
- declare function createViaGraphFromXYConnections(xyConnections: XYConnection[], viasByNet: ViasByNet$1, opts?: {
699
+ declare function createViaGraphFromXYConnections(xyConnections: XYConnection[], viasByNet: ViasByNet, opts?: {
700
700
  tileSize?: number;
701
701
  portPitch?: number;
702
702
  }): ViaGraphFromXYConnectionsResult;
@@ -730,29 +730,20 @@ type Bounds = {
730
730
  * space between the tiled area and the problem bounds.
731
731
  */
732
732
  declare function generateViaTopologyGrid(opts: {
733
- viasByNet: ViasByNet$1;
733
+ viasByNet: ViasByNet;
734
734
  bounds: Bounds;
735
735
  tileSize?: number;
736
736
  portPitch?: number;
737
737
  }): {
738
738
  regions: JRegion[];
739
739
  ports: JPort[];
740
- tiledViasByNet: ViasByNet$1;
740
+ tiledViasByNet: ViasByNet;
741
741
  tileCount: {
742
742
  rows: number;
743
743
  cols: number;
744
744
  };
745
745
  };
746
746
 
747
- type ViaData = {
748
- viaId: string;
749
- diameter: number;
750
- position: {
751
- x: number;
752
- y: number;
753
- };
754
- };
755
- type ViasByNet = Record<string, ViaData[]>;
756
747
  /**
757
748
  * Generates four outer topology regions (top, bottom, left, right) that wrap
758
749
  * around all vias, forming a closed frame that extends to the graph boundary.
@@ -769,4 +760,4 @@ declare const generateViaTopologyRegions: (viasByNet: ViasByNet, opts?: {
769
760
  ports: JPort[];
770
761
  };
771
762
 
772
- export { type Bounds$1 as Bounds, type BuildOpts, type Candidate, ConnectBuilder, type ConnectOpts, 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, PortBuilder, type PortData, type PortId, type PortSpread, type Region, RegionBuilder, type RegionData, type RegionId, type RegionPort, type RegionPortAssignment, type RegionRef, type SerializedConnection, type SerializedGraphPort, type SerializedGraphRegion, type SerializedHyperGraph, type SerializedRegionPortAssignment, type SharedBoundary, type SolvedRoute, Topology, TopologyError, VIA_GRAPH_SOLVER_DEFAULTS, type ValidateOpts, type ViaData$1 as ViaData, type ViaGraphFromXYConnectionsResult, ViaGraphSolver, type ViaGraphWithConnections, type ViasByNet$1 as ViasByNet, type XYConnection, applyTransformToGraph, calculateGraphBounds, convertConnectionsToSerializedConnections, convertHyperGraphToSerializedHyperGraph, createGraphWithConnectionsFromBaseGraph, createViaGraphFromXYConnections, createViaGraphWithConnections, generateJumperGrid, generateJumperX4Grid, generateViaTopologyGrid, generateViaTopologyRegions, rotateGraph90Degrees };
763
+ export { type Bounds$1 as Bounds, type BuildOpts, type Candidate, ConnectBuilder, type ConnectOpts, 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, PortBuilder, type PortData, type PortId, type PortSpread, type Region, RegionBuilder, type RegionData, type RegionId, type RegionPort, type RegionPortAssignment, type RegionRef, type SerializedConnection, type SerializedGraphPort, type SerializedGraphRegion, type SerializedHyperGraph, type SerializedRegionPortAssignment, type SharedBoundary, type SolvedRoute, Topology, TopologyError, VIA_GRAPH_SOLVER_DEFAULTS, type ValidateOpts, type ViaData, type ViaGraphFromXYConnectionsResult, ViaGraphSolver, type ViaGraphWithConnections, type ViasByNet, type XYConnection, applyTransformToGraph, calculateGraphBounds, convertConnectionsToSerializedConnections, convertHyperGraphToSerializedHyperGraph, createGraphWithConnectionsFromBaseGraph, createViaGraphFromXYConnections, createViaGraphWithConnections, generateJumperGrid, generateJumperX4Grid, generateViaTopologyGrid, generateViaTopologyRegions, rotateGraph90Degrees };
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.27",
4
+ "version": "0.0.28",
5
5
  "type": "module",
6
6
  "scripts": {
7
7
  "start": "cosmos",