@ray-js/ipc-player-integration 0.0.36 → 0.0.37

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.
@@ -195,21 +195,18 @@ const BottomLeftContent = _ref => {
195
195
  // 点击右箭头:直接滚动到最右端。
196
196
  // 给一个足够大的目标值,交由 ScrollView 自身夹取到真实最右端,避免测量误差导致滚不到底。
197
197
 
198
- const coverHeight = screenType === 'vertical' ? shouldHide ? 49 : 48 : shouldHide ? 84 : 83;
198
+ const coverHeight = screenType === 'vertical' ? shouldHide ? 49 : 48 : shouldHide ? 59 : 58;
199
199
  const containerHeight = screenType === 'vertical' ? 48 : 58;
200
200
 
201
201
  // reservedRight 兼容 number(px)与 string(任意 CSS 长度,例如 "35%")
202
202
  const rightCss = typeof reservedRight === 'number' ? `${reservedRight}px` : reservedRight;
203
203
 
204
- // bottomRightContent 对齐:bottomRight icon 行是贴在 wrap 顶部(不居中)的,
205
- // 这里 wrap flex-start,让 ScrollView 也贴顶;icon 在 ScrollView 内通过 align-items
206
- // 居中到可视行中线,从而和右侧 icon 在同一水平线上。
207
- // hintBottom 锚定 wrap 底部:
208
- // icon 中心到 wrap 底部 = (wrap底部→SV底部空隙) + SV的paddingBottom + 可视行高/2
209
- // 竖屏: 0 + 0 + 24 = 24,箭头 16 → bottom = 16
210
- // 横屏: 25 + 25 + 16.5 = 66.5,箭头 16 → bottom = 58
211
-
212
- const hintBottom = screenType === 'vertical' ? 16 : 58;
204
+ // ScrollView wrap 顶部,icon ScrollView 内通过 align-items 居中到可视行中线。
205
+ // hintBottom 锚定可视行中线(pulse 箭头 16,先按 16 高算 bottom,按钮模式再下移补差):
206
+ // icon 中心距 wrap 底 = paddingBottom + visibleRowHeight/2
207
+ // 竖屏: 0 + 24 = 24 → bottom = 16
208
+ // 横屏: 25 + 16.5 = 41.5 bottom = 33.5
209
+ const visibleRowHeight = containerHeight - paddingBottomPx;
213
210
  // button 模式用半透明圆做点击热区,比 pulse 提示大;下移半个差值以保持图标中心不变
214
211
  const hintSize = isButtonHint ? 26 : 16;
215
212
  // 竖屏 button 模式给 ScrollView 右侧留一条较窄的“箭头槽”:只裁掉内容最右一小段,
@@ -290,7 +287,7 @@ const BottomLeftContent = _ref => {
290
287
  style: {
291
288
  display: 'inline-flex',
292
289
  flexDirection: 'row',
293
- height: `${containerHeight - paddingBottomPx}px`,
290
+ height: `${visibleRowHeight}px`,
294
291
  alignItems: 'center'
295
292
  }
296
293
  }, children, /*#__PURE__*/React.createElement(View, {
@@ -307,7 +304,7 @@ const BottomLeftContent = _ref => {
307
304
  style: {
308
305
  position: 'absolute',
309
306
  right: `${hintRight}px`,
310
- bottom: `${hintBottom - (hintSize - 16) / 2}px`,
307
+ bottom: `${paddingBottomPx + visibleRowHeight / 2 - 8 - (hintSize - 16) / 2}px`,
311
308
  width: `${hintSize}px`,
312
309
  height: `${hintSize}px`,
313
310
  display: 'flex',
package/lib/ui/ui.js CHANGED
@@ -463,7 +463,7 @@ export const IPCPlayerIntegration = /*#__PURE__*/React.memo(props => {
463
463
  const res = await getSmartImageQualityState(devId);
464
464
  if (!res) return;
465
465
  // 调试时使用
466
- // res = {
466
+ // const res = {
467
467
  // isPurchase: false,
468
468
  // buttonState: 0,
469
469
  // trialRemainingSec: 20,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ray-js/ipc-player-integration",
3
- "version": "0.0.36",
3
+ "version": "0.0.37",
4
4
  "description": "IPC 融合播放器",
5
5
  "main": "lib/index",
6
6
  "files": [