Highlight matching transactions in the block visualizations

This commit is contained in:
Mononaut
2023-07-12 10:11:04 +09:00
parent cff2022baf
commit e9c618849d
5 changed files with 74 additions and 2 deletions

View File

@@ -215,6 +215,10 @@ export default class BlockScene {
this.animateUntil = Math.max(this.animateUntil, tx.setHover(value));
}
setHighlight(tx: TxView, value: boolean): void {
this.animateUntil = Math.max(this.animateUntil, tx.setHighlight(value));
}
private init({ width, height, resolution, blockLimit, orientation, flip, vertexArray, highlighting, pixelAlign }:
{ width: number, height: number, resolution: number, blockLimit: number,
orientation: string, flip: boolean, vertexArray: FastVertexArray, highlighting: boolean, pixelAlign: boolean }