@netless/appliance-plugin 1.1.23 → 1.1.25-beta.0
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/cdn/cdn.js +1 -1
- package/cdn/{fullWorker-ZK5NZY.js → fullWorker-pBXb8u.js} +111 -111
- package/cdn/{subWorker-BiAuBO.js → subWorker-6cS2MG.js} +111 -111
- package/dist/appliance-plugin.js +1 -1
- package/dist/appliance-plugin.mjs +1 -1
- package/dist/component/textEditor/manager.d.ts +8 -2
- package/dist/core/enum.d.ts +5 -1
- package/dist/core/mainEngine.d.ts +1 -0
- package/dist/core/types.d.ts +2 -0
- package/dist/core/worker/fullWorkerLocal.d.ts +4 -3
- package/dist/displayer/floatBar/dragBox/index.d.ts +2 -2
- package/dist/fullWorker.js +111 -111
- package/dist/index-CMjBOlnk.js +1 -0
- package/dist/index-CibznVn_.js +1 -0
- package/dist/{index-KFAuNRB0.mjs → index-DU_AJ-7Y.mjs} +3061 -2964
- package/dist/{index-ANWwhC4x.mjs → index-Dp62ElSg.mjs} +1598 -1517
- package/dist/plugin/baseViewContainerManager.d.ts +3 -1
- package/dist/plugin/displayerView.d.ts +1 -1
- package/dist/subWorker.js +111 -111
- package/dist/undo/index.d.ts +12 -8
- package/package.json +1 -1
- package/dist/index-BVb1IYUU.js +0 -1
- package/dist/index-CWK75u1P.js +0 -1
package/dist/undo/index.d.ts
CHANGED
|
@@ -15,7 +15,7 @@ export declare enum EUndoDataType {
|
|
|
15
15
|
}
|
|
16
16
|
export interface IUndoStackItem {
|
|
17
17
|
type: EUndoType;
|
|
18
|
-
id?: number;
|
|
18
|
+
id?: number | string;
|
|
19
19
|
sdkStep?: number;
|
|
20
20
|
data?: Set<ILocalStorageDataItem>;
|
|
21
21
|
scenePath: string;
|
|
@@ -36,20 +36,23 @@ export declare class UndoRedoMethod {
|
|
|
36
36
|
emitter: EventEmitter2;
|
|
37
37
|
undoStack: IUndoStackItem[];
|
|
38
38
|
redoStack: IUndoStackItem[];
|
|
39
|
-
worker: MasterController;
|
|
40
|
-
control: ApplianceManagerLike;
|
|
41
|
-
room: Room;
|
|
39
|
+
readonly worker: MasterController;
|
|
40
|
+
readonly control: ApplianceManagerLike;
|
|
41
|
+
readonly room: Room;
|
|
42
|
+
readonly viewId: string;
|
|
42
43
|
private isTicking;
|
|
43
|
-
private
|
|
44
|
-
private viewId;
|
|
44
|
+
private _undoTickerId?;
|
|
45
45
|
private scenePath?;
|
|
46
46
|
private tickStartStorerCache?;
|
|
47
47
|
private excludeIds;
|
|
48
48
|
constructor(props: UndoRedoMethodProps);
|
|
49
49
|
get collector(): import("../collector").Collector | undefined;
|
|
50
|
+
get undoTickerId(): number | string | undefined;
|
|
51
|
+
get tmpTickStartStorerCache(): Map<string, BaseCollectorReducerAction | undefined> | undefined;
|
|
50
52
|
addExcludeIds(ids: string[]): void;
|
|
51
|
-
undoTickerStart(id: number, scenePath: string): void;
|
|
52
|
-
|
|
53
|
+
undoTickerStart(id: number | string, scenePath: string): void;
|
|
54
|
+
undoTickerEnd(id: number | string, scenePath: string): void;
|
|
55
|
+
undoTickerEndSync(id: number | string, viewId: string, scenePath: string, isEmit?: boolean): void;
|
|
53
56
|
undo(scenePath: string): number;
|
|
54
57
|
redo(scenePath: string): number;
|
|
55
58
|
clear(): void;
|
|
@@ -59,6 +62,7 @@ export declare class UndoRedoMethod {
|
|
|
59
62
|
canRedo(): boolean;
|
|
60
63
|
onChangeScene: import("lodash").DebouncedFunc<() => void>;
|
|
61
64
|
onFocusView(): void;
|
|
65
|
+
private especialDiff;
|
|
62
66
|
private diffFun;
|
|
63
67
|
private isDrawEffectiveScene;
|
|
64
68
|
private isDeleteEffectiveScene;
|