Skip to content

Commit 0654678

Browse files
MKirovaMKirova
authored andcommitted
chore(*): Fix lint.
1 parent fdebe30 commit 0654678

File tree

1 file changed

+5
-9
lines changed

1 file changed

+5
-9
lines changed

src/app/docmanager-grid/docmanager-grid.sample.ts

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
import { AfterViewInit, ChangeDetectorRef, Component, ComponentFactoryResolver, ElementRef, Renderer2, OnDestroy, OnInit, DoCheck, TemplateRef, ViewChild, ViewContainerRef, ViewEncapsulation } from '@angular/core';
2-
import { AbsoluteScrollStrategy, ConnectedPositioningStrategy, DefaultSortingStrategy, GridColumnDataType, IGX_BUTTON_GROUP_DIRECTIVES, IGX_GRID_DIRECTIVES, IgxColumnComponent, IgxGridComponent, IgxIconModule, IgxOverlayOutletDirective, IgxSelectComponent, IgxSelectModule, IgxSwitchModule, OverlaySettings, SortingDirection } from 'igniteui-angular';
3-
import { IgcDockManagerLayout, IgcDockManagerPaneType, IgcSplitPane, IgcSplitPaneOrientation } from 'igniteui-dockmanager';
2+
import { AbsoluteScrollStrategy, ConnectedPositioningStrategy, DefaultSortingStrategy, GridColumnDataType, IGX_BUTTON_GROUP_DIRECTIVES, IGX_GRID_DIRECTIVES, IgxColumnComponent, IgxGridComponent, IgxIconModule, IgxSelectComponent, IgxSelectModule, IgxSwitchModule, OverlaySettings, SortingDirection } from 'igniteui-angular';
3+
import { IgcDockManagerLayout, IgcDockManagerPaneType, IgcSplitPaneOrientation } from 'igniteui-dockmanager';
44
import { Subject } from 'rxjs';
5-
import { first, takeUntil } from 'rxjs/operators';
5+
import { takeUntil } from 'rxjs/operators';
66
import { defineCustomElements } from 'igniteui-dockmanager/loader';
77

88
import { SignalRService } from './signal-r.service';
@@ -175,8 +175,7 @@ export class GridDocManagerSampleComponent implements OnInit, OnDestroy, AfterVi
175175
if (this.isDarkTheme) {
176176
this.renderer.removeClass(this.elementRef.nativeElement, 'light-theme');
177177
this.renderer.addClass(this.elementRef.nativeElement, 'dark-theme');
178-
}
179-
else {
178+
} else {
180179
this.renderer.removeClass(this.elementRef.nativeElement, 'dark-theme');
181180
this.renderer.addClass(this.elementRef.nativeElement, 'light-theme');
182181
}
@@ -185,9 +184,6 @@ export class GridDocManagerSampleComponent implements OnInit, OnDestroy, AfterVi
185184
public ngAfterViewInit() {
186185
// This 500ms timeout is used as a workaround for StackBlitz ExpressionChangedAfterItHasBeenChecked Error
187186
setTimeout(() => {
188-
const x = (this.dockManager.nativeElement.getBoundingClientRect().width / 3);
189-
const y = (this.dockManager.nativeElement.getBoundingClientRect().height / 3);
190-
191187
// this.paneService.initialPanePosition = { x, y };
192188
this.grid2.selectColumns(['price', 'change', 'changeP']);
193189
this.customOverlaySettings.target = this.select.inputGroup.element.nativeElement;
@@ -237,7 +233,7 @@ export class GridDocManagerSampleComponent implements OnInit, OnDestroy, AfterVi
237233
private changeNegative = (rowData: any): boolean => rowData['changeP'] < 0 && rowData['changeP'] > -1;
238234
private changePositive = (rowData: any): boolean => rowData['changeP'] > 0 && rowData['changeP'] < 1;
239235
private strongPositive = (rowData: any): boolean => rowData['changeP'] >= 1;
240-
private strongNegative = (rowData: any, key: string): boolean => rowData['changeP'] <= -1;
236+
private strongNegative = (rowData: any, _key: string): boolean => rowData['changeP'] <= -1;
241237

242238
public trends = {
243239
changeNeg: this.changeNegative,

0 commit comments

Comments
 (0)