@ericchen1990/pano-view 3.6.7 → 3.7.0
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/README.md +6 -0
- package/README.zh-CN.md +6 -0
- package/dist/index.cjs +1936 -1092
- package/dist/index.cjs.map +1 -1
- package/dist/index.mjs +1482 -637
- package/dist/index.mjs.map +1 -1
- package/dist/styles.css +54 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -677,6 +677,12 @@ function FullscreenExample() {
|
|
|
677
677
|
}
|
|
678
678
|
```
|
|
679
679
|
|
|
680
|
+
iPhone Safari does not implement the HTML5 Fullscreen API. When `enterFullscreen()` or MobileVR runs on an iPhone, the viewer covers the visual viewport and scrolls the page in landscape so Safari’s URL and toolbar can collapse. If the bars stay visible, an on-screen prompt asks the user to swipe. Host pages should set:
|
|
681
|
+
|
|
682
|
+
```html
|
|
683
|
+
<meta name="viewport" content="width=device-width, initial-scale=1, viewport-fit=cover" />
|
|
684
|
+
```
|
|
685
|
+
|
|
680
686
|
### Imperative scene switching
|
|
681
687
|
|
|
682
688
|
Use `usePanoViewer()` to shorten parent-side commands to `viewer.setScene("roof")`. Keep using controlled `activeSceneId` when the host UI needs to render the current scene id reactively. For uncontrolled mode, `defaultActiveSceneId` still lets imperative calls update the internal state directly.
|
package/README.zh-CN.md
CHANGED
|
@@ -650,6 +650,12 @@ function FullscreenExample() {
|
|
|
650
650
|
}
|
|
651
651
|
```
|
|
652
652
|
|
|
653
|
+
iPhone Safari 不支持 HTML5 Fullscreen API。在 iPhone 上调用 `enterFullscreen()` 或进入 MobileVR 时,查看器会铺满 visual viewport,并在横屏滚动页面,以便收起 Safari 的地址栏和工具栏。若栏仍可见,界面会提示用户滑动。宿主页面应设置:
|
|
654
|
+
|
|
655
|
+
```html
|
|
656
|
+
<meta name="viewport" content="width=device-width, initial-scale=1, viewport-fit=cover" />
|
|
657
|
+
```
|
|
658
|
+
|
|
653
659
|
### 命令式切换场景
|
|
654
660
|
|
|
655
661
|
使用 `usePanoViewer()` 可将父组件侧命令缩短为 `viewer.setScene("roof")`。当宿主 UI 需要响应式显示当前场景 id 时,仍建议继续使用受控 `activeSceneId`。若使用非受控模式,`defaultActiveSceneId` 依然允许命令式调用直接更新内部状态。
|