ui: improved angled edges and new style of aggregation
* added different routing options for horizontal, vertical or any * added different pivot options to connect in the middle or at thirds * changed aggregation to angled edge with thickness logarithmic to weight * aggregation to pivot at middle and route any direction * aggregation weight displayed in tooltip * inheritance to route vertical
This commit is contained in:
@@ -433,8 +433,14 @@ GraphViewStyle::EdgeStyle GraphViewStyle::getStyleForEdgeType(Edge::EdgeType typ
|
||||
switch (type)
|
||||
{
|
||||
case Edge::EDGE_AGGREGATION:
|
||||
style.isStraight = true;
|
||||
style.width = 4;
|
||||
style.width = 2;
|
||||
style.arrowLength = 7;
|
||||
style.arrowWidth = 10;
|
||||
style.originOffset.x = 22;
|
||||
style.targetOffset.x = 22;
|
||||
style.originOffset.y = 0;
|
||||
style.targetOffset.y = 0;
|
||||
style.verticalOffset = 0;
|
||||
style.zValue = isActive ? -2 : -5;
|
||||
break;
|
||||
case Edge::EDGE_CALL:
|
||||
@@ -452,6 +458,7 @@ GraphViewStyle::EdgeStyle GraphViewStyle::getStyleForEdgeType(Edge::EdgeType typ
|
||||
style.arrowWidth = 14;
|
||||
style.arrowClosed = true;
|
||||
style.targetOffset.x = 34;
|
||||
style.zValue = isActive ? -1 : -3;
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user