@tscircuit/capacity-autorouter 0.0.408 → 0.0.410
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/README.md +1 -0
- package/dist/index.d.ts +81 -9
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
package/dist/index.d.ts
CHANGED
|
@@ -118,6 +118,7 @@ interface Obstacle {
|
|
|
118
118
|
width: number;
|
|
119
119
|
height: number;
|
|
120
120
|
connectedTo: Array<TraceId | NetId>;
|
|
121
|
+
isCopperPour?: boolean;
|
|
121
122
|
netIsAssignable?: boolean;
|
|
122
123
|
offBoardConnectsTo?: Array<OffBoardConnectionId>;
|
|
123
124
|
}
|
|
@@ -2149,13 +2150,6 @@ declare class SingleHighDensityRouteStitchSolver extends BaseSolver {
|
|
|
2149
2150
|
defaultTraceThickness?: number;
|
|
2150
2151
|
defaultViaDiameter?: number;
|
|
2151
2152
|
});
|
|
2152
|
-
/**
|
|
2153
|
-
* Scan `remainingHdRoutes` and find a route that has **one** end that is not
|
|
2154
|
-
* within `1e-3` of the start or end of any other route on the same layer.
|
|
2155
|
-
* That “lonely” end marks one extremity of the whole chain, which we use as
|
|
2156
|
-
* our starting segment. If no such route exists (e.g., the data form a loop),
|
|
2157
|
-
* we simply return the first route so the solver can proceed.
|
|
2158
|
-
*/
|
|
2159
2153
|
getDisjointedRoute(): {
|
|
2160
2154
|
firstRoute: HighDensityIntraNodeRoute$1;
|
|
2161
2155
|
};
|
|
@@ -4824,6 +4818,84 @@ declare class Pipeline4HighDensityRepairSolver extends BaseSolver {
|
|
|
4824
4818
|
visualize(): GraphicsObject;
|
|
4825
4819
|
}
|
|
4826
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
|
+
|
|
4827
4899
|
interface CapacityMeshSolverOptions$1 {
|
|
4828
4900
|
capacityDepth?: number;
|
|
4829
4901
|
targetMinCapacity?: number;
|
|
@@ -4850,7 +4922,7 @@ declare class AutoroutingPipelineSolver4_TinyHypergraph extends BaseSolver {
|
|
|
4850
4922
|
colorMap: Record<string, string>;
|
|
4851
4923
|
highDensityRouteSolver?: HighDensitySolver;
|
|
4852
4924
|
highDensityRepairSolver?: Pipeline4HighDensityRepairSolver;
|
|
4853
|
-
highDensityStitchSolver?:
|
|
4925
|
+
highDensityStitchSolver?: MultipleHighDensityRouteStitchSolver3;
|
|
4854
4926
|
singleLayerNodeMerger?: SingleLayerNodeMergerSolver;
|
|
4855
4927
|
strawSolver?: StrawSolver;
|
|
4856
4928
|
deadEndSolver?: DeadEndSolver;
|
|
@@ -4876,7 +4948,7 @@ declare class AutoroutingPipelineSolver4_TinyHypergraph extends BaseSolver {
|
|
|
4876
4948
|
capacityEdges: CapacityMeshEdge[] | null;
|
|
4877
4949
|
highDensityNodePortPoints?: NodeWithPortPoints[];
|
|
4878
4950
|
cacheProvider: CacheProvider | null;
|
|
4879
|
-
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>)[];
|
|
4880
4952
|
constructor(srj: SimpleRouteJson, opts?: CapacityMeshSolverOptions$1);
|
|
4881
4953
|
getConstructorParams(): readonly [SimpleRouteJson, CapacityMeshSolverOptions$1];
|
|
4882
4954
|
currentPipelineStepIndex: number;
|