From 4e2f3c7d2689917aafa083753664f60575e73aab Mon Sep 17 00:00:00 2001 From: fsdavid <daviti1@mail.com> Date: Thu, 25 Mar 2021 23:28:32 +0100 Subject: [PATCH] fix lint --- .../atlasLayerSelector.component.ts | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/src/atlasComponents/uiSelectors/atlasLayerSelector/atlasLayerSelector.component.ts b/src/atlasComponents/uiSelectors/atlasLayerSelector/atlasLayerSelector.component.ts index 260cb31be..a7256da6d 100644 --- a/src/atlasComponents/uiSelectors/atlasLayerSelector/atlasLayerSelector.component.ts +++ b/src/atlasComponents/uiSelectors/atlasLayerSelector/atlasLayerSelector.component.ts @@ -93,13 +93,13 @@ export class AtlasLayerSelector implements OnInit { @ViewChild('expandedSelectorCard', {read: ElementRef}) expandedSelectorCard: ElementRef<HTMLElement> public quickTourData = { - order: 4, - 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', - overwritePos: { - 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'} - } + order: 4, + 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', + overwritePos: { + 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'} + } } public quickTourPosition$: BehaviorSubject<any> = new BehaviorSubject(this.quickTourData.overwritePos.collapsed) @@ -158,8 +158,8 @@ export class AtlasLayerSelector implements OnInit { toggleSelector() { this.selectorExpanded = !this.selectorExpanded - this.quickTourData.overwritePos.expanded.left = this.expandedSelectorCard?.nativeElement.offsetWidth - this.quickTourPosition$.next(this.selectorExpanded? this.quickTourData.overwritePos.expanded : this.quickTourData.overwritePos.collapsed) + this.quickTourData.overwritePos.expanded.left = this.expandedSelectorCard?.nativeElement.offsetWidth + this.quickTourPosition$.next(this.selectorExpanded? this.quickTourData.overwritePos.expanded : this.quickTourData.overwritePos.collapsed) } selectTemplateWithName(template) { -- GitLab