Skip to content
Snippets Groups Projects
Commit 4e2f3c7d authored by fsdavid's avatar fsdavid
Browse files

fix lint

parent cb0a9a0c
No related branches found
No related tags found
No related merge requests found
...@@ -93,13 +93,13 @@ export class AtlasLayerSelector implements OnInit { ...@@ -93,13 +93,13 @@ export class AtlasLayerSelector implements OnInit {
@ViewChild('expandedSelectorCard', {read: ElementRef}) expandedSelectorCard: ElementRef<HTMLElement> @ViewChild('expandedSelectorCard', {read: ElementRef}) expandedSelectorCard: ElementRef<HTMLElement>
public quickTourData = { public quickTourData = {
order: 4, order: 4,
description: 'This is the atlas layer browser. If an atlas supports multiple template spaces or parcellation maps, you will find them here.', description: 'This is the atlas layer browser. If an atlas supports multiple template spaces or parcellation maps, you will find them here.',
position: 'top-right', position: 'top-right',
overwritePos: { overwritePos: {
collapsed: {arrow: 'arrow2', arrowPosition: 'left', arrowAlign: 'bottom', arrowMargin: {left: -20}}, collapsed: {arrow: 'arrow2', arrowPosition: 'left', arrowAlign: 'bottom', arrowMargin: {left: -20}},
expanded: {arrow: 'arrow5', arrowPosition: 'left', arrowAlign: 'center', left: this.expandedSelectorCard?.nativeElement.offsetWidth, margin: '-150px 0 0 0'} expanded: {arrow: 'arrow5', arrowPosition: 'left', arrowAlign: 'center', left: this.expandedSelectorCard?.nativeElement.offsetWidth, margin: '-150px 0 0 0'}
} }
} }
public quickTourPosition$: BehaviorSubject<any> = new BehaviorSubject(this.quickTourData.overwritePos.collapsed) public quickTourPosition$: BehaviorSubject<any> = new BehaviorSubject(this.quickTourData.overwritePos.collapsed)
...@@ -158,8 +158,8 @@ export class AtlasLayerSelector implements OnInit { ...@@ -158,8 +158,8 @@ export class AtlasLayerSelector implements OnInit {
toggleSelector() { toggleSelector() {
this.selectorExpanded = !this.selectorExpanded this.selectorExpanded = !this.selectorExpanded
this.quickTourData.overwritePos.expanded.left = this.expandedSelectorCard?.nativeElement.offsetWidth this.quickTourData.overwritePos.expanded.left = this.expandedSelectorCard?.nativeElement.offsetWidth
this.quickTourPosition$.next(this.selectorExpanded? this.quickTourData.overwritePos.expanded : this.quickTourData.overwritePos.collapsed) this.quickTourPosition$.next(this.selectorExpanded? this.quickTourData.overwritePos.expanded : this.quickTourData.overwritePos.collapsed)
} }
selectTemplateWithName(template) { selectTemplateWithName(template) {
......
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