display refactoring

This commit is contained in:
azykov@mail.ru
2026-09-03 11:52:44 +03:00
parent 51f9d44378
commit 557d22517a
10 changed files with 196 additions and 73 deletions
+3 -3
View File
@@ -4,8 +4,8 @@ import { Behaviour } from "../engine/behaviours/base";
const elk = new ELK();
const UNIT_WIDTH = 100;
const NODE_HEIGHT = 90;
const UNIT_WIDTH = 200;
const NODE_HEIGHT = 150;
export type GraphNode = {
position: { x: number, y: number };
@@ -21,7 +21,7 @@ export async function build2dNodes(units: Unit[], area: { width: number, height:
layoutOptions: {
"elk.algorithm": "layered",
"elk.direction": "LEFT",
"elk.spacing.nodeNode": "60",
"elk.spacing.nodeNode": "100",
"elk.layered.spacing.nodeNodeBetweenLayers": "100",
},
children: units.map((unit) => ({