From 6f64954ee084f65ce542999e811e9e305bec8236 Mon Sep 17 00:00:00 2001 From: Victor Giers Date: Wed, 13 May 2026 13:58:17 +0200 Subject: [PATCH] auto-git: [change] src/app/App.tsx [change] tests/domain/terrains.test.ts [change] tests/unit/terrain-foundation.integration.test.tsx --- src/app/App.tsx | 48 +++++---- tests/domain/terrains.test.ts | 100 ++++-------------- .../terrain-foundation.integration.test.tsx | 3 +- 3 files changed, 50 insertions(+), 101 deletions(-) diff --git a/src/app/App.tsx b/src/app/App.tsx index 911564c2..63e6327a 100644 --- a/src/app/App.tsx +++ b/src/app/App.tsx @@ -2816,11 +2816,12 @@ export function App({ terrainList ); const selectedPath = getSelectedPath(editorState.selection, pathList); - const splineCorridorJunctionCandidates = detectSplineCorridorJunctionCandidates({ - paths: pathList, - junctions: editorState.document.splineCorridorJunctions, - terrains: terrainList.filter((terrain) => terrain.enabled) - }); + const splineCorridorJunctionCandidates = + detectSplineCorridorJunctionCandidates({ + paths: pathList, + junctions: editorState.document.splineCorridorJunctions, + terrains: terrainList.filter((terrain) => terrain.enabled) + }); const selectedPathJunctionCandidates = selectedPath === null ? [] @@ -9650,10 +9651,7 @@ export function App({ const handleTerrainPaintLayerChange = (value: string) => { setActiveTerrainPaintLayerIndex( - clampTerrainPaintLayerIndex( - Number(value), - selectedTerrain?.layers.length - ) + clampTerrainPaintLayerIndex(Number(value), selectedTerrain?.layers.length) ); }; @@ -9994,7 +9992,9 @@ export function App({ const handleDeleteSplineCorridorJunction = (junctionId: string) => { try { - store.executeCommand(createDeleteSplineCorridorJunctionCommand(junctionId)); + store.executeCommand( + createDeleteSplineCorridorJunctionCommand(junctionId) + ); setStatusMessage("Deleted spline corridor junction."); } catch (error) { setStatusMessage(getErrorMessage(error)); @@ -21491,7 +21491,10 @@ export function App({
{selectedTerrain.layers.map((layer, layerIndex) => (
-