@flexem/fc-gui 3.0.0-alpha.31 → 3.0.0-alpha.32

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
@@ -134,3 +134,9 @@
134
134
  ### Web端
135
135
  #### Bug Fix
136
136
  1. FLEXCLOUD-1817: 组件更改其中一变量,其余变量应不生效,模板中删除、更改变量,删除与更改变量应不生效
137
+
138
+ ## 3.0.0-alpha.32(2022-05-17)
139
+ ### Web端
140
+ #### Bug Fix
141
+ 1. FLEXCLOUD-2100: 苏州水星:历史曲线组件支持Y轴自定义设定范围
142
+
@@ -26704,6 +26704,13 @@ var CurveType;
26704
26704
  CurveType[CurveType["BarStack"] = 2] = "BarStack";
26705
26705
  })(CurveType || (CurveType = {}));
26706
26706
 
26707
+ // CONCATENATED MODULE: ./.tmp/model/historical-curve/historical-curve-axis-settings.ts
26708
+ var AxisRangeType;
26709
+ (function (AxisRangeType) {
26710
+ AxisRangeType[AxisRangeType["Auto"] = 0] = "Auto";
26711
+ AxisRangeType[AxisRangeType["Custom"] = 1] = "Custom"; // 自定义范围
26712
+ })(AxisRangeType || (AxisRangeType = {}));
26713
+
26707
26714
  // CONCATENATED MODULE: ./.tmp/elements/historical-curve/historical-curve.element.ts
26708
26715
 
26709
26716
 
@@ -26717,6 +26724,7 @@ var CurveType;
26717
26724
 
26718
26725
 
26719
26726
 
26727
+
26720
26728
  class historical_curve_element_HistoricalCurveElement extends conditional_display_element_ConditionalDisplayElement {
26721
26729
  constructor(element, injector, permissionChecker, variableCommunicator, variableStore, historyDataStore, signalRAppId) {
26722
26730
  super(element, permissionChecker, variableCommunicator, variableStore, signalRAppId);
@@ -26859,6 +26867,9 @@ class historical_curve_element_HistoricalCurveElement extends conditional_displa
26859
26867
  const chart = nv_d3["models"].lineChart().showLegend(true)
26860
26868
  .margin({ top: 0, bottom: 0, left: this.displayOption.marginLeft, right: this.displayOption.marginRight })
26861
26869
  .noData(this.localization.chartNoData);
26870
+ if (this.model.displaySetting.axisSetting.yAxisRangeType === AxisRangeType.Custom) {
26871
+ chart.yDomain([this.model.displaySetting.axisSetting.yAxisMin, this.model.displaySetting.axisSetting.yAxisMax]);
26872
+ }
26862
26873
  if (!this.isMobileMode) {
26863
26874
  chart.focusEnable(true);
26864
26875
  chart.focus.margin({ top: 10, right: 0, bottom: 0, left: 0 });
@@ -26883,6 +26894,9 @@ class historical_curve_element_HistoricalCurveElement extends conditional_displa
26883
26894
  chart.multibar.stacked(true);
26884
26895
  chart.multibar2.stacked(true);
26885
26896
  }
26897
+ if (this.model.displaySetting.axisSetting.yAxisRangeType === AxisRangeType.Custom) {
26898
+ chart.yDomain([this.model.displaySetting.axisSetting.yAxisMin, this.model.displaySetting.axisSetting.yAxisMax]);
26899
+ }
26886
26900
  if (!this.isMobileMode) {
26887
26901
  chart.focusEnable(true);
26888
26902
  chart.focusShowAxisX(false);
@@ -40785,7 +40799,7 @@ var shared = __webpack_require__(5);
40785
40799
  // EXTERNAL MODULE: ./.tmp/view/view.service.ts
40786
40800
  var view_service = __webpack_require__(31);
40787
40801
 
40788
- // EXTERNAL MODULE: ./.tmp/gui/gui-view.ts + 122 modules
40802
+ // EXTERNAL MODULE: ./.tmp/gui/gui-view.ts + 123 modules
40789
40803
  var gui_view = __webpack_require__(29);
40790
40804
 
40791
40805
  // EXTERNAL MODULE: external "rxjs/operators"