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