Animate mempool block viz reversal

This commit is contained in:
Mononaut
2022-09-30 00:42:02 +00:00
parent d07bf30737
commit 21db64b2a5
4 changed files with 6 additions and 16 deletions

View File

@@ -46,18 +46,9 @@ export default class BlockScene {
this.orientation = orientation;
this.flip = flip;
this.dirty = true;
const startTime = performance.now();
Object.values(this.txs).forEach(txView => {
this.saveGridToScreenPosition(txView);
this.applyTxUpdate(txView, {
display: {
position: txView.screenPosition,
color: txView.getColor()
},
duration: 0
});
this.setTxOnScreen(txView, startTime, 0);
});
if (this.initialised && this.scene) {
this.updateAll(performance.now(), 50);
}
}
// Destroy the current layout and clean up graphics sprites without any exit animation