diff --git a/index.html b/index.html index 5077f7b..7152f15 100644 --- a/index.html +++ b/index.html @@ -1,4 +1,5 @@
+ @@ -135,6 +144,8 @@ N.Disconnect(a, c, "parent"); var Pivot = { Leaves:{}, + Root:{}, + Init(inRows) { Pivot.Leaves = inRows.map(r => N.Create({Row:r})); @@ -189,7 +200,7 @@ var Pivot = { iterator = child => Pivot.Pivot(child, inColumnIndicies, inSumIndicies, depth+1); } - N.Flow(inParent, "Hierarchy").forEach(iterator); + N.Step(inParent, "Hierarchy").forEach(iterator); return inParent; }, Create(inColumnIndicies, inSumIndicies) @@ -205,7 +216,7 @@ var Pivot = let gatherDown = n => { N.Connect(inNode, n, "ModifyDown"); - N.Flow(n, "Hierarchy").length == 0 ? leaves.push(n) : null; + N.Step(n, "Hierarchy").length == 0 ? leaves.push(n) : null; }; let gatherOut = n => N.Connect(inNode, n, "ModifyOut"); @@ -225,9 +236,11 @@ var Pivot =