@netless/window-manager 1.0.0-canary.42 → 1.0.0-canary.45
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.cjs.js +12884 -115
- package/dist/index.es.js +2775 -3584
- package/dist/index.umd.js +12892 -127
- package/dist/src/index.d.ts +6 -4
- package/dist/style.css +795 -1
- package/docs/mirgrate-to-1.0.md +34 -5
- package/package.json +3 -3
- package/pnpm-lock.yaml +8 -8
- package/src/index.ts +29 -22
- package/vite.config.js +5 -4
package/dist/src/index.d.ts
CHANGED
@@ -84,18 +84,18 @@ export declare type MountParams = {
|
|
84
84
|
container?: HTMLElement;
|
85
85
|
/** 白板高宽比例, 默认为 9 / 16 */
|
86
86
|
containerSizeRatio?: number;
|
87
|
-
/** @deprecated */
|
88
|
-
chessboard?: boolean;
|
89
87
|
collectorContainer?: HTMLElement;
|
90
88
|
collectorStyles?: Partial<CSSStyleDeclaration>;
|
91
89
|
overwriteStyles?: string;
|
92
|
-
containerStyle?: string;
|
93
|
-
stageStyle?: string;
|
94
90
|
cursor?: boolean;
|
95
91
|
debug?: boolean;
|
96
92
|
disableCameraTransform?: boolean;
|
97
93
|
prefersColorScheme?: TeleBoxColorScheme;
|
94
|
+
/** @deprecated */
|
95
|
+
chessboard?: boolean;
|
98
96
|
applianceIcons?: ApplianceIcons;
|
97
|
+
containerStyle?: string;
|
98
|
+
stageStyle?: string;
|
99
99
|
fullscreen?: TeleBoxFullscreen;
|
100
100
|
/** Custom `style` attribute value for content area of all boxes. Can be overwritten by box. */
|
101
101
|
defaultBoxBodyStyle?: string | null;
|
@@ -127,6 +127,7 @@ export declare class WindowManager extends InvisiblePlugin<WindowMangerAttribute
|
|
127
127
|
private boxManager?;
|
128
128
|
private static params?;
|
129
129
|
private cameraUpdating;
|
130
|
+
private nextCamera;
|
130
131
|
containerSizeRatio: number;
|
131
132
|
constructor(context: InvisiblePluginContext);
|
132
133
|
static mount(params: MountParams): Promise<WindowManager>;
|
@@ -235,6 +236,7 @@ export declare class WindowManager extends InvisiblePlugin<WindowMangerAttribute
|
|
235
236
|
moveCamera: (camera: Partial<Camera> & {
|
236
237
|
animationMode?: AnimationMode;
|
237
238
|
}) => void;
|
239
|
+
private onCameraUpdated;
|
238
240
|
convertToPointInWorld(point: Point): Point;
|
239
241
|
setCameraBound(cameraBound: CameraBound): void;
|
240
242
|
onDestroy(): void;
|