Animate mempool block viz reversal
This commit is contained in:
		
							parent
							
								
									d07bf30737
								
							
						
					
					
						commit
						21db64b2a5
					
				@ -46,18 +46,9 @@ export default class BlockScene {
 | 
				
			|||||||
    this.orientation = orientation;
 | 
					    this.orientation = orientation;
 | 
				
			||||||
    this.flip = flip;
 | 
					    this.flip = flip;
 | 
				
			||||||
    this.dirty = true;
 | 
					    this.dirty = true;
 | 
				
			||||||
    const startTime = performance.now();
 | 
					    if (this.initialised && this.scene) {
 | 
				
			||||||
    Object.values(this.txs).forEach(txView => {
 | 
					      this.updateAll(performance.now(), 50);
 | 
				
			||||||
      this.saveGridToScreenPosition(txView);
 | 
					    }
 | 
				
			||||||
      this.applyTxUpdate(txView, {
 | 
					 | 
				
			||||||
        display: {
 | 
					 | 
				
			||||||
          position: txView.screenPosition,
 | 
					 | 
				
			||||||
          color: txView.getColor()
 | 
					 | 
				
			||||||
        },
 | 
					 | 
				
			||||||
        duration: 0
 | 
					 | 
				
			||||||
      });
 | 
					 | 
				
			||||||
      this.setTxOnScreen(txView, startTime, 0);
 | 
					 | 
				
			||||||
    });
 | 
					 | 
				
			||||||
  }
 | 
					  }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  // Destroy the current layout and clean up graphics sprites without any exit animation
 | 
					  // Destroy the current layout and clean up graphics sprites without any exit animation
 | 
				
			||||||
 | 
				
			|||||||
@ -128,7 +128,7 @@ h1 {
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
.time-ltr .next-previous-blocks {
 | 
					.time-ltr .next-previous-blocks {
 | 
				
			||||||
  .nav-arrow {
 | 
					  .nav-arrow {
 | 
				
			||||||
    transform: rotate(180deg);
 | 
					    transform: scaleX(-1);
 | 
				
			||||||
  }
 | 
					  }
 | 
				
			||||||
  .nav-arrow.next {
 | 
					  .nav-arrow.next {
 | 
				
			||||||
    order: 2;
 | 
					    order: 2;
 | 
				
			||||||
 | 
				
			|||||||
@ -34,7 +34,6 @@
 | 
				
			|||||||
  position: absolute;
 | 
					  position: absolute;
 | 
				
			||||||
  top: 0px;
 | 
					  top: 0px;
 | 
				
			||||||
  left: 40px;
 | 
					  left: 40px;
 | 
				
			||||||
  transition: left 2s;
 | 
					 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
.block-body {
 | 
					.block-body {
 | 
				
			||||||
 | 
				
			|||||||
@ -94,10 +94,10 @@
 | 
				
			|||||||
  outline: none;
 | 
					  outline: none;
 | 
				
			||||||
  margin: 0;
 | 
					  margin: 0;
 | 
				
			||||||
  padding: 0;
 | 
					  padding: 0;
 | 
				
			||||||
  transition: transform 1s;
 | 
					 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
.blockchain-wrapper.ltr-transition .blocks-wrapper {
 | 
					.blockchain-wrapper.ltr-transition .blocks-wrapper,
 | 
				
			||||||
 | 
					.blockchain-wrapper.ltr-transition .time-toggle {
 | 
				
			||||||
  transition: transform 1s;
 | 
					  transition: transform 1s;
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user