@netless/window-manager 0.3.8-canary.1 → 0.3.8-canary.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/BoxManager.d.ts +1 -1
- package/dist/index.es.js +1 -1
- package/dist/index.es.js.map +1 -1
- package/dist/index.umd.js +1 -1
- package/dist/index.umd.js.map +1 -1
- package/package.json +1 -1
- package/src/AppManager.ts +3 -3
- package/src/BoxManager.ts +2 -2
- package/src/index.ts +1 -1
- /package/src/{ViewManager.ts → viewManager.ts} +0 -0
package/package.json
CHANGED
package/src/AppManager.ts
CHANGED
@@ -169,9 +169,6 @@ export class AppManager {
|
|
169
169
|
const attrs = params.attributes ?? {};
|
170
170
|
this.safeUpdateAttributes([appId], attrs);
|
171
171
|
this.store.setupAppAttributes(params, appId, isDynamicPPT);
|
172
|
-
if (this.boxManager.minimized) {
|
173
|
-
this.boxManager.setMinimized(false);
|
174
|
-
}
|
175
172
|
const needFocus = !this.boxManager.minimized;
|
176
173
|
if (needFocus) {
|
177
174
|
this.store.setAppFocus(appId, true);
|
@@ -187,6 +184,9 @@ export class AppManager {
|
|
187
184
|
y: appProxy.box?.y,
|
188
185
|
});
|
189
186
|
}
|
187
|
+
if (this.boxManager.minimized) {
|
188
|
+
this.boxManager.setMinimized(false, false);
|
189
|
+
}
|
190
190
|
}
|
191
191
|
|
192
192
|
public async closeApp(appId: string) {
|
package/src/BoxManager.ts
CHANGED
@@ -290,8 +290,8 @@ export class BoxManager {
|
|
290
290
|
this.teleBoxManager.setMaximized(maximized, true);
|
291
291
|
}
|
292
292
|
|
293
|
-
public setMinimized(minimized: boolean) {
|
294
|
-
this.teleBoxManager.setMinimized(minimized,
|
293
|
+
public setMinimized(minimized: boolean, skipUpdate = true) {
|
294
|
+
this.teleBoxManager.setMinimized(minimized, skipUpdate);
|
295
295
|
}
|
296
296
|
|
297
297
|
public setReadonly(readonly: boolean) {
|
package/src/index.ts
CHANGED
@@ -169,7 +169,7 @@ export class WindowManager extends InvisiblePlugin<WindowMangerAttributes> {
|
|
169
169
|
public static containerSizeRatio = DEFAULT_CONTAINER_RATIO;
|
170
170
|
private static isCreated = false;
|
171
171
|
|
172
|
-
public version = "0.3.8-canary.
|
172
|
+
public version = "0.3.8-canary.2";
|
173
173
|
|
174
174
|
public appListeners?: AppListeners;
|
175
175
|
|
File without changes
|