@flexem/fc-gui 3.0.0-alpha.35 → 3.0.0-alpha.36
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 +1 -6
- package/bundles/@flexem/fc-gui.umd.js +37 -5
- package/bundles/@flexem/fc-gui.umd.js.map +1 -1
- package/bundles/@flexem/fc-gui.umd.min.js +1 -1
- package/bundles/@flexem/fc-gui.umd.min.js.map +1 -1
- package/elements/historical-curve/historical-curve.element.js +37 -5
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -146,12 +146,7 @@
|
|
|
146
146
|
#### Bug Fix
|
|
147
147
|
1. FLEXCLOUD-2171: 设备仪表盘:空气质量指数元件数值展示优化
|
|
148
148
|
|
|
149
|
-
## 3.0.0-alpha.
|
|
150
|
-
### Web端
|
|
151
|
-
#### Features
|
|
152
|
-
1. FLEXCLOUD-2218: 组态设计:历史曲线表,超过24小时,按天统计,X轴显示增加日期(年月日)
|
|
153
|
-
|
|
154
|
-
## 3.0.0-alpha.35(2022-08-31)
|
|
149
|
+
## 3.0.0-alpha.36(2022-09-02)
|
|
155
150
|
### Web端
|
|
156
151
|
#### Features
|
|
157
152
|
1. FLEXCLOUD-2218: 组态设计:历史曲线表,超过24小时,按天统计,X轴显示增加日期(年月日)
|
|
@@ -26736,7 +26736,7 @@ class historical_curve_element_HistoricalCurveElement extends conditional_displa
|
|
|
26736
26736
|
marginRight: 20,
|
|
26737
26737
|
mobileMinWidth: 450,
|
|
26738
26738
|
operationAreaHeight: 32,
|
|
26739
|
-
operationAreaMarginTop:
|
|
26739
|
+
operationAreaMarginTop: 25,
|
|
26740
26740
|
operationSelectFontSize: '16px',
|
|
26741
26741
|
operationButtonWidth: 24,
|
|
26742
26742
|
operationButtonHeight: 24,
|
|
@@ -26753,7 +26753,7 @@ class historical_curve_element_HistoricalCurveElement extends conditional_displa
|
|
|
26753
26753
|
}, this.model.displaySetting.refreshInterval * 1000);
|
|
26754
26754
|
this.isMobileMode = _tmp_settings["a" /* DisplayMode */].Mobile === injector.get(_tmp_settings["b" /* GlobalSettings */]).displayMode;
|
|
26755
26755
|
if (this.isMobileMode) {
|
|
26756
|
-
this.displayOption.operationAreaMarginTop =
|
|
26756
|
+
this.displayOption.operationAreaMarginTop = 35;
|
|
26757
26757
|
if (this.model.displaySetting.size.width >= this.displayOption.mobileMinWidth) {
|
|
26758
26758
|
this.displayOption.operationAreaHeight = 68;
|
|
26759
26759
|
this.displayOption.operationSelectFontSize = '24px';
|
|
@@ -26920,7 +26920,7 @@ class historical_curve_element_HistoricalCurveElement extends conditional_displa
|
|
|
26920
26920
|
chart.tooltip.headerFormatter(d => this.timeFormat(d, '%x %X'));
|
|
26921
26921
|
if (this.model.displaySetting.showAxis) {
|
|
26922
26922
|
chart.xAxis.showMaxMin(true).tickFormat(d => {
|
|
26923
|
-
if (this.currentTimePeriod
|
|
26923
|
+
if (this.currentTimePeriod === 3 || this.currentTimePeriod === 4 || this.currentTimePeriod === 5) {
|
|
26924
26924
|
return this.timeFormat(d, '%y-%m-%d');
|
|
26925
26925
|
}
|
|
26926
26926
|
return this.timeFormat(Number(d), '%X');
|
|
@@ -26972,7 +26972,7 @@ class historical_curve_element_HistoricalCurveElement extends conditional_displa
|
|
|
26972
26972
|
.attr('class', 'full-date')
|
|
26973
26973
|
.attr('x', 0)
|
|
26974
26974
|
.attr('y', 0)
|
|
26975
|
-
.attr('dy', '2.
|
|
26975
|
+
.attr('dy', '2.3em')
|
|
26976
26976
|
.style('text-anchor', 'middle')
|
|
26977
26977
|
.style('font-size', fontSize)
|
|
26978
26978
|
.text((d) => d);
|
|
@@ -26987,10 +26987,42 @@ class historical_curve_element_HistoricalCurveElement extends conditional_displa
|
|
|
26987
26987
|
.attr('class', 'full-date')
|
|
26988
26988
|
.attr('x', 0)
|
|
26989
26989
|
.attr('y', 0)
|
|
26990
|
-
.attr('dy', '2.
|
|
26990
|
+
.attr('dy', '2.3em')
|
|
26991
26991
|
.style('text-anchor', 'middle')
|
|
26992
26992
|
.style('font-size', fontSize)
|
|
26993
26993
|
.text((d) => d);
|
|
26994
|
+
const h = this.rootElement
|
|
26995
|
+
.selectAll('.nv-focusWrap')
|
|
26996
|
+
.attr('transform')
|
|
26997
|
+
.slice(0, -1)
|
|
26998
|
+
.split(',')[1];
|
|
26999
|
+
this.rootElement
|
|
27000
|
+
.selectAll('.nv-focusWrap')
|
|
27001
|
+
.attr('transform', `translate(0,${Number(h) + 15})`);
|
|
27002
|
+
const resizeObserver = new window.MutationObserver(() => {
|
|
27003
|
+
this.rootElement
|
|
27004
|
+
.selectAll('.nv-x')
|
|
27005
|
+
.selectAll('.tick')
|
|
27006
|
+
.selectAll('.full-date')
|
|
27007
|
+
.remove();
|
|
27008
|
+
this.rootElement
|
|
27009
|
+
.selectAll('.nv-x')
|
|
27010
|
+
.selectAll('.tick')
|
|
27011
|
+
.selectAll('text')
|
|
27012
|
+
.data(function (d) {
|
|
27013
|
+
return [self.timeFormat(Number(d), '%y-%m-%d'), self.timeFormat(Number(d), '%H:%M:%S')];
|
|
27014
|
+
})
|
|
27015
|
+
.enter()
|
|
27016
|
+
.append('text')
|
|
27017
|
+
.attr('class', 'full-date')
|
|
27018
|
+
.attr('x', 0)
|
|
27019
|
+
.attr('y', 0)
|
|
27020
|
+
.attr('dy', '2.3em')
|
|
27021
|
+
.style('text-anchor', 'middle')
|
|
27022
|
+
.style('font-size', fontSize)
|
|
27023
|
+
.text((d) => d);
|
|
27024
|
+
});
|
|
27025
|
+
resizeObserver.observe(document.getElementsByClassName('extent')[0], { attributes: true });
|
|
26994
27026
|
}
|
|
26995
27027
|
else {
|
|
26996
27028
|
this.rootElement
|