diff --git a/components.js b/components.js index 5d57125..c15952d 100644 --- a/components.js +++ b/components.js @@ -43,6 +43,23 @@ let Styles = { ` }; +let ModificationPull = (inModifier) => +{ + let getDAG = inModifier => N.Step(inModifier, "ModifyAt")[0]; + let getMod = inBranch => N.Step(inBranch, "ModifyAt", false)[0]; + let collect = inArray => n => n.Meta.Tweak.forEach((t, i)=>inArray[i] += t;); + + let dag = getDAG(inModifier); + let totalScale = []; + let totalAdd = []; + + N.ID.Walk++; + N.Walk(collect(totalScale), dag, "ModifyDown", false); + N.Walk(collect(totalScale), dag, "ModifyAt", false); + N.Walk(collect(totalAdd), dag, "ModifyUp", false); + N.Walk(collect(totalAdd), dag, "ModifyOut", false); +}; + let PivotForm = props => {