@netless/window-manager 0.4.9-canary.0 → 0.4.9-canary.1
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/callback.d.ts +2 -1
- package/dist/index.es.js +2 -2
- package/dist/index.es.js.map +1 -1
- package/dist/index.umd.js +2 -2
- package/dist/index.umd.js.map +1 -1
- package/docs/api.md +1 -0
- package/package.json +1 -1
- package/src/AppManager.ts +1 -0
- package/src/callback.ts +2 -1
package/docs/api.md
CHANGED
@@ -252,6 +252,7 @@ manager.callbacks.on(events, listener)
|
|
252
252
|
| canUndoStepsChange | number | | 当前 focus 的 view 可撤销步数改变 |
|
253
253
|
| loadApp | LoadAppEvent | | 加载远程APP 事件 |
|
254
254
|
| ready | undefined | | 当所有 APP 创建完毕时触发 |
|
255
|
+
| sceneStateChange | SceneState | | 当 sceneState 修改时触发 |
|
255
256
|
|
256
257
|
```ts
|
257
258
|
type LoadAppEvent = {
|
package/package.json
CHANGED
package/src/AppManager.ts
CHANGED
package/src/callback.ts
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
import Emittery from "emittery";
|
2
2
|
import type { TeleBoxColorScheme, TELE_BOX_STATE } from "@netless/telebox-insider";
|
3
|
-
import type { CameraState, ViewVisionMode } from "white-web-sdk";
|
3
|
+
import type { CameraState, SceneState, ViewVisionMode } from "white-web-sdk";
|
4
4
|
import type { LoadAppEvent } from "./Register";
|
5
5
|
|
6
6
|
export type PublicEvent = {
|
@@ -17,6 +17,7 @@ export type PublicEvent = {
|
|
17
17
|
canUndoStepsChange: number;
|
18
18
|
loadApp: LoadAppEvent;
|
19
19
|
ready: undefined; // 所有 APP 创建完毕时触发
|
20
|
+
sceneStateChange: SceneState;
|
20
21
|
};
|
21
22
|
|
22
23
|
export type CallbacksType = Emittery<PublicEvent>;
|