@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.
@@ -6,8 +6,7 @@
6
6
  }
7
7
 
8
8
  .icon-panel {
9
- font-family: "icon-panel" !important;
10
- font-size: 16px;
9
+ font-family: "icon-panel";
11
10
  font-style: normal;
12
11
  -webkit-font-smoothing: antialiased;
13
12
  -moz-osx-font-smoothing: grayscale;
@@ -53,6 +53,5 @@
53
53
  font-size: calc(12px * var(--ipc-player-size-scale, 1));
54
54
  line-height: calc(12px * var(--ipc-player-size-scale, 1));
55
55
  color: var(--fontColor);
56
- font-family: 'Manrope';
57
56
  font-weight: 600;
58
57
  }
@@ -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
- const timerRef = useRef();
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 (timerRef.current) {
54
- clearTimeout(timerRef.current);
54
+ if (pauseTimeToHideAllComponentRef.current) {
55
+ return;
55
56
  }
56
- // @ts-ignore
57
- timerRef.current = setTimeout(() => {
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
  }
@@ -42,7 +42,6 @@
42
42
  margin-left: calc(8px * var(--ipc-player-size-scale, 1));;
43
43
  display: flex;
44
44
  align-items: center;
45
- font-family: Manrope !important;
46
45
  .ipc-player-plugin-record-video-toast-time-warp {
47
46
  text-align: center;
48
47
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ray-js/ipc-player-integration",
3
- "version": "0.0.1-beta-77",
3
+ "version": "0.0.1-beta-79",
4
4
  "description": "IPC 播放器功能集成",
5
5
  "main": "lib/index",
6
6
  "files": [