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

housekeeping

parent f5724f18
No related branches found
No related tags found
No related merge requests found
......@@ -332,6 +332,9 @@ export class AtlasViewer implements OnDestroy, OnInit, AfterViewInit {
this.pluginService.appendSrc = (src: HTMLElement) => this.rd2.appendChild(document.head, src)
}
/**
* perhaps move this to constructor?
*/
meetsRequirements() {
const canvas = document.createElement('canvas')
......@@ -386,13 +389,6 @@ export class AtlasViewer implements OnDestroy, OnInit, AfterViewInit {
}) as NgLayerInterface)
}
/* obsolete soon */
manualPanelToggle(show: boolean) {
this.store.dispatch({
type: show ? OPEN_SIDE_PANEL : CLOSE_SIDE_PANEL
})
}
rafId : number | null
panelAnimationFlag(flag:boolean){
......@@ -411,12 +407,6 @@ export class AtlasViewer implements OnDestroy, OnInit, AfterViewInit {
}
}
// clearDedicatedView() {
// this.store.dispatch({
// type: UNLOAD_DEDICATED_LAYER
// })
// }
toggleSidePanel(panelName:string){
this.store.dispatch({
type : TOGGLE_SIDE_PANEL,
......
......@@ -3,8 +3,7 @@
<layout-mainside
[showSide] = "false"
[overlay] = "false"
(panelAnimationFlag) = "panelAnimationFlag($event)"
(panelShowStateChanged) = "manualPanelToggle($event)">
(panelAnimationFlag) = "panelAnimationFlag($event)">
<div maincontent>
<ui-nehuba-container>
</ui-nehuba-container>
......
......@@ -35,6 +35,7 @@ export class AtlasViewerURLService{
scan((acc,val)=>Object.assign({},acc,val),{})
)
/* services has no ngOnInit lifecycle */
this.subscriptions()
}
......@@ -92,6 +93,7 @@ export class AtlasViewerURLService{
})
}
/* TODO deprecated. keep for backwards compatiblity? */
const dedicatedView = searchparams.get('dedicatedView')
if(dedicatedView){
this.store.dispatch({
......@@ -136,6 +138,7 @@ export class AtlasViewerURLService{
_[key] = state[key]
}
}else{
/* TODO dedicatedView is decprecated */
if(key === 'dedicatedView'){
_[key] = null
}
......
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