@flexem/fc-gui 3.0.0-alpha.92 → 3.0.0-alpha.94
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 +12 -1
- package/bundles/@flexem/fc-gui.umd.js +55 -19
- package/bundles/@flexem/fc-gui.umd.js.map +1 -1
- package/bundles/@flexem/fc-gui.umd.min.js +4 -4
- package/bundles/@flexem/fc-gui.umd.min.js.map +1 -1
- package/elements/historical-curve/historical-curve.element.js +37 -17
- package/elements/video/video-element.js +6 -1
- package/modal/write-value/write-value-modal.component.js +12 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -413,4 +413,15 @@
|
|
|
413
413
|
## 3.0.0-alpha.92(2023-07-18)
|
|
414
414
|
### Web端
|
|
415
415
|
#### Features
|
|
416
|
-
1. FLEXCLOUD-2710 【氚云20230621000600】组态历史曲线表:历史曲线增加点位标记,便于直观看到曲线采样点的变化
|
|
416
|
+
1. FLEXCLOUD-2710 【氚云20230621000600】组态历史曲线表:历史曲线增加点位标记,便于直观看到曲线采样点的变化
|
|
417
|
+
|
|
418
|
+
## 3.0.0-alpha.93(2023-07-21)
|
|
419
|
+
### Web端
|
|
420
|
+
#### Features
|
|
421
|
+
1. FLEXCLOUD-2741 【氚云20230714001409】模板的模拟功能,无法进行写值,一直提示提交中
|
|
422
|
+
|
|
423
|
+
## 3.0.0-alpha.94(2023-07-21)
|
|
424
|
+
### Web端
|
|
425
|
+
#### Features
|
|
426
|
+
1. FLEXCLOUD-2710 【氚云20230621000600】组态历史曲线表:历史曲线增加点位标记,便于直观看到曲线采样点的变化
|
|
427
|
+
- 修改标记点大小
|
|
@@ -36481,28 +36481,34 @@ class historical_curve_element_HistoricalCurveElement extends conditional_displa
|
|
|
36481
36481
|
}
|
|
36482
36482
|
initPoint() {
|
|
36483
36483
|
try {
|
|
36484
|
-
this
|
|
36485
|
-
.
|
|
36486
|
-
.
|
|
36487
|
-
.style('stroke-opacity', 0)
|
|
36488
|
-
.style('stroke-width', 0);
|
|
36489
|
-
const legendList = this.rootElement
|
|
36490
|
-
.selectAll('.nv-legend')
|
|
36491
|
-
.selectAll('.nv-series');
|
|
36484
|
+
const legendList = this.$element
|
|
36485
|
+
.find('.nv-legend')
|
|
36486
|
+
.find('.nv-series');
|
|
36492
36487
|
let hiddenCount = 0;
|
|
36493
36488
|
for (let i = 0; i < this.data.length; i++) {
|
|
36494
36489
|
const channel = this.model.dataSetting.channels[i];
|
|
36495
|
-
|
|
36496
|
-
|
|
36497
|
-
|
|
36498
|
-
.
|
|
36499
|
-
.
|
|
36490
|
+
if (legendList.eq(i).children().eq(0).css('fill-opacity') === '1') {
|
|
36491
|
+
const pointList = this.$element
|
|
36492
|
+
.find('.nv-scatterWrap')
|
|
36493
|
+
.find('.nv-series-' + (i - hiddenCount))
|
|
36494
|
+
.find('.nv-point');
|
|
36500
36495
|
if (pointList && pointList.length) {
|
|
36501
36496
|
for (let j = 0; j < pointList.length; j++) {
|
|
36502
|
-
|
|
36497
|
+
const point = pointList.eq(j);
|
|
36498
|
+
const previousPoint = pointList.eq(j - 1);
|
|
36499
|
+
if (j && point.attr('transform').split(',')[1] !== previousPoint.attr('transform').split(',')[1]) {
|
|
36503
36500
|
if (channel.enablePoint && channel.pointColor) {
|
|
36504
|
-
|
|
36505
|
-
|
|
36501
|
+
const pointStyle = {
|
|
36502
|
+
'stroke-opacity': 1,
|
|
36503
|
+
'stroke-width': '2px',
|
|
36504
|
+
'stroke': channel.pointColor,
|
|
36505
|
+
'fill-opacity': 1,
|
|
36506
|
+
'fill': channel.pointColor
|
|
36507
|
+
};
|
|
36508
|
+
point.addClass('nv-mark-point');
|
|
36509
|
+
point.css(pointStyle);
|
|
36510
|
+
previousPoint.addClass('nv-mark-point');
|
|
36511
|
+
previousPoint.css(pointStyle);
|
|
36506
36512
|
}
|
|
36507
36513
|
}
|
|
36508
36514
|
}
|
|
@@ -36535,6 +36541,13 @@ class historical_curve_element_HistoricalCurveElement extends conditional_displa
|
|
|
36535
36541
|
this.initPoint();
|
|
36536
36542
|
chart.legend.dispatch.on('legendClick', () => {
|
|
36537
36543
|
setTimeout(() => {
|
|
36544
|
+
this.$element.find('.nv-mark-point').css({
|
|
36545
|
+
'stroke-opacity': 0,
|
|
36546
|
+
'stroke-width': 0,
|
|
36547
|
+
'stroke': 'unset',
|
|
36548
|
+
'fill-opacity': 0,
|
|
36549
|
+
'fill': 'unset'
|
|
36550
|
+
}).removeClass('nv-mark-point');
|
|
36538
36551
|
this.initPoint();
|
|
36539
36552
|
}, 1);
|
|
36540
36553
|
});
|
|
@@ -36581,11 +36594,18 @@ class historical_curve_element_HistoricalCurveElement extends conditional_displa
|
|
|
36581
36594
|
chart.tooltip.headerFormatter(d => this.timeFormat(d, '%x %X'));
|
|
36582
36595
|
if (this.model.displaySetting.showAxis) {
|
|
36583
36596
|
chart.xAxis.showMaxMin(true).tickFormat(d => {
|
|
36597
|
+
this.$element.find('.nv-mark-point').css({
|
|
36598
|
+
'stroke-opacity': 0,
|
|
36599
|
+
'stroke-width': 0,
|
|
36600
|
+
'stroke': 'unset',
|
|
36601
|
+
'fill-opacity': 0,
|
|
36602
|
+
'fill': 'unset'
|
|
36603
|
+
}).removeClass('nv-mark-point');
|
|
36584
36604
|
clearTimeout(this.timer);
|
|
36585
36605
|
this.timer = undefined;
|
|
36586
36606
|
this.timer = setTimeout(() => {
|
|
36587
36607
|
this.initPoint();
|
|
36588
|
-
},
|
|
36608
|
+
}, 100);
|
|
36589
36609
|
if (this.currentTimePeriod === 3 || this.currentTimePeriod === 4 || this.currentTimePeriod === 5) {
|
|
36590
36610
|
return this.timeFormat(d, '%y-%m-%d');
|
|
36591
36611
|
}
|
|
@@ -39627,7 +39647,12 @@ class video_element_VideoElement extends conditional_display_element_Conditional
|
|
|
39627
39647
|
else if (isIos) {
|
|
39628
39648
|
this.setIosVideo(this.videoUrl, videoId);
|
|
39629
39649
|
}
|
|
39630
|
-
|
|
39650
|
+
try {
|
|
39651
|
+
this.videoPlayer = new EZUIPlayer(videoId);
|
|
39652
|
+
}
|
|
39653
|
+
catch (err) {
|
|
39654
|
+
console.log(err);
|
|
39655
|
+
}
|
|
39631
39656
|
}, 1000);
|
|
39632
39657
|
const style = document.createElement('style');
|
|
39633
39658
|
style.innerHTML = `#${videoId}::-webkit-media-controls-enclosure {
|
|
@@ -41766,13 +41791,24 @@ let WriteValueModalComponent = class WriteValueModalComponent {
|
|
|
41766
41791
|
value = this.formatWriteValue();
|
|
41767
41792
|
}
|
|
41768
41793
|
}
|
|
41794
|
+
if (!this.args.releasedVariableService) {
|
|
41795
|
+
this.onClosed({
|
|
41796
|
+
value: value,
|
|
41797
|
+
showValue: showValue,
|
|
41798
|
+
enableNumericalOperation: false,
|
|
41799
|
+
isNumericalOperation: this.isNumericalOperation,
|
|
41800
|
+
variableRwType: 6
|
|
41801
|
+
});
|
|
41802
|
+
return;
|
|
41803
|
+
}
|
|
41769
41804
|
this.args.releasedVariableService.getVariableWithValueTransform(this.variableName).subscribe(result => {
|
|
41770
41805
|
const valueTransform = JSON.parse(result.valueTransform);
|
|
41771
41806
|
if (valueTransform.Type !== 0) {
|
|
41772
41807
|
this.isNumericalOperation = true;
|
|
41773
41808
|
}
|
|
41774
41809
|
this.onClosed({
|
|
41775
|
-
value
|
|
41810
|
+
value: value,
|
|
41811
|
+
showValue: showValue,
|
|
41776
41812
|
enableNumericalOperation: this.enableNumericalOperation,
|
|
41777
41813
|
isNumericalOperation: this.isNumericalOperation,
|
|
41778
41814
|
variableRwType: result.variableRwType
|