modifier-form #8

Merged
SethTrowbridge merged 11 commits from modifier-form into master 2021-05-29 17:11:18 -04:00
Showing only changes of commit d59857ab2b - Show all commits

View File

@ -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 => let PivotForm = props =>
{ {