Skip to content

Commit af0a771

Browse files
committed
refactor: update rendering
1 parent 85c4978 commit af0a771

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

projects/components/src/gauge/gauge.component.ts

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -46,18 +46,14 @@ export class GaugeComponent implements OnChanges {
4646
public thresholds: GaugeThreshold[] = [];
4747

4848
public rendererData?: GaugeSvgRendererData;
49-
public hasLayoutChangeReceived: boolean = false;
5049

5150
public constructor(public readonly elementRef: ElementRef) {}
5251

5352
public ngOnChanges(): void {
54-
if (this.hasLayoutChangeReceived) {
55-
this.rendererData = this.buildRendererData();
56-
}
53+
this.rendererData = this.buildRendererData();
5754
}
5855

5956
public onLayoutChange(): void {
60-
this.hasLayoutChangeReceived = true;
6157
this.rendererData = this.buildRendererData();
6258
}
6359

0 commit comments

Comments
 (0)