@ray-js/ipc-player-integration 0.0.1-beta-77 → 0.0.1-beta-79
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/lib/iconfont/iconfont.css +1 -2
- package/lib/widgets/battery/battery.less +0 -1
- package/lib/widgets/fullScreen/fullTravelRouteControl.js +10 -7
- package/lib/widgets/moveInteractiveControl/moveInteractiveControlUI.js +1 -1
- package/lib/widgets/moveInteractiveControl/moveInteractiveControlUI.less +5 -0
- package/lib/widgets/recordVideo/recordVideo.less +0 -1
- package/package.json +1 -1
|
@@ -24,12 +24,13 @@ export function FullTravelRouteControl(props) {
|
|
|
24
24
|
event
|
|
25
25
|
} = useContext(UIEventContext);
|
|
26
26
|
const prevRotate = useRef('-1');
|
|
27
|
+
const pauseTimeToHideAllComponentRef = useRef(false);
|
|
27
28
|
const {
|
|
28
29
|
brandColor
|
|
29
30
|
} = useStore({
|
|
30
31
|
brandColor: props.brandColor
|
|
31
32
|
});
|
|
32
|
-
|
|
33
|
+
useRef();
|
|
33
34
|
const [state, _, sendDp] = useDpState({
|
|
34
35
|
devId: props.devId,
|
|
35
36
|
dpCodes: [DIRECTION_CONTROL_DP_CODE],
|
|
@@ -50,13 +51,11 @@ export function FullTravelRouteControl(props) {
|
|
|
50
51
|
};
|
|
51
52
|
}, []);
|
|
52
53
|
const pauseTimeToHideAllComponentFn = () => {
|
|
53
|
-
if (
|
|
54
|
-
|
|
54
|
+
if (pauseTimeToHideAllComponentRef.current) {
|
|
55
|
+
return;
|
|
55
56
|
}
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
event.emit(pauseTimeToHideAllComponent);
|
|
59
|
-
}, 300);
|
|
57
|
+
pauseTimeToHideAllComponentRef.current = true;
|
|
58
|
+
event.emit(pauseTimeToHideAllComponent);
|
|
60
59
|
};
|
|
61
60
|
const sendDpValueFn = value => {
|
|
62
61
|
if (value === prevRotate.current) return;
|
|
@@ -74,17 +73,21 @@ export function FullTravelRouteControl(props) {
|
|
|
74
73
|
value: 0,
|
|
75
74
|
onTouchStart: value => {
|
|
76
75
|
pauseTimeToHideAllComponentFn();
|
|
76
|
+
pauseTimeToHideAllComponentRef.current = false;
|
|
77
77
|
sendDpValueFn(String(value));
|
|
78
|
+
// @ts-ignore
|
|
78
79
|
ty.nativeDisabled(true);
|
|
79
80
|
},
|
|
80
81
|
onTouchMove: value => {
|
|
81
82
|
pauseTimeToHideAllComponentFn();
|
|
82
83
|
sendDpValueFn(String(value));
|
|
84
|
+
// @ts-ignore
|
|
83
85
|
ty.nativeDisabled(true);
|
|
84
86
|
},
|
|
85
87
|
onTouchEnd: () => {
|
|
86
88
|
event.emit(startTimeToHideAllComponent);
|
|
87
89
|
sendDpValueFn('-1');
|
|
90
|
+
// @ts-ignore
|
|
88
91
|
ty.nativeDisabled(false);
|
|
89
92
|
},
|
|
90
93
|
onMoveNonIntersection: () => {
|
|
@@ -101,7 +101,7 @@ export function MoveInterActiveControlUI(props) {
|
|
|
101
101
|
}, /*#__PURE__*/React.createElement(View, {
|
|
102
102
|
className: clsx('ipc-player-plugin-active-control-item-icon-mask')
|
|
103
103
|
}), /*#__PURE__*/React.createElement(View, {
|
|
104
|
-
className: clsx('icon-panel', item.iconName)
|
|
104
|
+
className: clsx('icon-panel', item.iconName, 'ipc-player-plugin-interactive-icon')
|
|
105
105
|
})), /*#__PURE__*/React.createElement(View, {
|
|
106
106
|
className: clsx('ipc-player-plugin-active-control-item-title')
|
|
107
107
|
}, item.label))))));
|
|
@@ -34,6 +34,7 @@
|
|
|
34
34
|
color: var(--activeColor);
|
|
35
35
|
.ipc-player-plugin-active-control-item-icon {
|
|
36
36
|
color: var(--activeColor);
|
|
37
|
+
font-size: calc(16px * var(--ipc-player-size-scale, 1));
|
|
37
38
|
.ipc-player-plugin-active-control-item-icon-mask {
|
|
38
39
|
background: var(--activeColor);
|
|
39
40
|
opacity: 0.05;
|
|
@@ -68,4 +69,8 @@
|
|
|
68
69
|
white-space: nowrap; /* 防止文本换行 */
|
|
69
70
|
overflow: hidden; /* 隐藏溢出文本 */
|
|
70
71
|
text-overflow: ellipsis; /* 使用省略号表示溢出文本 */
|
|
72
|
+
text-align: center;
|
|
73
|
+
}
|
|
74
|
+
.ipc-player-plugin-interactive-icon {
|
|
75
|
+
font-size: calc(20px * var(--ipc-player-size-scale, 1));;
|
|
71
76
|
}
|