From 9d31fd811344d2fe27ea3c48c688546f452d9c3e Mon Sep 17 00:00:00 2001 From: TreetopFlyer Date: Mon, 24 May 2021 22:52:55 -0400 Subject: [PATCH] ModificationPull working --- components.js | 15 ------ index.html | 126 +++++++++++++------------------------------------- 2 files changed, 31 insertions(+), 110 deletions(-) diff --git a/components.js b/components.js index c15952d..b8ce0ba 100644 --- a/components.js +++ b/components.js @@ -43,22 +43,7 @@ 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 => { diff --git a/index.html b/index.html index 26205e4..6a6bd84 100755 --- a/index.html +++ b/index.html @@ -168,6 +168,35 @@ var N = }; + + + + \ No newline at end of file