@flexem/fc-gui 3.0.0-alpha.85 → 3.0.0-alpha.87
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 +11 -1
- package/bundles/@flexem/fc-gui.umd.js +37 -3
- 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/numerical-display/numerical-display-element.js +9 -3
- package/elements/video/video-element.d.ts +2 -0
- package/elements/video/video-element.js +28 -0
- package/elements/video/video-element.metadata.json +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -381,4 +381,14 @@
|
|
|
381
381
|
### Web端
|
|
382
382
|
#### Bug Fix
|
|
383
383
|
1. FLEXCLOUD-2609 double类型数值输入元件无法写负数
|
|
384
|
-
- 修改写值提示的格式
|
|
384
|
+
- 修改写值提示的格式
|
|
385
|
+
|
|
386
|
+
## 3.0.0-alpha.86(2023-05-12)
|
|
387
|
+
### Web端
|
|
388
|
+
#### Bug Fix
|
|
389
|
+
1. FLEXCLOUD-2612 组态元件写值超时
|
|
390
|
+
|
|
391
|
+
## 3.0.0-alpha.8(2023-05-31)
|
|
392
|
+
### Web端
|
|
393
|
+
#### Bug Fix
|
|
394
|
+
1. FLEXCLOUD-2698 【app-ios】视频元件放大后缩小不应占满整个组态
|
|
@@ -37160,14 +37160,17 @@ class numerical_display_element_NumericalDisplayElement extends readable_element
|
|
|
37160
37160
|
this.recordValue = result.value;
|
|
37161
37161
|
const writeValue = this.dataTypeService.formatToDecimal(this.model.version, result.value, this.model.dataType);
|
|
37162
37162
|
this.showValue = result.showValue;
|
|
37163
|
-
if (this.displayText
|
|
37163
|
+
if (this.displayText !== this.showValue || result.variableRwType === variableRwTypeEnum.witer) {
|
|
37164
37164
|
if (this.numericalOperation || result.enableNumericalOperation || result.isNumericalOperation || result.variableRwType === variableRwTypeEnum.witer) {
|
|
37165
37165
|
this.recordOperation(result.value);
|
|
37166
37166
|
this.writeValueMmodalRef.hide();
|
|
37167
37167
|
}
|
|
37168
37168
|
else {
|
|
37169
37169
|
this.restorationTimer = setTimeout(() => {
|
|
37170
|
-
|
|
37170
|
+
const isEquation = this.model.fractionDigits ?
|
|
37171
|
+
parseFloat(this.displayText) === parseFloat(this.showValue) :
|
|
37172
|
+
parseInt(this.displayText, 16) === parseInt(this.showValue, 16);
|
|
37173
|
+
if (!isEquation) {
|
|
37171
37174
|
this.writeValueMmodalRef.content.isSubmitting = false;
|
|
37172
37175
|
this.writeValueMmodalRef.content.showValidationErrorInfo(this.localization.writeValueTimeout);
|
|
37173
37176
|
}
|
|
@@ -37207,7 +37210,10 @@ class numerical_display_element_NumericalDisplayElement extends readable_element
|
|
|
37207
37210
|
updateVariableValue(value) {
|
|
37208
37211
|
var _a;
|
|
37209
37212
|
const displayText = this.formatNumericalDisplayText(this.model.dataType, this.model.fractionDigits, value);
|
|
37210
|
-
|
|
37213
|
+
const isEquation = this.model.fractionDigits ?
|
|
37214
|
+
parseFloat(displayText) === parseFloat(this.showValue) :
|
|
37215
|
+
parseInt(displayText, 16) === parseInt(this.showValue, 16);
|
|
37216
|
+
if (((_a = this.writeValueMmodalRef) === null || _a === void 0 ? void 0 : _a.content) && isEquation) {
|
|
37211
37217
|
if (this.restorationTimer) {
|
|
37212
37218
|
clearTimeout(this.restorationTimer);
|
|
37213
37219
|
this.restorationTimer = undefined;
|
|
@@ -39498,6 +39504,7 @@ class video_element_VideoElement extends conditional_display_element_Conditional
|
|
|
39498
39504
|
this.videoService.getVideoUrl(this.model.videoTag).then(result => {
|
|
39499
39505
|
this.isMobileType = result.isMobileType;
|
|
39500
39506
|
const isAndroid = !!navigator.userAgent.match(/(Android)/i);
|
|
39507
|
+
const isIos = !!navigator.userAgent.match(/(Mac)/i);
|
|
39501
39508
|
let videoUrl = result.url;
|
|
39502
39509
|
const patt = /https:.+.m3u8/;
|
|
39503
39510
|
if (videoUrl.indexOf('http:') !== -1) {
|
|
@@ -39511,6 +39518,7 @@ class video_element_VideoElement extends conditional_display_element_Conditional
|
|
|
39511
39518
|
this.addVideoAddressToolTip(videoToolTip);
|
|
39512
39519
|
return;
|
|
39513
39520
|
}
|
|
39521
|
+
this.rootElement.attr('id', this.videoId + '-box');
|
|
39514
39522
|
const video = this.rootElement.append('foreignObject')
|
|
39515
39523
|
.attr('x', 0)
|
|
39516
39524
|
.attr('y', 0)
|
|
@@ -39540,6 +39548,32 @@ class video_element_VideoElement extends conditional_display_element_Conditional
|
|
|
39540
39548
|
if (this.isShow === false) {
|
|
39541
39549
|
$('#' + this.videoId).hide();
|
|
39542
39550
|
}
|
|
39551
|
+
if (isIos) {
|
|
39552
|
+
const gElement = document.getElementById(this.videoId + '-box');
|
|
39553
|
+
this.clientRect = this.clientRect || gElement.getBoundingClientRect();
|
|
39554
|
+
const svgElement = document.querySelector('.svg-content > svg');
|
|
39555
|
+
const svgClientRect = svgElement.getBoundingClientRect();
|
|
39556
|
+
svgElement.style.overflow = 'visible';
|
|
39557
|
+
const x = svgElement.clientWidth / this.clientRect.width;
|
|
39558
|
+
const y = svgElement.clientHeight / this.clientRect.height;
|
|
39559
|
+
this.rootElement.style('transform', `scale(${x}, ${y})`);
|
|
39560
|
+
this.rootElement.style('transform-origin', 'left top');
|
|
39561
|
+
video.style('z-index', 0);
|
|
39562
|
+
setTimeout(() => {
|
|
39563
|
+
this.videoClientRect = document.getElementById(this.videoId).getBoundingClientRect();
|
|
39564
|
+
video.style('position', 'absolute');
|
|
39565
|
+
video.style('left', this.clientRect.left + 'px');
|
|
39566
|
+
video.style('top', this.clientRect.top - svgClientRect.top + 'px');
|
|
39567
|
+
video.style('transform', `scale(${this.clientRect.width / this.videoClientRect.width}, ${this.clientRect.height / this.videoClientRect.height})`);
|
|
39568
|
+
video.style('transform-origin', 'left top');
|
|
39569
|
+
}, 300);
|
|
39570
|
+
$('#' + this.videoId).bind('webkitendfullscreen', () => {
|
|
39571
|
+
setTimeout(() => {
|
|
39572
|
+
video.style('width', this.videoClientRect.width + 'px');
|
|
39573
|
+
video.style('height', this.videoClientRect.height + 'px');
|
|
39574
|
+
}, 1000);
|
|
39575
|
+
});
|
|
39576
|
+
}
|
|
39543
39577
|
this.videoPlayer = new EZUIPlayer(this.videoId);
|
|
39544
39578
|
if (isAndroid) {
|
|
39545
39579
|
setTimeout(() => {
|