From a3e8d9fd35e8a1f471ce75d4a17de8928e848b9d Mon Sep 17 00:00:00 2001 From: KenTandrian Date: Tue, 14 Jul 2026 09:50:28 +0700 Subject: [PATCH] feat(ui): enforce encapsulation --- libs/ui/src/lib/treemap-chart/treemap-chart.component.ts | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/libs/ui/src/lib/treemap-chart/treemap-chart.component.ts b/libs/ui/src/lib/treemap-chart/treemap-chart.component.ts index 5bccf9272..c1c05e006 100644 --- a/libs/ui/src/lib/treemap-chart/treemap-chart.component.ts +++ b/libs/ui/src/lib/treemap-chart/treemap-chart.component.ts @@ -61,10 +61,11 @@ export class GfTreemapChartComponent @Output() treemapChartClicked = new EventEmitter(); - @ViewChild('chartCanvas') chartCanvas: ElementRef; + @ViewChild('chartCanvas') private chartCanvas: ElementRef; - public chart: Chart<'treemap'>; - public isLoading = true; + protected isLoading = true; + + private chart: Chart<'treemap'>; public constructor() { Chart.register(LinearScale, Tooltip, TreemapController, TreemapElement);