@flexem/fc-gui 3.0.0-alpha.100 → 3.0.0-alpha.101

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.
package/CHANGELOG.md CHANGED
@@ -449,4 +449,9 @@
449
449
  ## 3.0.0-alpha.100(2023-11-27)
450
450
  ### Web端
451
451
  #### Features
452
- 1. FLEXCLOUD-2885 设备模板—组态设计—告警表/历史曲线表,分页图标设置为透明
452
+ 1. FLEXCLOUD-2885 设备模板—组态设计—告警表/历史曲线表,分页图标设置为透明
453
+
454
+ ## 3.0.0-alpha.101(2023-11-29)
455
+ ### Web端
456
+ #### Features
457
+ 1. FLEXCLOUD-2957 切换仪表盘时console报错,由于历史曲线中设置了windowResize但未清除,导致resize会执行已经不存在的历史曲线的数据
@@ -36384,6 +36384,9 @@ class historical_curve_element_HistoricalCurveElement extends conditional_displa
36384
36384
  if (this.chartElement) {
36385
36385
  this.chartElement.tooltip.hidden(true);
36386
36386
  }
36387
+ if (this.resizeEventListener) {
36388
+ this.resizeEventListener.clear();
36389
+ }
36387
36390
  this.logger.debug(`[GUI]Dispose Histoical Curve Refresh Interval:${d3["time"].format('%x %X')(new Date())}`);
36388
36391
  }
36389
36392
  getValidTimePeriods() {
@@ -36631,7 +36634,7 @@ class historical_curve_element_HistoricalCurveElement extends conditional_displa
36631
36634
  chart.color(this.model.dataSetting.channels.map(c => c.connectorColor));
36632
36635
  this.rootElement.append('g').datum(data).call(chart);
36633
36636
  this.rootElement.selectAll('.nv-noData').attr('x', chartWidth / 2).attr('y', chartHeight / 2 + this.displayOption.operationAreaHeight);
36634
- nv_d3["utils"].windowResize(() => {
36637
+ this.resizeEventListener = nv_d3["utils"].windowResize(() => {
36635
36638
  chart.update();
36636
36639
  this.rootElement.selectAll('.nv-noData').attr('x', chartWidth / 2).attr('y', chartHeight / 2 + this.displayOption.operationAreaHeight);
36637
36640
  });