@tscircuit/capacity-autorouter 0.0.409 → 0.0.411
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 +80 -9
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/package.json +4 -3
package/dist/index.d.ts
CHANGED
|
@@ -2150,13 +2150,6 @@ declare class SingleHighDensityRouteStitchSolver extends BaseSolver {
|
|
|
2150
2150
|
defaultTraceThickness?: number;
|
|
2151
2151
|
defaultViaDiameter?: number;
|
|
2152
2152
|
});
|
|
2153
|
-
/**
|
|
2154
|
-
* Scan `remainingHdRoutes` and find a route that has **one** end that is not
|
|
2155
|
-
* within `1e-3` of the start or end of any other route on the same layer.
|
|
2156
|
-
* That “lonely” end marks one extremity of the whole chain, which we use as
|
|
2157
|
-
* our starting segment. If no such route exists (e.g., the data form a loop),
|
|
2158
|
-
* we simply return the first route so the solver can proceed.
|
|
2159
|
-
*/
|
|
2160
2153
|
getDisjointedRoute(): {
|
|
2161
2154
|
firstRoute: HighDensityIntraNodeRoute$1;
|
|
2162
2155
|
};
|
|
@@ -4825,6 +4818,84 @@ declare class Pipeline4HighDensityRepairSolver extends BaseSolver {
|
|
|
4825
4818
|
visualize(): GraphicsObject;
|
|
4826
4819
|
}
|
|
4827
4820
|
|
|
4821
|
+
declare class SingleHighDensityRouteStitchSolver3 extends BaseSolver {
|
|
4822
|
+
getSolverName(): string;
|
|
4823
|
+
mergedHdRoute: HighDensityIntraNodeRoute$1;
|
|
4824
|
+
remainingHdRoutes: HighDensityIntraNodeRoute$1[];
|
|
4825
|
+
start: {
|
|
4826
|
+
x: number;
|
|
4827
|
+
y: number;
|
|
4828
|
+
z: number;
|
|
4829
|
+
};
|
|
4830
|
+
end: {
|
|
4831
|
+
x: number;
|
|
4832
|
+
y: number;
|
|
4833
|
+
z: number;
|
|
4834
|
+
};
|
|
4835
|
+
colorMap: Record<string, string>;
|
|
4836
|
+
constructor(opts: {
|
|
4837
|
+
connectionName: string;
|
|
4838
|
+
hdRoutes: HighDensityIntraNodeRoute$1[];
|
|
4839
|
+
start: {
|
|
4840
|
+
x: number;
|
|
4841
|
+
y: number;
|
|
4842
|
+
z: number;
|
|
4843
|
+
};
|
|
4844
|
+
end: {
|
|
4845
|
+
x: number;
|
|
4846
|
+
y: number;
|
|
4847
|
+
z: number;
|
|
4848
|
+
};
|
|
4849
|
+
colorMap?: Record<string, string>;
|
|
4850
|
+
defaultTraceThickness?: number;
|
|
4851
|
+
defaultViaDiameter?: number;
|
|
4852
|
+
});
|
|
4853
|
+
getDisjointedRoute(): {
|
|
4854
|
+
firstRoute: HighDensityIntraNodeRoute$1;
|
|
4855
|
+
};
|
|
4856
|
+
_step(): void;
|
|
4857
|
+
visualize(): GraphicsObject;
|
|
4858
|
+
}
|
|
4859
|
+
|
|
4860
|
+
type UnsolvedRoute3 = {
|
|
4861
|
+
connectionName: string;
|
|
4862
|
+
hdRoutes: HighDensityIntraNodeRoute$1[];
|
|
4863
|
+
start: {
|
|
4864
|
+
x: number;
|
|
4865
|
+
y: number;
|
|
4866
|
+
z: number;
|
|
4867
|
+
};
|
|
4868
|
+
end: {
|
|
4869
|
+
x: number;
|
|
4870
|
+
y: number;
|
|
4871
|
+
z: number;
|
|
4872
|
+
};
|
|
4873
|
+
};
|
|
4874
|
+
declare class MultipleHighDensityRouteStitchSolver3 extends BaseSolver {
|
|
4875
|
+
getSolverName(): string;
|
|
4876
|
+
unsolvedRoutes: UnsolvedRoute3[];
|
|
4877
|
+
activeSolver: SingleHighDensityRouteStitchSolver3 | null;
|
|
4878
|
+
mergedHdRoutes: HighDensityIntraNodeRoute$1[];
|
|
4879
|
+
colorMap: Record<string, string>;
|
|
4880
|
+
defaultTraceThickness: number;
|
|
4881
|
+
defaultViaDiameter: number;
|
|
4882
|
+
private endpointClusters;
|
|
4883
|
+
private getEndpointKey;
|
|
4884
|
+
private getClosestEndpointHash;
|
|
4885
|
+
private selectRoutesAlongEndpointPath;
|
|
4886
|
+
private selectIslandEndpoints;
|
|
4887
|
+
private hasStitchableGapBetweenUnsolvedRoutes;
|
|
4888
|
+
constructor(params: {
|
|
4889
|
+
connections: SimpleRouteConnection[];
|
|
4890
|
+
hdRoutes: HighDensityIntraNodeRoute$1[];
|
|
4891
|
+
colorMap?: Record<string, string>;
|
|
4892
|
+
layerCount: number;
|
|
4893
|
+
defaultViaDiameter?: number;
|
|
4894
|
+
});
|
|
4895
|
+
_step(): void;
|
|
4896
|
+
visualize(): GraphicsObject;
|
|
4897
|
+
}
|
|
4898
|
+
|
|
4828
4899
|
interface CapacityMeshSolverOptions$1 {
|
|
4829
4900
|
capacityDepth?: number;
|
|
4830
4901
|
targetMinCapacity?: number;
|
|
@@ -4851,7 +4922,7 @@ declare class AutoroutingPipelineSolver4_TinyHypergraph extends BaseSolver {
|
|
|
4851
4922
|
colorMap: Record<string, string>;
|
|
4852
4923
|
highDensityRouteSolver?: HighDensitySolver;
|
|
4853
4924
|
highDensityRepairSolver?: Pipeline4HighDensityRepairSolver;
|
|
4854
|
-
highDensityStitchSolver?:
|
|
4925
|
+
highDensityStitchSolver?: MultipleHighDensityRouteStitchSolver3;
|
|
4855
4926
|
singleLayerNodeMerger?: SingleLayerNodeMergerSolver;
|
|
4856
4927
|
strawSolver?: StrawSolver;
|
|
4857
4928
|
deadEndSolver?: DeadEndSolver;
|
|
@@ -4877,7 +4948,7 @@ declare class AutoroutingPipelineSolver4_TinyHypergraph extends BaseSolver {
|
|
|
4877
4948
|
capacityEdges: CapacityMeshEdge[] | null;
|
|
4878
4949
|
highDensityNodePortPoints?: NodeWithPortPoints[];
|
|
4879
4950
|
cacheProvider: CacheProvider | null;
|
|
4880
|
-
pipelineDef: (PipelineStep$1<typeof NetToPointPairsSolver2_OffBoardConnection> | PipelineStep$1<typeof RectDiffPipeline> | PipelineStep$1<typeof NodeDimensionSubdivisionSolver> | PipelineStep$1<typeof CapacityMeshEdgeSolver2_NodeTreeOptimization> | PipelineStep$1<typeof AvailableSegmentPointSolver> | PipelineStep$1<typeof MultiTargetNecessaryCrampedPortPointSolver> | PipelineStep$1<typeof TinyHypergraphPortPointPathingSolver> | PipelineStep$1<typeof UniformPortDistributionSolver> | PipelineStep$1<typeof HighDensitySolver> | PipelineStep$1<typeof Pipeline4HighDensityRepairSolver> | PipelineStep$1<typeof
|
|
4951
|
+
pipelineDef: (PipelineStep$1<typeof NetToPointPairsSolver2_OffBoardConnection> | PipelineStep$1<typeof RectDiffPipeline> | PipelineStep$1<typeof NodeDimensionSubdivisionSolver> | PipelineStep$1<typeof CapacityMeshEdgeSolver2_NodeTreeOptimization> | PipelineStep$1<typeof AvailableSegmentPointSolver> | PipelineStep$1<typeof MultiTargetNecessaryCrampedPortPointSolver> | PipelineStep$1<typeof TinyHypergraphPortPointPathingSolver> | PipelineStep$1<typeof UniformPortDistributionSolver> | PipelineStep$1<typeof HighDensitySolver> | PipelineStep$1<typeof Pipeline4HighDensityRepairSolver> | PipelineStep$1<typeof MultipleHighDensityRouteStitchSolver3> | PipelineStep$1<typeof TraceSimplificationSolver> | PipelineStep$1<typeof TraceWidthSolver>)[];
|
|
4881
4952
|
constructor(srj: SimpleRouteJson, opts?: CapacityMeshSolverOptions$1);
|
|
4882
4953
|
getConstructorParams(): readonly [SimpleRouteJson, CapacityMeshSolverOptions$1];
|
|
4883
4954
|
currentPipelineStepIndex: number;
|