Skip to content
Snippets Groups Projects
Commit 1f48be0a authored by Xiao Gui's avatar Xiao Gui Committed by xgui3783
Browse files

chore: remove throttletime for updating colour map.

Should have been debounce, and the behavious is weird
parent 746e26cf
No related branches found
No related tags found
No related merge requests found
......@@ -712,7 +712,7 @@ export class NehubaViewerUnit implements AfterViewInit,OnDestroy{
if(this._s1$)this._s1$.unsubscribe()
this._s1$ = this.nehubaViewer.getShownSegmentsObservable({
name : this.parcellationId
}).throttleTime(100).subscribe(arrayIdx=>this.updateColorMap(arrayIdx))
}).subscribe(arrayIdx=>this.updateColorMap(arrayIdx))
}
private getRgb(labelIndex:number,rgb?:number[]):{red:number,green:number,blue:number}{
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment