Skip to content

Commit 5544620

Browse files
committed
format
1 parent b5c5d38 commit 5544620

16 files changed

+117
-46
lines changed

biome.json

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,13 @@
88
"indentStyle": "space"
99
},
1010
"files": {
11-
"ignore": ["cosmos-export", "dist", "package.json"]
11+
"ignore": [
12+
"cosmos-export",
13+
"dist",
14+
"package.json",
15+
"examples/assets/segmenttopoint3.json",
16+
"examples/assets/contribution-board_routes.json"
17+
]
1218
},
1319
"javascript": {
1420
"formatter": {

examples/highdensity1.fixture.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ export default () => {
3737
traceThickness: 0.15,
3838
obstacleMargin: 1,
3939
layerCount: 2,
40-
minDistBetweenEnteringPoints: 1
40+
minDistBetweenEnteringPoints: 1,
4141
})
4242

4343
// Solve the route.

examples/highdensity10.fixture.tsx

Lines changed: 24 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,30 @@ const { nodeWithPortPoints } = {
1515
connectionName: "source_trace_14",
1616
z: 0,
1717
},
18-
{ x: -15.260416666666668, y: -21.5625, connectionName: "source_trace_5", z: 0 },
19-
{ x: -17.65625, y: -22.236328125, connectionName: "source_trace_14", z: 0 },
20-
{ x: -17.65625, y: -22.01171875, connectionName: "source_trace_23", z: 0 },
21-
{ x: -17.65625, y: -21.787109375, connectionName: "source_trace_5", z: 0 },
18+
{
19+
x: -15.260416666666668,
20+
y: -21.5625,
21+
connectionName: "source_trace_5",
22+
z: 0,
23+
},
24+
{
25+
x: -17.65625,
26+
y: -22.236328125,
27+
connectionName: "source_trace_14",
28+
z: 0,
29+
},
30+
{
31+
x: -17.65625,
32+
y: -22.01171875,
33+
connectionName: "source_trace_23",
34+
z: 0,
35+
},
36+
{
37+
x: -17.65625,
38+
y: -21.787109375,
39+
connectionName: "source_trace_5",
40+
z: 0,
41+
},
2242
],
2343
center: { x: -15.859375, y: -23.359375 },
2444
width: 3.59375,

examples/highdensity11.fixture.tsx

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,18 @@ const { nodeWithPortPoints } = {
1010
portPoints: [
1111
{ x: -15.859375, y: 3.59375, connectionName: "source_trace_22", z: 0 },
1212
{ x: -14.0625, y: 5.390625, connectionName: "source_trace_1", z: 0 },
13-
{ x: -16.458333333333332, y: 7.1875, connectionName: "source_trace_1", z: 0 },
14-
{ x: -15.260416666666668, y: 7.1875, connectionName: "source_trace_22", z: 0 },
13+
{
14+
x: -16.458333333333332,
15+
y: 7.1875,
16+
connectionName: "source_trace_1",
17+
z: 0,
18+
},
19+
{
20+
x: -15.260416666666668,
21+
y: 7.1875,
22+
connectionName: "source_trace_22",
23+
z: 0,
24+
},
1525
],
1626
center: { x: -15.859375, y: 5.390625 },
1727
width: 3.59375,

examples/highdensity12.fixture.tsx

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,12 @@ const { nodeWithPortPoints } = {
88
nodeWithPortPoints: {
99
capacityMeshNodeId: "cn1047",
1010
portPoints: [
11-
{ x: -0.5059869499999792, y: 2.65625, connectionName: "source_trace_35", z: 0 },
11+
{
12+
x: -0.5059869499999792,
13+
y: 2.65625,
14+
connectionName: "source_trace_35",
15+
z: 0,
16+
},
1217
{
1318
x: -0.5059869499999792,
1419
y: 0.078125,

examples/highdensity15.fixture.tsx

Lines changed: 24 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,30 @@ export default () => (
66
nodeWithPortPoints: {
77
capacityMeshNodeId: "cn4870",
88
portPoints: [
9-
{ x: -31.2890625, y: -2.8125, connectionName: "connectivity_net424", z: 0 },
10-
{ x: -30.9375, y: -2.109375, connectionName: "connectivity_net415", z: 0 },
11-
{ x: -32.34375, y: -2.34375, connectionName: "connectivity_net415", z: 0 },
12-
{ x: -32.34375, y: -1.875, connectionName: "connectivity_net424", z: 0 },
9+
{
10+
x: -31.2890625,
11+
y: -2.8125,
12+
connectionName: "connectivity_net424",
13+
z: 0,
14+
},
15+
{
16+
x: -30.9375,
17+
y: -2.109375,
18+
connectionName: "connectivity_net415",
19+
z: 0,
20+
},
21+
{
22+
x: -32.34375,
23+
y: -2.34375,
24+
connectionName: "connectivity_net415",
25+
z: 0,
26+
},
27+
{
28+
x: -32.34375,
29+
y: -1.875,
30+
connectionName: "connectivity_net424",
31+
z: 0,
32+
},
1333
],
1434
center: { x: -31.640625, y: -2.109375 },
1535
width: 1.40625,

examples/hyperhighdensity1.fixture.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,10 @@ export default () => {
99
height: 10,
1010
portPoints: [
1111
{ connectionName: "A", x: 0, y: 0, z: 0 },
12-
{ connectionName: "B", x: 10, y: 10, z: 0 }
13-
]
12+
{ connectionName: "B", x: 10, y: 10, z: 0 },
13+
],
1414
},
15-
colorMap: { A: "red", B: "blue" }
15+
colorMap: { A: "red", B: "blue" },
1616
})
1717
return (
1818
<div>

examples/hyperhighdensity4.fixture.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -217,4 +217,4 @@ const { nodeWithPortPoints } = {
217217

218218
export default () => {
219219
return <HyperHighDensityDebugger nodeWithPortPoints={nodeWithPortPoints} />
220-
}
220+
}

examples/segmenttopoint4.fixture.tsx

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,11 @@ import SegmentOptimizerDebugger from "lib/testing/SegmentOptimizerDebugger"
22
import inputs from "./assets/segmenttopoint4.json"
33

44
export default function SegmentToPoint4Fixture() {
5-
return <SegmentOptimizerDebugger
6-
segments={inputs.segments}
7-
colorMap={inputs.colorMap}
8-
nodes={inputs.nodes}
9-
/>
5+
return (
6+
<SegmentOptimizerDebugger
7+
segments={inputs.segments}
8+
colorMap={inputs.colorMap}
9+
nodes={inputs.nodes}
10+
/>
11+
)
1012
}

lib/index.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,5 @@
11
export { CapacityMeshSolver } from "./solvers/CapacityMeshSolver/CapacityMeshSolver"
2-
export { getTunedTotalCapacity1, calculateOptimalCapacityDepth } from "./utils/getTunedTotalCapacity1"
2+
export {
3+
getTunedTotalCapacity1,
4+
calculateOptimalCapacityDepth,
5+
} from "./utils/getTunedTotalCapacity1"

0 commit comments

Comments
 (0)