|
|
@@ -84,12 +84,11 @@ export class UnitComponent implements OnInit, OnDestroy {
|
|
|
this.onResize();
|
|
|
}
|
|
|
|
|
|
- private onResize(): void {
|
|
|
+ private onResize() {
|
|
|
const itemCount = Object.keys(this.graphViews).length;
|
|
|
console.log('Number of entries:', itemCount);
|
|
|
|
|
|
Object.entries(this.graphViews).forEach(([key, view]) => {
|
|
|
- console.log('Key:', key, 'View:', view);
|
|
|
// Process each pair here
|
|
|
|
|
|
const sensorGroupElement = '#vega_container_' + key;
|
|
|
@@ -99,6 +98,7 @@ export class UnitComponent implements OnInit, OnDestroy {
|
|
|
|
|
|
if (view) {
|
|
|
const newWidth = box.getBoundingClientRect().width - 50;
|
|
|
+ console.log('Key:', key, 'NewWidth:', newWidth);
|
|
|
view.width(newWidth).height(300).runAsync();
|
|
|
}
|
|
|
});
|