Compare commits
	
		
			No commits in common. "490019a27ba6722b8c04521e9fcf665637e0d36a" and "9dae4a2a9063c24d8380b31339170962c9f8f86c" have entirely different histories.
		
	
	
		
			490019a27b
			...
			9dae4a2a90
		
	
		
							
								
								
									
										13
									
								
								index.html
									
									
									
									
									
								
							
							
						
						
									
										13
									
								
								index.html
									
									
									
									
									
								
							@ -179,9 +179,7 @@ var Pivot =
 | 
			
		||||
    {        
 | 
			
		||||
        for(let i=0; i<inColumnNames.length; i++)
 | 
			
		||||
        {
 | 
			
		||||
            let columnNode = N.Create({Label:inColumnNames[i], Index:i});
 | 
			
		||||
            N.Connect(Pivot.Schema, columnNode, inColumnTypes[i]);
 | 
			
		||||
            N.Connect(Pivot.Schema, columnNode, "all");
 | 
			
		||||
            N.Connect(Pivot.Schema, N.Create({Label:inColumnNames[i], Index:i}), inColumnTypes[i]);
 | 
			
		||||
        }
 | 
			
		||||
        Pivot.Leaves = inRows.map(r => N.Create({Row:r}));
 | 
			
		||||
        Pivot.Init = ()=>{};
 | 
			
		||||
@ -389,21 +387,20 @@ let ElForm = props =>
 | 
			
		||||
 | 
			
		||||
    let used = N.Step(Pivot.Proto, "used")||[];
 | 
			
		||||
    let unused = N.Step(Pivot.Schema, "label").filter( columnLabel => !N.Step(columnLabel, "used", false) );
 | 
			
		||||
    let indiciesPivot = used.map(node=>node.Meta.Index);
 | 
			
		||||
    let indiciesSum = (N.Step(Pivot.Schema, "sum")||[]).map(n=>n.Meta.Index);
 | 
			
		||||
    let indicies = used.map(node=>node.Meta.Index);
 | 
			
		||||
 | 
			
		||||
    var action;
 | 
			
		||||
    if(indiciesPivot.length)
 | 
			
		||||
    if(indicies.length)
 | 
			
		||||
    {
 | 
			
		||||
        action = h("div", null, [
 | 
			
		||||
            h("span", null, "Build"),
 | 
			
		||||
            h("button", {onClick:e=>
 | 
			
		||||
            {
 | 
			
		||||
                N.Disconnect(Pivot.Proto, null, "used");
 | 
			
		||||
                Pivot.Create(indiciesPivot, indiciesSum);
 | 
			
		||||
                Pivot.Create(indicies, [3, 4]);
 | 
			
		||||
                Render();
 | 
			
		||||
            }
 | 
			
		||||
            }, "Create Pivot")
 | 
			
		||||
            }, indicies)
 | 
			
		||||
        ]);
 | 
			
		||||
    }
 | 
			
		||||
    else
 | 
			
		||||
 | 
			
		||||
		Loading…
	
		Reference in New Issue
	
	Block a user