@netless/window-manager 0.4.48 → 0.4.50
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/CHANGELOG.md +10 -1
- package/LICENSE.txt +21 -0
- package/dist/index.cjs.js +295 -13
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.es.js +29957 -3375
- package/dist/index.es.js.map +1 -1
- package/dist/index.umd.js +295 -13
- package/dist/index.umd.js.map +1 -1
- package/package.json +14 -15
- package/src/AppManager.ts +3 -0
- package/src/View/MainView.ts +2 -2
- package/pnpm-lock.yaml +0 -4901
package/package.json
CHANGED
@@ -1,23 +1,13 @@
|
|
1
1
|
{
|
2
2
|
"name": "@netless/window-manager",
|
3
|
-
"version": "0.4.
|
3
|
+
"version": "0.4.50",
|
4
4
|
"description": "",
|
5
5
|
"main": "dist/index.cjs.js",
|
6
6
|
"module": "dist/index.es.js",
|
7
7
|
"types": "dist/index.d.ts",
|
8
8
|
"repository": "netless-io/window-manager",
|
9
|
-
"
|
10
|
-
|
11
|
-
"build": "vite build && yarn type-gen",
|
12
|
-
"type-gen": "tsc --emitDeclarationOnly",
|
13
|
-
"predev": "yarn type-gen",
|
14
|
-
"build:lib:types": "tsc --emitDeclarationOnly",
|
15
|
-
"lint": "eslint --ext .ts,.tsx,.svelte . && prettier --check .",
|
16
|
-
"test": "vitest"
|
17
|
-
},
|
18
|
-
"keywords": [],
|
19
|
-
"author": "",
|
20
|
-
"license": "ISC",
|
9
|
+
"author": "l1shen <lishen1635@gmail.com> (https://github.com/l1shen)",
|
10
|
+
"license": "MIT",
|
21
11
|
"peerDependencies": {
|
22
12
|
"white-web-sdk": "^2.16.0"
|
23
13
|
},
|
@@ -32,7 +22,7 @@
|
|
32
22
|
"video.js": ">=7"
|
33
23
|
},
|
34
24
|
"devDependencies": {
|
35
|
-
"@netless/app-docs-viewer": "^0.2.
|
25
|
+
"@netless/app-docs-viewer": "^0.2.10",
|
36
26
|
"@netless/app-media-player": "0.1.0-beta.5",
|
37
27
|
"@rollup/plugin-commonjs": "^20.0.0",
|
38
28
|
"@rollup/plugin-node-resolve": "^13.0.4",
|
@@ -62,5 +52,14 @@
|
|
62
52
|
"vite": "^2.5.3",
|
63
53
|
"vitest": "^0.14.1",
|
64
54
|
"white-web-sdk": "2.16.33"
|
55
|
+
},
|
56
|
+
"scripts": {
|
57
|
+
"prettier": "prettier --write .",
|
58
|
+
"build": "vite build && yarn type-gen",
|
59
|
+
"type-gen": "tsc --emitDeclarationOnly",
|
60
|
+
"predev": "yarn type-gen",
|
61
|
+
"build:lib:types": "tsc --emitDeclarationOnly",
|
62
|
+
"lint": "eslint --ext .ts,.tsx,.svelte . && prettier --check .",
|
63
|
+
"test": "vitest"
|
65
64
|
}
|
66
|
-
}
|
65
|
+
}
|
package/src/AppManager.ts
CHANGED
@@ -784,6 +784,9 @@ export class AppManager {
|
|
784
784
|
});
|
785
785
|
this.mainViewProxy.onReconnect();
|
786
786
|
await Promise.all(reconnected);
|
787
|
+
if (this.callbacksNode) {
|
788
|
+
this.onSceneChange(this.callbacksNode);
|
789
|
+
}
|
787
790
|
}
|
788
791
|
|
789
792
|
public notifyContainerRectUpdate(rect: TeleBoxRect) {
|
package/src/View/MainView.ts
CHANGED
@@ -83,8 +83,8 @@ export class MainViewProxy {
|
|
83
83
|
}
|
84
84
|
|
85
85
|
public start() {
|
86
|
-
if (this.started) return;
|
87
86
|
this.sizeChangeHandler(this.mainViewSize);
|
87
|
+
if (this.started) return;
|
88
88
|
this.addCameraListener();
|
89
89
|
this.addCameraReaction();
|
90
90
|
this.started = true;
|
@@ -114,7 +114,7 @@ export class MainViewProxy {
|
|
114
114
|
};
|
115
115
|
|
116
116
|
public sizeChangeHandler = debounce((size: Size) => {
|
117
|
-
if (size
|
117
|
+
if (size) {
|
118
118
|
this.moveCameraToContian(size);
|
119
119
|
this.moveCamera(this.mainViewCamera);
|
120
120
|
}
|