feat(app): graphs draw stages in one row with Failure and Success below, as the web and TUI
This commit is contained in:
@@ -3,9 +3,8 @@ import 'package:flutter/material.dart';
|
||||
|
||||
import '../../../core/api_gateway.dart';
|
||||
import '../domain/graph_definition.dart';
|
||||
import '../layout/graph_node_layout.dart';
|
||||
import '../layout/layout_models.dart';
|
||||
import '../routing/graph_edge_routing.dart';
|
||||
import '../layout/linear_graph_layout.dart';
|
||||
import '../routing/route_models.dart';
|
||||
import '../viewport/graph_expanded_view.dart';
|
||||
import '../viewport/graph_viewport.dart';
|
||||
@@ -103,17 +102,12 @@ class _DefinitionGraphViewState extends State<DefinitionGraphView> {
|
||||
height: size.height,
|
||||
);
|
||||
}
|
||||
final layout = layoutGraphNodes(
|
||||
// The web's linear drawing: stages in one row, the ends below it.
|
||||
final (layout, routing) = layoutLinearGraph(
|
||||
nodes: nodes,
|
||||
edges: edges,
|
||||
extents: extents,
|
||||
config: graphCanvasLayoutConfig(labelExtents.values),
|
||||
);
|
||||
final routing = routeGraphEdges(
|
||||
layout: layout,
|
||||
edges: edges,
|
||||
labelExtents: labelExtents,
|
||||
config: graphCanvasRoutingConfig(),
|
||||
);
|
||||
return (layout, routing);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user