refactor(subgraphs): calculate z for child nodes

This commit is contained in:
moklick
2021-11-18 17:57:45 +01:00
parent fe9c1f02dc
commit 7ffad7770b
5 changed files with 16 additions and 25 deletions
+2
View File
@@ -38,3 +38,5 @@ export const boxToRect = ({ x, y, x2, y2 }: Box): Rect => ({
export const getBoundsofRects = (rect1: Rect, rect2: Rect): Rect =>
boxToRect(getBoundsOfBoxes(rectToBox(rect1), rectToBox(rect2)));
export const isNumeric = (n: any): n is number => !isNaN(n) && isFinite(n);