Skip to content

Commit 15b8ed2

Browse files
committed
lint
1 parent 8e0c4d2 commit 15b8ed2

File tree

3 files changed

+8
-7
lines changed

3 files changed

+8
-7
lines changed

src/cdk-experimental/column-resize/resize-strategy.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ export abstract class ResizeStrategy {
2323
protected abstract readonly styleScheduler: _CoalescedStyleScheduler;
2424
protected abstract readonly table: CdkTable<unknown>;
2525

26-
private pendingResizeDelta: number|null = null;
26+
private _pendingResizeDelta: number|null = null;
2727

2828
/** Updates the width of the specified column. */
2929
abstract applyColumnSize(
@@ -46,22 +46,22 @@ export abstract class ResizeStrategy {
4646

4747
/** Adjusts the width of the table element by the specified delta. */
4848
protected updateTableWidthAndStickyColumns(delta: number): void {
49-
if (this.pendingResizeDelta === null) {
49+
if (this._pendingResizeDelta === null) {
5050
const tableElement = this.columnResize.elementRef.nativeElement;
5151
const tableWidth = getElementWidth(tableElement);
5252

5353
this.styleScheduler.schedule(() => {
54-
tableElement.style.width = coerceCssPixelValue(tableWidth + this.pendingResizeDelta!);
54+
tableElement.style.width = coerceCssPixelValue(tableWidth + this._pendingResizeDelta!);
5555

56-
this.pendingResizeDelta = null;
56+
this._pendingResizeDelta = null;
5757
});
5858

5959
this.styleScheduler.scheduleEnd(() => {
6060
this.table.updateStickyColumnStyles();
6161
});
6262
}
6363

64-
this.pendingResizeDelta = (this.pendingResizeDelta ?? 0) + delta;
64+
this._pendingResizeDelta = (this._pendingResizeDelta ?? 0) + delta;
6565
}
6666
}
6767

src/cdk/table/coalesced-style-scheduler.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ export class _CoalescedStyleScheduler {
3535
* Schedules the specified task to run after all scheduled tasks.
3636
* This is useful when measuring after style updates is required.
3737
*/
38-
scheduleEnd(task: () => unknown) : void {
38+
scheduleEnd(task: () => unknown): void {
3939
this._createScheduleIfNeeded();
4040

4141
this._currentSchedule!.subscribe(() => {

src/material-experimental/column-resize/column-resize.spec.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,8 @@ abstract class BaseTestComponent {
198198
getOverlayThumbPosition(index: number): number {
199199
const thumbPositionElement = this.getOverlayThumbElement(index)!.parentNode as HTMLElement;
200200
const left = parseInt(thumbPositionElement.style.left!, 10);
201-
const translateX = Number(/translateX\((-?\d+)px\)/.exec(thumbPositionElement.style.transform)?.[1] ?? 0);
201+
const translateX = Number(/translateX\((-?\d+)px\)/.exec(
202+
thumbPositionElement.style.transform)?.[1] ?? 0);
202203
return left + translateX;
203204
}
204205

0 commit comments

Comments
 (0)