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