intelica-library-ui 0.1.90 → 0.1.91

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -2525,8 +2525,8 @@ class EchartComponent {
2525
2525
  config;
2526
2526
  id;
2527
2527
  containerStyle = {
2528
- width: '100%',
2529
- height: '400px',
2528
+ width: "100%",
2529
+ height: "400px",
2530
2530
  };
2531
2531
  event = new EventEmitter();
2532
2532
  chart;
@@ -2537,13 +2537,13 @@ class EchartComponent {
2537
2537
  ngAfterViewInit() {
2538
2538
  const chartElement = this.el.nativeElement.querySelector(`#${this.id}_plot`);
2539
2539
  if (!this.config) {
2540
- throw new Error('Chart configuration is not set');
2540
+ throw new Error("Chart configuration is not set");
2541
2541
  }
2542
2542
  if (!isPlatformBrowser(this.platformId)) {
2543
- throw new Error('Platform is not browser');
2543
+ throw new Error("Platform is not browser");
2544
2544
  }
2545
2545
  if (!chartElement) {
2546
- throw new Error('Plot area not found');
2546
+ throw new Error("Plot area not found");
2547
2547
  }
2548
2548
  this.initChart(chartElement);
2549
2549
  }
@@ -2558,10 +2558,10 @@ class EchartComponent {
2558
2558
  }
2559
2559
  }
2560
2560
  initChart(chartElement) {
2561
- const observer = new ResizeObserver(this.resize);
2561
+ const observer = new ResizeObserver(() => this.resize());
2562
2562
  this.chart = echarts.init(chartElement);
2563
2563
  this.chart.setOption(this.config);
2564
- this.chart.on('click', (params) => {
2564
+ this.chart.on("click", params => {
2565
2565
  this.event.emit(params);
2566
2566
  });
2567
2567
  observer.observe(chartElement);
@@ -2571,7 +2571,7 @@ class EchartComponent {
2571
2571
  }
2572
2572
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.1", ngImport: i0, type: EchartComponent, decorators: [{
2573
2573
  type: Component,
2574
- args: [{ selector: 'intelica-echart', imports: [CommonModule], template: "<div [id]=\"id + '_plot'\" class=\"chart\" [ngStyle]=\"containerStyle\"></div>\r\n" }]
2574
+ args: [{ selector: "intelica-echart", imports: [CommonModule], template: "<div [id]=\"id + '_plot'\" class=\"chart\" [ngStyle]=\"containerStyle\"></div>\r\n" }]
2575
2575
  }], ctorParameters: () => [{ type: i0.ElementRef }, { type: Object, decorators: [{
2576
2576
  type: Inject,
2577
2577
  args: [PLATFORM_ID]