@netless/window-manager 1.0.0-canary.70 → 1.0.0-canary.71
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 +4 -4
- package/dist/index.mjs +4 -4
- package/dist/index.umd.js +4 -4
- package/package.json +1 -1
- package/src/View/MainView.ts +3 -3
package/dist/index.js
CHANGED
@@ -2456,6 +2456,8 @@ class MainViewProxy {
|
|
2456
2456
|
this.view$ = new valueEnhancer.Val(void 0);
|
2457
2457
|
this.createViewSync = () => {
|
2458
2458
|
var _a2;
|
2459
|
+
if (this.manager.windowManger.viewMode$.value === "scroll")
|
2460
|
+
return;
|
2459
2461
|
if (this.manager.boxManager && !this.viewSync) {
|
2460
2462
|
this.viewSync = new ViewSync({
|
2461
2463
|
uid: this.manager.uid,
|
@@ -2594,9 +2596,7 @@ class MainViewProxy {
|
|
2594
2596
|
releaseView(this.mainView);
|
2595
2597
|
})
|
2596
2598
|
]);
|
2597
|
-
|
2598
|
-
this.createViewSync();
|
2599
|
-
}
|
2599
|
+
this.createViewSync();
|
2600
2600
|
this.sideEffectManager.add(() => emitter.on("focusedChange", ({ focused }) => {
|
2601
2601
|
if (focused === void 0) {
|
2602
2602
|
const scenePath = this.store.getMainViewScenePath();
|
@@ -12806,7 +12806,7 @@ const reconnectRefresher = new ReconnectRefresher({ emitter });
|
|
12806
12806
|
const _WindowManager = class extends whiteWebSdk.InvisiblePlugin {
|
12807
12807
|
constructor(context) {
|
12808
12808
|
super(context);
|
12809
|
-
this.version = "1.0.0-canary.
|
12809
|
+
this.version = "1.0.0-canary.71";
|
12810
12810
|
this.dependencies = { "dependencies": { "@juggle/resize-observer": "^3.3.1", "@netless/synced-store": "^2.0.7", "@netless/telebox-insider": "1.0.0-alpha.37", "emittery": "^0.11.0", "lodash": "^4.17.21", "p-retry": "^4.6.2", "side-effect-manager": "^1.2.1", "uuid": "^7.0.3", "value-enhancer": "^1.3.2" }, "peerDependencies": { "white-web-sdk": "^2.16.0" }, "devDependencies": { "@netless/app-docs-viewer": "^1.0.0-canary.3", "@netless/app-plyr": "^0.2.4", "@playwright/test": "^1.23.2", "@rollup/plugin-commonjs": "^20.0.0", "@rollup/plugin-node-resolve": "^13.0.4", "@rollup/plugin-url": "^6.1.0", "@sveltejs/vite-plugin-svelte": "^1.0.0-next.49", "@tsconfig/svelte": "^2.0.1", "@types/debug": "^4.1.7", "@types/lodash": "^4.14.182", "@types/lodash-es": "^4.17.6", "@types/node": "^18.0.3", "@types/uuid": "^8.3.4", "@typescript-eslint/eslint-plugin": "^4.30.0", "@typescript-eslint/parser": "^4.30.0", "@vitest/ui": "^0.14.2", "cypress": "^8.7.0", "dotenv": "^10.0.0", "eslint": "^7.32.0", "eslint-config-prettier": "^8.3.0", "eslint-plugin-svelte3": "^3.2.0", "jsdom": "^19.0.0", "less": "^4.1.3", "prettier": "^2.3.2", "prettier-plugin-svelte": "^2.4.0", "rollup-plugin-analyzer": "^4.0.0", "rollup-plugin-styles": "^3.14.1", "svelte": "^3.42.4", "typescript": "^4.5.5", "vite": "^3.1.3", "vite-plugin-dts": "^1.5.0", "vitest": "^0.23.4", "white-web-sdk": "^2.16.35" } };
|
12811
12811
|
this.emitter = callbacks;
|
12812
12812
|
this.viewMode$ = new valueEnhancer.Val(whiteWebSdk.ViewMode.Broadcaster);
|
package/dist/index.mjs
CHANGED
@@ -2451,6 +2451,8 @@ class MainViewProxy {
|
|
2451
2451
|
this.view$ = new Val(void 0);
|
2452
2452
|
this.createViewSync = () => {
|
2453
2453
|
var _a2;
|
2454
|
+
if (this.manager.windowManger.viewMode$.value === "scroll")
|
2455
|
+
return;
|
2454
2456
|
if (this.manager.boxManager && !this.viewSync) {
|
2455
2457
|
this.viewSync = new ViewSync({
|
2456
2458
|
uid: this.manager.uid,
|
@@ -2589,9 +2591,7 @@ class MainViewProxy {
|
|
2589
2591
|
releaseView(this.mainView);
|
2590
2592
|
})
|
2591
2593
|
]);
|
2592
|
-
|
2593
|
-
this.createViewSync();
|
2594
|
-
}
|
2594
|
+
this.createViewSync();
|
2595
2595
|
this.sideEffectManager.add(() => emitter.on("focusedChange", ({ focused }) => {
|
2596
2596
|
if (focused === void 0) {
|
2597
2597
|
const scenePath = this.store.getMainViewScenePath();
|
@@ -12801,7 +12801,7 @@ const reconnectRefresher = new ReconnectRefresher({ emitter });
|
|
12801
12801
|
const _WindowManager = class extends InvisiblePlugin {
|
12802
12802
|
constructor(context) {
|
12803
12803
|
super(context);
|
12804
|
-
this.version = "1.0.0-canary.
|
12804
|
+
this.version = "1.0.0-canary.71";
|
12805
12805
|
this.dependencies = { "dependencies": { "@juggle/resize-observer": "^3.3.1", "@netless/synced-store": "^2.0.7", "@netless/telebox-insider": "1.0.0-alpha.37", "emittery": "^0.11.0", "lodash": "^4.17.21", "p-retry": "^4.6.2", "side-effect-manager": "^1.2.1", "uuid": "^7.0.3", "value-enhancer": "^1.3.2" }, "peerDependencies": { "white-web-sdk": "^2.16.0" }, "devDependencies": { "@netless/app-docs-viewer": "^1.0.0-canary.3", "@netless/app-plyr": "^0.2.4", "@playwright/test": "^1.23.2", "@rollup/plugin-commonjs": "^20.0.0", "@rollup/plugin-node-resolve": "^13.0.4", "@rollup/plugin-url": "^6.1.0", "@sveltejs/vite-plugin-svelte": "^1.0.0-next.49", "@tsconfig/svelte": "^2.0.1", "@types/debug": "^4.1.7", "@types/lodash": "^4.14.182", "@types/lodash-es": "^4.17.6", "@types/node": "^18.0.3", "@types/uuid": "^8.3.4", "@typescript-eslint/eslint-plugin": "^4.30.0", "@typescript-eslint/parser": "^4.30.0", "@vitest/ui": "^0.14.2", "cypress": "^8.7.0", "dotenv": "^10.0.0", "eslint": "^7.32.0", "eslint-config-prettier": "^8.3.0", "eslint-plugin-svelte3": "^3.2.0", "jsdom": "^19.0.0", "less": "^4.1.3", "prettier": "^2.3.2", "prettier-plugin-svelte": "^2.4.0", "rollup-plugin-analyzer": "^4.0.0", "rollup-plugin-styles": "^3.14.1", "svelte": "^3.42.4", "typescript": "^4.5.5", "vite": "^3.1.3", "vite-plugin-dts": "^1.5.0", "vitest": "^0.23.4", "white-web-sdk": "^2.16.35" } };
|
12806
12806
|
this.emitter = callbacks;
|
12807
12807
|
this.viewMode$ = new Val(ViewMode.Broadcaster);
|
package/dist/index.umd.js
CHANGED
@@ -2449,6 +2449,8 @@
|
|
2449
2449
|
this.view$ = new valueEnhancer.Val(void 0);
|
2450
2450
|
this.createViewSync = () => {
|
2451
2451
|
var _a2;
|
2452
|
+
if (this.manager.windowManger.viewMode$.value === "scroll")
|
2453
|
+
return;
|
2452
2454
|
if (this.manager.boxManager && !this.viewSync) {
|
2453
2455
|
this.viewSync = new ViewSync({
|
2454
2456
|
uid: this.manager.uid,
|
@@ -2587,9 +2589,7 @@
|
|
2587
2589
|
releaseView(this.mainView);
|
2588
2590
|
})
|
2589
2591
|
]);
|
2590
|
-
|
2591
|
-
this.createViewSync();
|
2592
|
-
}
|
2592
|
+
this.createViewSync();
|
2593
2593
|
this.sideEffectManager.add(() => emitter.on("focusedChange", ({ focused }) => {
|
2594
2594
|
if (focused === void 0) {
|
2595
2595
|
const scenePath = this.store.getMainViewScenePath();
|
@@ -12799,7 +12799,7 @@
|
|
12799
12799
|
const _WindowManager = class extends whiteWebSdk.InvisiblePlugin {
|
12800
12800
|
constructor(context) {
|
12801
12801
|
super(context);
|
12802
|
-
this.version = "1.0.0-canary.
|
12802
|
+
this.version = "1.0.0-canary.71";
|
12803
12803
|
this.dependencies = { "dependencies": { "@juggle/resize-observer": "^3.3.1", "@netless/synced-store": "^2.0.7", "@netless/telebox-insider": "1.0.0-alpha.37", "emittery": "^0.11.0", "lodash": "^4.17.21", "p-retry": "^4.6.2", "side-effect-manager": "^1.2.1", "uuid": "^7.0.3", "value-enhancer": "^1.3.2" }, "peerDependencies": { "white-web-sdk": "^2.16.0" }, "devDependencies": { "@netless/app-docs-viewer": "^1.0.0-canary.3", "@netless/app-plyr": "^0.2.4", "@playwright/test": "^1.23.2", "@rollup/plugin-commonjs": "^20.0.0", "@rollup/plugin-node-resolve": "^13.0.4", "@rollup/plugin-url": "^6.1.0", "@sveltejs/vite-plugin-svelte": "^1.0.0-next.49", "@tsconfig/svelte": "^2.0.1", "@types/debug": "^4.1.7", "@types/lodash": "^4.14.182", "@types/lodash-es": "^4.17.6", "@types/node": "^18.0.3", "@types/uuid": "^8.3.4", "@typescript-eslint/eslint-plugin": "^4.30.0", "@typescript-eslint/parser": "^4.30.0", "@vitest/ui": "^0.14.2", "cypress": "^8.7.0", "dotenv": "^10.0.0", "eslint": "^7.32.0", "eslint-config-prettier": "^8.3.0", "eslint-plugin-svelte3": "^3.2.0", "jsdom": "^19.0.0", "less": "^4.1.3", "prettier": "^2.3.2", "prettier-plugin-svelte": "^2.4.0", "rollup-plugin-analyzer": "^4.0.0", "rollup-plugin-styles": "^3.14.1", "svelte": "^3.42.4", "typescript": "^4.5.5", "vite": "^3.1.3", "vite-plugin-dts": "^1.5.0", "vitest": "^0.23.4", "white-web-sdk": "^2.16.35" } };
|
12804
12804
|
this.emitter = callbacks;
|
12805
12805
|
this.viewMode$ = new valueEnhancer.Val(whiteWebSdk.ViewMode.Broadcaster);
|
package/package.json
CHANGED
package/src/View/MainView.ts
CHANGED
@@ -42,9 +42,7 @@ export class MainViewProxy {
|
|
42
42
|
releaseView(this.mainView);
|
43
43
|
}),
|
44
44
|
]);
|
45
|
-
|
46
|
-
this.createViewSync();
|
47
|
-
}
|
45
|
+
this.createViewSync();
|
48
46
|
this.sideEffectManager.add(() => emitter.on("focusedChange", ({ focused }) => {
|
49
47
|
if (focused === undefined) {
|
50
48
|
const scenePath = this.store.getMainViewScenePath();
|
@@ -61,6 +59,8 @@ export class MainViewProxy {
|
|
61
59
|
}
|
62
60
|
|
63
61
|
public createViewSync = () => {
|
62
|
+
// 滚动模式下,不需要同步
|
63
|
+
if (this.manager.windowManger.viewMode$.value === 'scroll') return
|
64
64
|
if (this.manager.boxManager && !this.viewSync) {
|
65
65
|
this.viewSync = new ViewSync({
|
66
66
|
uid: this.manager.uid,
|