@netless/window-manager 1.0.0 → 1.0.2
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/dist/index.js +15 -15
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +842 -822
- package/dist/index.mjs.map +1 -1
- package/docs/api.md +2 -0
- package/docs/camera.md +4 -3
- package/docs/cn/api.md +2 -0
- package/docs/cn/camera.md +3 -3
- package/package.json +2 -2
- package/src/BuiltinApps.ts +1 -1
package/docs/api.md
CHANGED
@@ -294,6 +294,8 @@ manager.emitter.on(events, listener)
|
|
294
294
|
| ready | undefined | | Triggered when all apps are created |
|
295
295
|
| sceneStateChange | SceneState | | Fired when sceneState is modified |
|
296
296
|
| pageStateChange | PageState | | |
|
297
|
+
| fullscreenChange | boolean | | Triggered when the full-screen status changes |
|
298
|
+
| appsChange | string[] | | Triggered when the list of opened apps changes |
|
297
299
|
|
298
300
|
```ts
|
299
301
|
type LoadAppEvent = {
|
package/docs/camera.md
CHANGED
@@ -45,8 +45,9 @@ manager.setCameraBound({
|
|
45
45
|
## Prohibit/allow movement and scaling of `mainView` `camera`
|
46
46
|
```typescript
|
47
47
|
// Prohibit `camera` from moving and zooming
|
48
|
-
manager.mainView.disableCameraTransform =
|
48
|
+
manager.mainView.disableCameraTransform = true
|
49
49
|
|
50
50
|
// restore `camera` movement, scaling
|
51
|
-
manager.mainView.disableCameraTransform =
|
52
|
-
```
|
51
|
+
manager.mainView.disableCameraTransform = false
|
52
|
+
```
|
53
|
+
**Note** that when this property is `true`, only device operations are prohibited. You can still actively adjust the perspective using the moveCamera method.
|
package/docs/cn/api.md
CHANGED
@@ -292,6 +292,8 @@ manager.emitter.on(events, listener)
|
|
292
292
|
| ready | undefined | | 当所有 APP 创建完毕时触发 |
|
293
293
|
| sceneStateChange | SceneState | | 当 sceneState 修改时触发 |
|
294
294
|
| pageStateChange | PageState | | |
|
295
|
+
| fullscreenChange | boolean | | 当全屏状态改变时触发 |
|
296
|
+
| appsChange | string[] | | 被打开的app列表改变时触发 |
|
295
297
|
|
296
298
|
```ts
|
297
299
|
type LoadAppEvent = {
|
package/docs/cn/camera.md
CHANGED
@@ -45,9 +45,9 @@ manager.setCameraBound({
|
|
45
45
|
## 禁止/允许 `mainView` `camera` 的移动,缩放
|
46
46
|
```typescript
|
47
47
|
// 禁止 `camera` 移动,缩放
|
48
|
-
manager.mainView.disableCameraTransform =
|
48
|
+
manager.mainView.disableCameraTransform = true
|
49
49
|
|
50
50
|
// 恢复 `camera` 移动,缩放
|
51
|
-
manager.mainView.disableCameraTransform =
|
51
|
+
manager.mainView.disableCameraTransform = false
|
52
52
|
```
|
53
|
-
|
53
|
+
**注意**,该属性为 `true` 时,仅仅禁止设备操作。你依然可以用 `moveCamera` 方法主动调整视角。
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@netless/window-manager",
|
3
|
-
"version": "1.0.
|
3
|
+
"version": "1.0.2",
|
4
4
|
"description": "Multi-window mode for Netless Whiteboard",
|
5
5
|
"author": "l1shen <lishen1635@gmail.com> (https://github.com/l1shen)",
|
6
6
|
"license": "MIT",
|
@@ -42,7 +42,7 @@
|
|
42
42
|
"devDependencies": {
|
43
43
|
"@hyrious/dts": "^0.2.2",
|
44
44
|
"@netless/app-docs-viewer": "^0.2.18",
|
45
|
-
"@netless/app-media-player": "0.1.
|
45
|
+
"@netless/app-media-player": "0.1.4",
|
46
46
|
"@rollup/plugin-commonjs": "^20.0.0",
|
47
47
|
"@rollup/plugin-node-resolve": "^13.0.4",
|
48
48
|
"@rollup/plugin-url": "^6.1.0",
|