@netless/window-manager 0.4.31 → 1.0.0-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/CHANGELOG.md +4 -0
- package/dist/App/AppProxy.d.ts +0 -1
- package/dist/BoxManager.d.ts +7 -5
- package/dist/Cursor/index.d.ts +3 -1
- package/dist/Helper.d.ts +0 -2
- package/dist/InternalEmitter.d.ts +2 -1
- package/dist/View/CameraSynchronizer.d.ts +17 -0
- package/dist/View/MainView.d.ts +4 -5
- package/dist/index.cjs.js +21 -22
- package/dist/index.d.ts +2 -3
- package/dist/index.es.js +2244 -1850
- package/dist/index.umd.js +21 -22
- package/dist/style.css +1 -1
- package/dist/typings.d.ts +2 -1
- package/docs/api.md +1 -1
- package/docs/app-context.md +127 -36
- package/docs/develop-app.md +1 -1
- package/package.json +3 -3
- package/pnpm-lock.yaml +84 -97
- package/src/App/AppContext.ts +1 -1
- package/src/App/AppProxy.ts +0 -9
- package/src/BoxManager.ts +102 -107
- package/src/Cursor/Cursor.ts +3 -3
- package/src/Cursor/index.ts +13 -7
- package/src/Helper.ts +2 -15
- package/src/InternalEmitter.ts +6 -4
- package/src/View/CameraSynchronizer.ts +67 -0
- package/src/View/MainView.ts +45 -53
- package/src/index.ts +31 -56
- package/src/typings.ts +3 -0
- package/vite.config.js +0 -1
- package/dist/ContainerResizeObserver.d.ts +0 -11
- package/dist/index.cjs.js.map +0 -1
- package/dist/index.es.js.map +0 -1
- package/dist/index.umd.js.map +0 -1
- package/src/ContainerResizeObserver.ts +0 -73
package/dist/index.d.ts
CHANGED
@@ -9,7 +9,7 @@ import type { TELE_BOX_STATE } from "./BoxManager";
|
|
9
9
|
import type { Apps, Position } from "./AttributesDelegate";
|
10
10
|
import type { Displayer, SceneDefinition, View, Room, InvisiblePluginContext, Camera, AnimationMode, CameraBound, Point, Rectangle, CameraState, Player, ImageInformation, SceneState } from "white-web-sdk";
|
11
11
|
import type { AppListeners } from "./AppListener";
|
12
|
-
import type { NetlessApp, RegisterParams } from "./typings";
|
12
|
+
import type { ApplianceIcons, NetlessApp, RegisterParams } from "./typings";
|
13
13
|
import type { TeleBoxColorScheme, TeleBoxState } from "@netless/telebox-insider";
|
14
14
|
import type { AppProxy } from "./App";
|
15
15
|
import type { PublicEvent } from "./callback";
|
@@ -87,12 +87,12 @@ export declare type MountParams = {
|
|
87
87
|
debug?: boolean;
|
88
88
|
disableCameraTransform?: boolean;
|
89
89
|
prefersColorScheme?: TeleBoxColorScheme;
|
90
|
+
applianceIcons?: ApplianceIcons;
|
90
91
|
};
|
91
92
|
export declare const reconnectRefresher: ReconnectRefresher;
|
92
93
|
export declare class WindowManager extends InvisiblePlugin<WindowMangerAttributes> implements PageController {
|
93
94
|
static kind: string;
|
94
95
|
static displayer: Displayer;
|
95
|
-
static wrapper?: HTMLElement;
|
96
96
|
static playground?: HTMLElement;
|
97
97
|
static container?: HTMLElement;
|
98
98
|
static debug: boolean;
|
@@ -110,7 +110,6 @@ export declare class WindowManager extends InvisiblePlugin<WindowMangerAttribute
|
|
110
110
|
private _pageState?;
|
111
111
|
private boxManager?;
|
112
112
|
private static params?;
|
113
|
-
private containerResizeObserver?;
|
114
113
|
containerSizeRatio: number;
|
115
114
|
constructor(context: InvisiblePluginContext);
|
116
115
|
static mount(params: MountParams): Promise<WindowManager>;
|