@tscircuit/rectdiff 0.0.26 → 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.
- package/dist/index.d.ts +21 -0
- package/dist/index.js +488 -160
- package/lib/RectDiffPipeline.ts +23 -0
- package/lib/solvers/AdjacentLayerContainmentMergeSolver/AdjacentLayerContainmentMergeSolver.ts +456 -0
- package/lib/solvers/OuterLayerContainmentMergeSolver/OuterLayerContainmentMergeSolver.ts +4 -1
- package/package.json +1 -1
- package/pages/bugreports/bugreport50-multi-support-layer-merge.page.tsx +19 -0
- package/tests/__snapshots__/board-outline.snap.svg +2 -2
- package/tests/outer-layer-containment-merge-solver.test.ts +73 -0
- package/tests/solver/__snapshots__/rectDiffGridSolverPipeline.snap.svg +1 -1
- package/tests/solver/both-points-equivalent/__snapshots__/both-points-equivalent.snap.svg +1 -1
- package/tests/solver/bugreport01-be84eb/__snapshots__/bugreport01-be84eb.snap.svg +1 -1
- package/tests/solver/bugreport02-bc4361/__snapshots__/bugreport02-bc4361.snap.svg +1 -1
- package/tests/solver/bugreport03-fe4a17/__snapshots__/bugreport03-fe4a17.snap.svg +1 -1
- package/tests/solver/bugreport07-d3f3be/__snapshots__/bugreport07-d3f3be.snap.svg +1 -1
- package/tests/solver/bugreport08-e3ec95/__snapshots__/bugreport08-e3ec95.snap.svg +1 -1
- package/tests/solver/bugreport09-618e09/__snapshots__/bugreport09-618e09.snap.svg +1 -1
- package/tests/solver/bugreport10-71239a/__snapshots__/bugreport10-71239a.snap.svg +1 -1
- package/tests/solver/bugreport11-b2de3c/__snapshots__/bugreport11-b2de3c.snap.svg +1 -1
- package/tests/solver/bugreport12-35ce1c/__snapshots__/bugreport12-35ce1c.snap.svg +1 -1
- package/tests/solver/bugreport13-b9a758/__snapshots__/bugreport13-b9a758.snap.svg +1 -1
- package/tests/solver/bugreport16-d95f38/__snapshots__/bugreport16-d95f38.snap.svg +1 -1
- package/tests/solver/bugreport19/__snapshots__/bugreport19.snap.svg +1 -1
- package/tests/solver/bugreport20-obstacle-clipping/__snapshots__/bugreport20-obstacle-clipping.snap.svg +1 -1
- package/tests/solver/bugreport21-board-outline/__snapshots__/bugreport21-board-outline.snap.svg +2 -2
- package/tests/solver/bugreport22-2a75ce/__snapshots__/bugreport22-2a75ce.snap.svg +1 -1
- package/tests/solver/bugreport23-LGA15x4/__snapshots__/bugreport23-LGA15x4.snap.svg +1 -1
- package/tests/solver/bugreport24-05597c/__snapshots__/bugreport24-05597c.snap.svg +1 -1
- package/tests/solver/bugreport25-4b1d55/__snapshots__/bugreport25-4b1d55.snap.svg +1 -1
- package/tests/solver/bugreport36-bf8303/__snapshots__/bugreport36-bf8303.snap.svg +1 -1
- package/tests/solver/bugreport49-634662/__snapshots__/bugreport49-634662.snap.svg +1 -1
- package/tests/solver/bugreport49-634662/bugreport49-634662.test.ts +7 -11
- package/tests/solver/bugreport50-multi-support-layer-merge/__snapshots__/bugreport50-multi-support-layer-merge.snap.svg +44 -0
- package/tests/solver/bugreport50-multi-support-layer-merge/bugreport50-multi-support-layer-merge.json +972 -0
- package/tests/solver/bugreport50-multi-support-layer-merge/bugreport50-multi-support-layer-merge.test.ts +125 -0
- package/tests/solver/interaction/__snapshots__/interaction.snap.svg +1 -1
- package/tests/solver/multi-point/__snapshots__/multi-point.snap.svg +1 -1
- package/tests/solver/no-better-path/__snapshots__/no-better-path.snap.svg +1 -1
- package/tests/solver/transitivity/__snapshots__/transitivity.snap.svg +2 -2
package/dist/index.d.ts
CHANGED
|
@@ -117,6 +117,26 @@ type RTreeRect = XYRect & {
|
|
|
117
117
|
zLayers: number[];
|
|
118
118
|
};
|
|
119
119
|
|
|
120
|
+
type AdjacentLayerContainmentMergeSolverInput = {
|
|
121
|
+
meshNodes: CapacityMeshNode[];
|
|
122
|
+
simpleRouteJson: SimpleRouteJson;
|
|
123
|
+
minFragmentArea?: number;
|
|
124
|
+
};
|
|
125
|
+
declare class AdjacentLayerContainmentMergeSolver extends BaseSolver {
|
|
126
|
+
private input;
|
|
127
|
+
private outputNodes;
|
|
128
|
+
private promotedNodeIds;
|
|
129
|
+
private residualNodeIds;
|
|
130
|
+
constructor(input: AdjacentLayerContainmentMergeSolverInput);
|
|
131
|
+
_setup(): void;
|
|
132
|
+
_step(): void;
|
|
133
|
+
private processAdjacentLayerContainmentMerges;
|
|
134
|
+
getOutput(): {
|
|
135
|
+
outputNodes: CapacityMeshNode[];
|
|
136
|
+
};
|
|
137
|
+
visualize(): GraphicsObject;
|
|
138
|
+
}
|
|
139
|
+
|
|
120
140
|
interface SegmentWithAdjacentEmptySpace {
|
|
121
141
|
parent: CapacityMeshNode;
|
|
122
142
|
start: {
|
|
@@ -390,6 +410,7 @@ declare class RectDiffPipeline extends BasePipelineSolver<RectDiffPipelineInput>
|
|
|
390
410
|
rectDiffGridSolverPipeline?: RectDiffGridSolverPipeline;
|
|
391
411
|
gapFillSolver?: GapFillSolverPipeline;
|
|
392
412
|
outerLayerContainmentMergeSolver?: OuterLayerContainmentMergeSolver;
|
|
413
|
+
adjacentLayerContainmentMergeSolver?: AdjacentLayerContainmentMergeSolver;
|
|
393
414
|
boardVoidRects: XYRect[] | undefined;
|
|
394
415
|
zIndexByName?: Map<string, number>;
|
|
395
416
|
layerNames?: string[];
|