@netless/window-manager 0.4.4 → 0.4.7
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 +20 -0
- package/dist/AppManager.d.ts +1 -0
- package/dist/Cursor/Cursor.d.ts +1 -0
- package/dist/Cursor/index.d.ts +3 -0
- package/dist/index.d.ts +9 -1
- package/dist/index.es.js +5 -5
- package/dist/index.es.js.map +1 -1
- package/dist/index.umd.js +3 -3
- package/dist/index.umd.js.map +1 -1
- package/dist/style.css +1 -1
- package/docs/api.md +36 -0
- package/docs/migrate.md +18 -0
- package/package.json +4 -4
- package/src/AppManager.ts +14 -1
- package/src/Cursor/Cursor.svelte +2 -2
- package/src/Cursor/Cursor.ts +6 -1
- package/src/Cursor/index.ts +35 -21
- package/src/Utils/RoomHacker.ts +7 -1
- package/src/index.ts +50 -3
package/CHANGELOG.md
CHANGED
@@ -1,3 +1,23 @@
|
|
1
|
+
## 0.4.7
|
2
|
+
|
3
|
+
1. 修改 `addPage` 接口
|
4
|
+
|
5
|
+
## 0.4.6
|
6
|
+
|
7
|
+
1. 升级 `@netless/telebox-insider` 至 `0.2.24`
|
8
|
+
2. 内置 `video.js` 的 css, 使用视频插件时不再需要手动引入
|
9
|
+
3. 添加 `addPage` `nextPage` `prevPage`
|
10
|
+
|
11
|
+
## 0.4.5
|
12
|
+
1. 修复 manager 的 `insertText` `insertImage` `completeImageUpload` `lockImage` `lockImages` 没有代理到 `room` 的问题
|
13
|
+
2. 升级 `@netless/telebox-insider` 至 `0.2.23`
|
14
|
+
3. 优化双指缩放时光标的位置
|
15
|
+
|
16
|
+
## 0.4.4
|
17
|
+
|
18
|
+
1. 代理 `room` 的 `insertText` `insertImage` `completeImageUpload` `lockImage` `lockImages` 方法
|
19
|
+
2. 修复回放时 view didRelease 的报错问题
|
20
|
+
|
1
21
|
## 0.4.3
|
2
22
|
|
3
23
|
1. 代理 `room` 的 `delete` `copy` `paste` `duplicate` 方法
|
package/dist/AppManager.d.ts
CHANGED
@@ -25,6 +25,7 @@ export declare class AppManager {
|
|
25
25
|
private callbacksNode;
|
26
26
|
private appCreateQueue;
|
27
27
|
constructor(windowManger: WindowManager);
|
28
|
+
private createRootDirScenesCallback;
|
28
29
|
private get eventName();
|
29
30
|
get attributes(): import("./index").WindowMangerAttributes;
|
30
31
|
get canOperate(): boolean;
|
package/dist/Cursor/Cursor.d.ts
CHANGED
package/dist/Cursor/index.d.ts
CHANGED
@@ -22,6 +22,9 @@ export declare class CursorManager {
|
|
22
22
|
private sideEffectManager;
|
23
23
|
private store;
|
24
24
|
constructor(manager: AppManager, enableCursor: boolean);
|
25
|
+
private onCursorMove;
|
26
|
+
private initCursorInstance;
|
27
|
+
private canMoveCursor;
|
25
28
|
setupWrapper(wrapper: HTMLElement): void;
|
26
29
|
setMainViewDivElement(div: HTMLDivElement): void;
|
27
30
|
get boxState(): any;
|
package/dist/index.d.ts
CHANGED
@@ -3,6 +3,7 @@ import { AppManager } from "./AppManager";
|
|
3
3
|
import { CursorManager } from "./Cursor";
|
4
4
|
import { InvisiblePlugin, ViewMode } from "white-web-sdk";
|
5
5
|
import { ReconnectRefresher } from "./ReconnectRefresher";
|
6
|
+
import "video.js/dist/video-js.css";
|
6
7
|
import "./style.css";
|
7
8
|
import "@netless/telebox-insider/dist/style.css";
|
8
9
|
import type { LoadAppEvent } from "./Register";
|
@@ -136,6 +137,10 @@ export declare type MountParams = {
|
|
136
137
|
export declare type CallbacksType = Emittery<PublicEvent>;
|
137
138
|
export declare const callbacks: CallbacksType;
|
138
139
|
export declare const reconnectRefresher: ReconnectRefresher;
|
140
|
+
export declare type AddPageParams = {
|
141
|
+
after?: boolean;
|
142
|
+
scene?: SceneDefinition;
|
143
|
+
};
|
139
144
|
export declare class WindowManager extends InvisiblePlugin<WindowMangerAttributes> {
|
140
145
|
static kind: string;
|
141
146
|
static displayer: Displayer;
|
@@ -180,6 +185,9 @@ export declare class WindowManager extends InvisiblePlugin<WindowMangerAttribute
|
|
180
185
|
* 设置 mainView 的 SceneIndex, 并且切换白板为可写状态
|
181
186
|
*/
|
182
187
|
setMainViewSceneIndex(index: number): Promise<void>;
|
188
|
+
nextPage(): Promise<boolean>;
|
189
|
+
prevPage(): Promise<boolean>;
|
190
|
+
addPage(params?: AddPageParams): Promise<void>;
|
183
191
|
/**
|
184
192
|
* 返回 mainView 的 ScenePath
|
185
193
|
*/
|
@@ -258,7 +266,7 @@ export declare class WindowManager extends InvisiblePlugin<WindowMangerAttribute
|
|
258
266
|
copy(): void;
|
259
267
|
paste(): void;
|
260
268
|
duplicate(): void;
|
261
|
-
insertText(x: number, y: number, text: string): string;
|
269
|
+
insertText(x: number, y: number, text: string | undefined): string;
|
262
270
|
insertImage(info: ImageInformation): void;
|
263
271
|
completeImageUpload(uuid: string, url: string): void;
|
264
272
|
lockImage(uuid: string, locked: boolean): void;
|