further improved new node view

This commit is contained in:
itsmattkc
2021-11-12 11:06:06 -08:00
parent 0c92bc3f08
commit 3c6bc80c8f
7 changed files with 124 additions and 52 deletions
+10
View File
@@ -44,6 +44,16 @@ public:
}
}
static bool IsFlowVertical(FlowDirection dir)
{
return dir == kTopToBottom || dir == kBottomToTop;
}
static bool IsFlowHorizontal(FlowDirection dir)
{
return dir == kLeftToRight || dir == kRightToLeft;
}
static bool DirectionsAreOpposing(FlowDirection a, FlowDirection b) {
return ((a == NodeViewCommon::kLeftToRight && b == NodeViewCommon::kRightToLeft)
|| (a == NodeViewCommon::kRightToLeft && b == NodeViewCommon::kLeftToRight)