Skip to content

Commit fbc1b59

Browse files
committed
forma
1 parent 4496fd6 commit fbc1b59

File tree

2 files changed

+13
-7
lines changed

2 files changed

+13
-7
lines changed

lib/HyperGraphPartialRippingSolver.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
import type { Connection, HyperGraph, SerializedConnection } from "./types"
2-
import type { Candidate, Region, RegionPort, SerializedHyperGraph } from "./types"
2+
import type {
3+
Candidate,
4+
Region,
5+
RegionPort,
6+
SerializedHyperGraph,
7+
} from "./types"
38
import { HyperGraphSolver } from "./HyperGraphSolver"
49

510
export type HyperGraphPartialRippingInput = {

tests/hypergraph-partial-ripping.test.ts

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -154,8 +154,7 @@ const renderSvg = (results: {
154154
{ label: "thresholdTwo", items: results.thresholdTwo },
155155
]
156156

157-
const height =
158-
topPadding + rows.length * rowHeight + (rows.length - 1) * gap
157+
const height = topPadding + rows.length * rowHeight + (rows.length - 1) * gap
159158

160159
let y = topPadding
161160
const bars = rows
@@ -193,10 +192,12 @@ test("hypergraph partial ripping defers ripping until threshold", () => {
193192
}
194193

195194
const svg = renderSvg({
196-
thresholdZero: results.thresholdZero.map(({ connectionId, requiredRip }) => ({
197-
connectionId,
198-
requiredRip,
199-
})),
195+
thresholdZero: results.thresholdZero.map(
196+
({ connectionId, requiredRip }) => ({
197+
connectionId,
198+
requiredRip,
199+
}),
200+
),
200201
thresholdTwo: results.thresholdTwo.map(({ connectionId, requiredRip }) => ({
201202
connectionId,
202203
requiredRip,

0 commit comments

Comments
 (0)