@flexem/fc-gui 3.0.0-alpha.105 → 3.0.0-alpha.106
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 +6 -1
- package/bundles/@flexem/fc-gui.umd.js +20 -1
- 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/datetime-display/datetime-display-element.js +1 -1
- package/elements/historical-curve/historical-curve.element.d.ts +4 -0
- package/elements/historical-curve/historical-curve.element.js +19 -0
- package/elements/historical-curve/historical-curve.element.metadata.json +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -469,4 +469,9 @@
|
|
|
469
469
|
## 3.0.0-alpha.105(2024-03-15)
|
|
470
470
|
### Web端
|
|
471
471
|
#### Features
|
|
472
|
-
1. FLEXCLOUD-3086 历史曲线可以设置筛选的背景颜色
|
|
472
|
+
1. FLEXCLOUD-3086 历史曲线可以设置筛选的背景颜色
|
|
473
|
+
|
|
474
|
+
## 3.0.0-alpha.106(2024-04-10)
|
|
475
|
+
### Web端
|
|
476
|
+
#### Features
|
|
477
|
+
1. FLEXCLOUD-3269 由于历史曲线使用d3绘制,数据量过多或者通道较多时导致安卓端操作较卡顿
|
|
@@ -36226,7 +36226,7 @@ class datetime_display_element_DatetimeDisplayElement extends conditional_displa
|
|
|
36226
36226
|
this.getAndSetCurrentTime(format);
|
|
36227
36227
|
setInterval(() => {
|
|
36228
36228
|
this.getAndSetCurrentTime(format);
|
|
36229
|
-
},
|
|
36229
|
+
}, 100);
|
|
36230
36230
|
}
|
|
36231
36231
|
}
|
|
36232
36232
|
getAndSetCurrentTime(format) {
|
|
@@ -36422,6 +36422,11 @@ class historical_curve_element_HistoricalCurveElement extends conditional_displa
|
|
|
36422
36422
|
};
|
|
36423
36423
|
this.elementStatus = HistoricalCurveElementStatus.Loading;
|
|
36424
36424
|
this.data = [];
|
|
36425
|
+
this.needResize = true;
|
|
36426
|
+
this.setNeedResize = () => {
|
|
36427
|
+
this.needResize = false;
|
|
36428
|
+
setTimeout(() => this.needResize = true, 500);
|
|
36429
|
+
};
|
|
36425
36430
|
this.logger = injector.get(logger["b" /* LOGGER_SERVICE_TOKEN */]);
|
|
36426
36431
|
this.localization = injector.get(_tmp_localization["b" /* LOCALIZATION */]);
|
|
36427
36432
|
this.timePeriods = this.getValidTimePeriods();
|
|
@@ -36442,6 +36447,7 @@ class historical_curve_element_HistoricalCurveElement extends conditional_displa
|
|
|
36442
36447
|
}
|
|
36443
36448
|
}
|
|
36444
36449
|
this.loadFirstPage();
|
|
36450
|
+
this.initKeyboardListener();
|
|
36445
36451
|
}
|
|
36446
36452
|
dispose() {
|
|
36447
36453
|
clearInterval(this.refreshIntervalId);
|
|
@@ -36451,8 +36457,19 @@ class historical_curve_element_HistoricalCurveElement extends conditional_displa
|
|
|
36451
36457
|
if (this.resizeEventListener) {
|
|
36452
36458
|
this.resizeEventListener.clear();
|
|
36453
36459
|
}
|
|
36460
|
+
if (this.isAndroid) {
|
|
36461
|
+
window.removeEventListener('native.keyboardshow', this.setNeedResize);
|
|
36462
|
+
window.removeEventListener('native.keyboardhide', this.setNeedResize);
|
|
36463
|
+
}
|
|
36454
36464
|
this.logger.debug(`[GUI]Dispose Histoical Curve Refresh Interval:${d3["time"].format('%x %X')(new Date())}`);
|
|
36455
36465
|
}
|
|
36466
|
+
initKeyboardListener() {
|
|
36467
|
+
this.isAndroid = !!navigator.userAgent.match(/(Android)/i);
|
|
36468
|
+
if (this.isAndroid) {
|
|
36469
|
+
window.addEventListener('native.keyboardshow', this.setNeedResize);
|
|
36470
|
+
window.addEventListener('native.keyboardhide', this.setNeedResize);
|
|
36471
|
+
}
|
|
36472
|
+
}
|
|
36456
36473
|
getValidTimePeriods() {
|
|
36457
36474
|
const timePeriods = new Array();
|
|
36458
36475
|
timePeriods.push({ key: 6, name: this.localization.lastThirtyMinutes });
|
|
@@ -36699,6 +36716,8 @@ class historical_curve_element_HistoricalCurveElement extends conditional_displa
|
|
|
36699
36716
|
this.rootElement.append('g').datum(data).call(chart);
|
|
36700
36717
|
this.rootElement.selectAll('.nv-noData').attr('x', chartWidth / 2).attr('y', chartHeight / 2 + this.displayOption.operationAreaHeight);
|
|
36701
36718
|
this.resizeEventListener = nv_d3["utils"].windowResize(() => {
|
|
36719
|
+
if (!this.needResize)
|
|
36720
|
+
return;
|
|
36702
36721
|
chart.update();
|
|
36703
36722
|
this.rootElement.selectAll('.nv-noData').attr('x', chartWidth / 2).attr('y', chartHeight / 2 + this.displayOption.operationAreaHeight);
|
|
36704
36723
|
});
|