@flexem/fc-gui 3.0.0-alpha.39 → 3.0.0-alpha.40

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
@@ -164,4 +164,9 @@
164
164
  ## 3.0.0-alpha.39(2022-09-28)
165
165
  ### Web端
166
166
  #### Features
167
- 1. FLEXCLOUD-2206:【Web端】【优化】组态页面:用户大量写值请求失败
167
+ 1. FLEXCLOUD-2206:【Web端】【优化】组态页面:用户大量写值请求失败
168
+
169
+ ## 3.0.0-alpha.40(2022-10-14)
170
+ ### Web端
171
+ #### Features
172
+ 1. FLEXCLOUD-2290:【线上问题】组态页面:按钮切换不同历史曲线,历史曲线表缓冲后显示空白,【刷新】按钮页面未刷新
@@ -27021,14 +27021,15 @@ class historical_curve_element_HistoricalCurveElement extends conditional_displa
27021
27021
  .style('text-anchor', 'middle')
27022
27022
  .style('font-size', fontSize)
27023
27023
  .text((d) => d);
27024
- const h = this.rootElement
27025
- .selectAll('.nv-focusWrap')
27026
- .attr('transform')
27027
- .slice(0, -1)
27028
- .split(',')[1];
27029
- this.rootElement
27030
- .selectAll('.nv-focusWrap')
27031
- .attr('transform', `translate(0,${Number(h) + 15})`);
27024
+ const focusWrap = this.rootElement.selectAll('.nv-focusWrap');
27025
+ if (focusWrap.size()) {
27026
+ const h = focusWrap.attr('transform')
27027
+ .slice(0, -1)
27028
+ .split(',')[1];
27029
+ this.rootElement
27030
+ .selectAll('.nv-focusWrap')
27031
+ .attr('transform', `translate(0,${Number(h) + 15})`);
27032
+ }
27032
27033
  const resizeObserver = new window.MutationObserver(() => {
27033
27034
  this.rootElement
27034
27035
  .selectAll('.nv-x')
@@ -27052,7 +27053,10 @@ class historical_curve_element_HistoricalCurveElement extends conditional_displa
27052
27053
  .style('font-size', fontSize)
27053
27054
  .text((d) => d);
27054
27055
  });
27055
- resizeObserver.observe(document.getElementsByClassName('extent')[0], { attributes: true });
27056
+ const extent = document.getElementsByClassName('extent');
27057
+ if (extent.length) {
27058
+ resizeObserver.observe(extent[0], { attributes: true });
27059
+ }
27056
27060
  }
27057
27061
  else {
27058
27062
  this.rootElement