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

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
@@ -169,4 +169,14 @@
169
169
  ## 3.0.0-alpha.40(2022-10-14)
170
170
  ### Web端
171
171
  #### Features
172
- 1. FLEXCLOUD-2290:【线上问题】组态页面:按钮切换不同历史曲线,历史曲线表缓冲后显示空白,【刷新】按钮页面未刷新
172
+ 1. FLEXCLOUD-2290:【线上问题】组态页面:按钮切换不同历史曲线,历史曲线表缓冲后显示空白,【刷新】按钮页面未刷新
173
+
174
+ ## 3.0.0-alpha.41(2022-10-20)
175
+ ### Web端
176
+ #### Features
177
+ 1. FLEXCLOUD-2296:组态页面点击刷新后不显示历史曲线组件
178
+
179
+ ## 3.0.0-alpha.42(2022-10-20)
180
+ ### Web端
181
+ #### Features
182
+ 1. 修改历史曲线图设置刻度字体方式
@@ -26947,6 +26947,7 @@ class historical_curve_element_HistoricalCurveElement extends conditional_displa
26947
26947
  return chart;
26948
26948
  }
26949
26949
  renderCommonProperty(chart, chartWidth, chartHeight, data) {
26950
+ var _a, _b;
26950
26951
  chart.tooltip.headerFormatter(d => this.timeFormat(d, '%x %X'));
26951
26952
  if (this.model.displaySetting.showAxis) {
26952
26953
  chart.xAxis.showMaxMin(true).tickFormat(d => {
@@ -26979,17 +26980,17 @@ class historical_curve_element_HistoricalCurveElement extends conditional_displa
26979
26980
  chart.update();
26980
26981
  this.rootElement.selectAll('.nv-noData').attr('x', chartWidth / 2).attr('y', chartHeight / 2 + this.displayOption.operationAreaHeight);
26981
26982
  });
26982
- const fontSize = this.model.displaySetting.axisSetting.axisLabelFont.fontSize;
26983
+ const fontSize = (_b = (_a = this.model.displaySetting.axisSetting) === null || _a === void 0 ? void 0 : _a.axisLabelFont) === null || _b === void 0 ? void 0 : _b.fontSize;
26983
26984
  this.rootElement.selectAll('.domain').style('stroke-opacity', 1);
26984
26985
  if (this.model.displaySetting.showAxis && this.model.displaySetting.axisSetting) {
26985
26986
  const axisColor = this.model.displaySetting.axisSetting.axisColor;
26986
26987
  this.rootElement.selectAll('.domain').style('stroke', axisColor);
26987
- if (this.model.displaySetting.axisSetting.showAxisLabel) {
26988
+ if (fontSize && this.model.displaySetting.axisSetting.showAxisLabel) {
26988
26989
  this.rootElement.selectAll('.nv-axisMaxMin').select('text').style('font-size', fontSize);
26989
26990
  }
26990
26991
  }
26991
- const self = this;
26992
- if (self.currentTimePeriod === 3 || self.currentTimePeriod === 4 || self.currentTimePeriod === 5) {
26992
+ if (fontSize && this.currentTimePeriod === 3 || this.currentTimePeriod === 4 || this.currentTimePeriod === 5) {
26993
+ const self = this;
26993
26994
  this.rootElement
26994
26995
  .selectAll('.nv-x')
26995
26996
  .selectAll('.tick')