multiblock goggles
This commit is contained in:
parent
580ac889df
commit
2e665d57ac
@ -179,13 +179,15 @@ export class BlockOverviewMultiComponent implements AfterViewInit, OnDestroy, On
|
||||
|
||||
setFilterFlags(goggle?: ActiveFilter): void {
|
||||
this.filterMode = goggle?.mode || this.filterMode;
|
||||
this.gradientMode = goggle?.gradient || this.gradientMode;
|
||||
this.gradientMode = goggle?.gradient || 'fee'; // this.gradientMode;
|
||||
this.activeFilterFlags = goggle?.filters ? toFlags(goggle.filters) : this.filterFlags;
|
||||
for (const scene of this.scenes) {
|
||||
if (this.activeFilterFlags != null && this.filtersAvailable) {
|
||||
scene.setColorFunction(this.getFilterColorFunction(this.activeFilterFlags, this.gradientMode));
|
||||
} else {
|
||||
scene.setColorFunction(this.getFilterColorFunction(0n, this.gradientMode));
|
||||
if (scene) {
|
||||
if (this.activeFilterFlags != null && this.filtersAvailable) {
|
||||
scene.setColorFunction(this.getFilterColorFunction(this.activeFilterFlags, this.gradientMode));
|
||||
} else {
|
||||
scene.setColorFunction(this.getFilterColorFunction(0n, this.gradientMode));
|
||||
}
|
||||
}
|
||||
}
|
||||
this.start();
|
||||
|
@ -8,6 +8,7 @@
|
||||
[blockLimit]="stateService.blockVSize"
|
||||
[orientation]="'left'"
|
||||
[flip]="true"
|
||||
[showFilters]="true"
|
||||
[animationDuration]="animationDuration"
|
||||
[animationOffset]="animationOffset"
|
||||
[disableSpinner]="true"
|
||||
|
@ -103,6 +103,8 @@ export class EightMempoolComponent implements OnInit, OnDestroy {
|
||||
this.websocketService.want(['blocks', 'mempool-blocks']);
|
||||
this.network = this.stateService.network;
|
||||
|
||||
this.stateService.activeGoggles$.next({ mode: 'and', filters: [], gradient: 'fee' });
|
||||
|
||||
this.blockSub = this.stateService.mempoolBlockUpdate$.subscribe((update) => {
|
||||
// process update
|
||||
if (isMempoolDelta(update)) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user