Skip to content
Snippets Groups Projects
Commit 48521289 authored by Xiao Gui's avatar Xiao Gui
Browse files

chore: cleaning up

parent 1c1dc2c7
No related branches found
No related tags found
No related merge requests found
...@@ -16,7 +16,7 @@ export class AtlasViewerConstantsServices{ ...@@ -16,7 +16,7 @@ export class AtlasViewerConstantsServices{
public ngLandmarkLayerName = 'spatial landmark layer' public ngLandmarkLayerName = 'spatial landmark layer'
public ngUserLandmarkLayerName = 'user landmark layer' public ngUserLandmarkLayerName = 'user landmark layer'
public citationToastDuration = 7000 public citationToastDuration = 7e3
/** /**
* optimized for nehubaConfig.layout.useNehubaPerspective.fixedZoomPerspectiveSlices * optimized for nehubaConfig.layout.useNehubaPerspective.fixedZoomPerspectiveSlices
...@@ -26,7 +26,10 @@ export class AtlasViewerConstantsServices{ ...@@ -26,7 +26,10 @@ export class AtlasViewerConstantsServices{
*/ */
public nehubaLandmarkConstant = 1e-8 public nehubaLandmarkConstant = 1e-8
private TIMEOUT = 4000 /**
* Timeout can be longer, since configs are lazy loaded.
*/
private TIMEOUT = 16000
/** /**
* raceFetch * raceFetch
......
...@@ -121,6 +121,10 @@ export interface NgViewerAction extends Action{ ...@@ -121,6 +121,10 @@ export interface NgViewerAction extends Action{
forceShowSegment : boolean forceShowSegment : boolean
} }
/**
* TODO unused function, remove
*/
const mapLayer = (existingLayer:NgLayerInterface, incomingLayer:NgLayerInterface):NgLayerInterface => { const mapLayer = (existingLayer:NgLayerInterface, incomingLayer:NgLayerInterface):NgLayerInterface => {
return incomingLayer.mixability === 'base' return incomingLayer.mixability === 'base'
? existingLayer ? existingLayer
......
...@@ -31,7 +31,7 @@ export class AtlasBanner implements OnDestroy, OnInit { ...@@ -31,7 +31,7 @@ export class AtlasBanner implements OnDestroy, OnInit {
public selectedTemplate: any public selectedTemplate: any
public selectedParcellation: any public selectedParcellation: any
public selectedRegions: any[] = [] public selectedRegions: any[] = []
private navigation: { position: [number, number, number] } = { position: [0, 0, 0] } // private navigation: { position: [number, number, number] } = { position: [0, 0, 0] }
private subscriptions: Subscription[] = [] private subscriptions: Subscription[] = []
...@@ -118,13 +118,13 @@ export class AtlasBanner implements OnDestroy, OnInit { ...@@ -118,13 +118,13 @@ export class AtlasBanner implements OnDestroy, OnInit {
).subscribe(arr => arr.length > 1 ? this.doubleClick(arr[0]) : this.singleClick(arr[0])) ).subscribe(arr => arr.length > 1 ? this.doubleClick(arr[0]) : this.singleClick(arr[0]))
) )
this.subscriptions.push( // this.subscriptions.push(
this.store.pipe( // this.store.pipe(
select('viewerState'), // select('viewerState'),
safeFilter('navigation'), // safeFilter('navigation'),
map(obj => obj.navigation) // map(obj => obj.navigation)
).subscribe((navigation: any) => this.navigation = navigation) // ).subscribe((navigation: any) => this.navigation = navigation)
) // )
} }
ngOnDestroy() { ngOnDestroy() {
...@@ -293,4 +293,3 @@ export class AtlasBanner implements OnDestroy, OnInit { ...@@ -293,4 +293,3 @@ export class AtlasBanner implements OnDestroy, OnInit {
return this.constantService.mobile return this.constantService.mobile
} }
} }
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