mirror of
https://github.com/seigler/dash-visualizer
synced 2025-07-27 01:36:10 +00:00
publish: ⚡ Change main live canvas to act like a mempool
generated from commit 66283fcfe2
This commit is contained in:
parent
44f32dc49c
commit
12a0a5a4f3
2 changed files with 1 additions and 8 deletions
|
@ -19108,13 +19108,6 @@ function () {
|
||||||
paint.style.setProperty('--size', Math.log(1 + tx.value) / Math.log(2));
|
paint.style.setProperty('--size', Math.log(1 + tx.value) / Math.log(2));
|
||||||
paint.style.setProperty('--rotation', tx.rotation * 360 + 'deg');
|
paint.style.setProperty('--rotation', tx.rotation * 360 + 'deg');
|
||||||
paint.style.setProperty('--color', tx.color);
|
paint.style.setProperty('--color', tx.color);
|
||||||
|
|
||||||
if (addToMempool && _this3.mempoolRefs.unshift(paint) > 200) {
|
|
||||||
var toDelete = _this3.mempoolRefs.pop();
|
|
||||||
|
|
||||||
toDelete.remove();
|
|
||||||
}
|
|
||||||
|
|
||||||
target.appendChild(paint);
|
target.appendChild(paint);
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
File diff suppressed because one or more lines are too long
Loading…
Add table
Add a link
Reference in a new issue