@netless/appliance-plugin 1.1.24 → 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.
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-D1N3tpY5.js");exports.ActiveContainerType=e.ActiveContainerType;exports.ApplianceMultiPlugin=e.ApplianceMultiPlugin;exports.ApplianceNames=e.ApplianceNames;exports.ApplianceSigleWrapper=e.ApplianceSigleWrapper;exports.ApplianceSinglePlugin=e.ApplianceSinglePlugin;exports.AutoDrawPlugin=e.AutoDrawPlugin;exports.ECanvasShowType=e.ECanvasShowType;exports.EDataType=e.EDataType;exports.EForceStopReason=e.EForceStopReason;exports.EImageType=e.EImageType;exports.EMatrixrRelationType=e.EMatrixrRelationType;exports.EOperationType=e.EOperationType;exports.EPostMessageType=e.EPostMessageType;exports.ERenderFilterType=e.ERenderFilterType;exports.EScaleType=e.EScaleType;exports.EStrokeType=e.EStrokeType;exports.EToolsKey=e.EToolsKey;exports.ElayerType=e.ElayerType;exports.EmitEventType=e.EmitEventType;exports.EventMessageType=e.EventMessageType;exports.EvevtWorkState=e.EvevtWorkState;exports.EvevtWorkType=e.EvevtWorkType;exports.InternalMsgEmitterType=e.InternalMsgEmitterType;exports.Plugin=e.Plugin;exports.ShapeType=e.ShapeType;exports.fullWorkerUrl=e.fullWorker;exports.subWorkerUrl=e.subWorker;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-CMjBOlnk.js");exports.ActiveContainerType=e.ActiveContainerType;exports.ApplianceMultiPlugin=e.ApplianceMultiPlugin;exports.ApplianceNames=e.ApplianceNames;exports.ApplianceSigleWrapper=e.ApplianceSigleWrapper;exports.ApplianceSinglePlugin=e.ApplianceSinglePlugin;exports.AutoDrawPlugin=e.AutoDrawPlugin;exports.ECanvasShowType=e.ECanvasShowType;exports.EDataType=e.EDataType;exports.EForceStopReason=e.EForceStopReason;exports.EImageType=e.EImageType;exports.EMatrixrRelationType=e.EMatrixrRelationType;exports.EOperationType=e.EOperationType;exports.EPostMessageType=e.EPostMessageType;exports.ERenderFilterType=e.ERenderFilterType;exports.EScaleType=e.EScaleType;exports.EStrokeType=e.EStrokeType;exports.EToolsKey=e.EToolsKey;exports.ElayerType=e.ElayerType;exports.EmitEventType=e.EmitEventType;exports.EventMessageType=e.EventMessageType;exports.EvevtWorkState=e.EvevtWorkState;exports.EvevtWorkType=e.EvevtWorkType;exports.InternalMsgEmitterType=e.InternalMsgEmitterType;exports.Plugin=e.Plugin;exports.ShapeType=e.ShapeType;exports.fullWorkerUrl=e.fullWorker;exports.subWorkerUrl=e.subWorker;
@@ -1,4 +1,4 @@
1
- import { ae as s, a8 as p, ab as r, aa as t, a9 as l, am as n, U as i, o, af as E, l as y, E as T, aj as g, n as c, ak as u, m as v, t as S, k, ah as m, a2 as A, ag as M, q as P, ai as W, ad as f, al as h, ac as R, a6 as U, a7 as b } from "./index-B0SzWigt.mjs";
1
+ import { ae as s, a8 as p, ab as r, aa as t, a9 as l, am as n, U as i, o, af as E, l as y, E as T, aj as g, n as c, ak as u, m as v, t as S, k, ah as m, a2 as A, ag as M, q as P, ai as W, ad as f, al as h, ac as R, a6 as U, a7 as b } from "./index-DU_AJ-7Y.mjs";
2
2
  export {
3
3
  s as ActiveContainerType,
4
4
  p as ApplianceMultiPlugin,
@@ -9,9 +9,12 @@ export interface TextEditorManager {
9
9
  readonly internalMsgEmitter: EventEmitter2;
10
10
  readonly publicMsgEmitter: EventEmitter2;
11
11
  readonly control: BaseApplianceManager;
12
+ UndoTickerId?: number;
12
13
  editors: Map<string, TextEditorInfo>;
13
14
  /** 当前激活的文本编辑器 */
14
15
  activeId?: string;
16
+ /** 添加撤销栈 */
17
+ addUndoTicker(undoTickerId: number, viewId: string): void;
15
18
  /** 通过view组建中更新文本 */
16
19
  updateForViewEdited(activeId?: string, info?: TextEditorInfo): void;
17
20
  /** 过滤文本编辑器 */
@@ -21,7 +24,7 @@ export interface TextEditorManager {
21
24
  /** 校验是否删除空文本或事失焦 */
22
25
  checkEmptyTextBlur(): void;
23
26
  /** 激活文本编辑组件 */
24
- active(workId: string): void;
27
+ active(workId: string, undoTickerId?: number | string): void;
25
28
  /** 不激活文本编辑组件 */
26
29
  unActive(blurId: string): void;
27
30
  /** 创建文本来源于main */
@@ -82,8 +85,10 @@ export declare class TextEditorManagerImpl implements TextEditorManager {
82
85
  activeId?: string;
83
86
  private proxyMap;
84
87
  private taskqueue;
88
+ private undoTickerId?;
85
89
  constructor(props: BaseSubWorkModuleProps);
86
90
  get collector(): import("../../collector").Collector | undefined;
91
+ set UndoTickerId(value: number);
87
92
  filterEditor(viewId: string): Map<string, TextEditorInfo>;
88
93
  get interceptors(): {
89
94
  set: (workId: string, info: TextEditorInfo) => true | undefined;
@@ -96,8 +101,9 @@ export declare class TextEditorManagerImpl implements TextEditorManager {
96
101
  onCameraChange(cameraOpt: ICameraOpt, viewId: string): void;
97
102
  onServiceDerive(data: IWorkerMessage): void;
98
103
  updateForViewEdited(activeId: string, info: TextEditorInfo): void;
99
- active(workId: string): void;
104
+ active(workId: string, undoTickerId?: number | string): void;
100
105
  unActive(blurId: string): void;
106
+ addUndoTicker(undoTickerId: number | string, viewId: string): void;
101
107
  createTextForMasterController(params: TextEditorInfo & {
102
108
  workId: string;
103
109
  viewId: string;
@@ -121,7 +121,11 @@ export declare enum EPostMessageType {
121
121
  /** 变更dpr */
122
122
  UpdateDpr = 29,
123
123
  /** 设置字体库 */
124
- SetFontFace = 30
124
+ SetFontFace = 30,
125
+ /** 上报错误 */
126
+ ReportError = 31,
127
+ /** 上报日志 */
128
+ ReportLog = 32
125
129
  }
126
130
  export type ECanvasContextType = "webgl2" | "webgl" | "2d";
127
131
  export declare enum ECanvasShowType {
@@ -206,6 +206,7 @@ export declare class MasterControlForWorker extends MasterController {
206
206
  getConsumeCount(): number;
207
207
  setWorkerTasksqueueCount(num: number): void;
208
208
  collectorSyncData(sp: IMainMessage[]): void;
209
+ foceUndoTickerEnd(id: string | number, viewId: string): void;
209
210
  private collectorAsyncData;
210
211
  private onLocalEventEnd;
211
212
  private onLocalEventDoing;
@@ -256,6 +256,8 @@ export interface IUpdateSelectorPropsType {
256
256
  textUpdateForWoker?: boolean;
257
257
  /** 平滑同步 */
258
258
  smoothSync?: boolean;
259
+ /** 记录撤销重做id */
260
+ needUndoTicker?: number | string;
259
261
  }
260
262
  export interface IUpdateSelectorCallbackPropsType {
261
263
  res?: IMainMessage;
@@ -47,6 +47,7 @@ export declare class LocalWorkForFullWorker extends LocalWork {
47
47
  ops?: string;
48
48
  }>;
49
49
  smoothSync?: boolean;
50
+ needUndoTicker?: number | string;
50
51
  }) => void;
51
52
  }): Promise<IMainMessage | undefined>;
52
53
  blurSelector(data?: IWorkerMessage): Promise<void>;
@@ -58,9 +59,9 @@ export declare class LocalWorkForFullWorker extends LocalWork {
58
59
  protected drawEraserCombine(workId: string, drawCount: number): Promise<void>;
59
60
  protected drawPencilCombine(workId: string, drawCount: number): Promise<void>;
60
61
  protected drawSelector(res: IMainMessage, isLockSentEventCursor?: boolean): Promise<void>;
61
- protected drawPencilFull(res: IMainMessage, isLockSentEventCursor?: boolean): Promise<void>;
62
- protected drawEraserFull(workShapeNode: BitMapEraserShape | PencilEraserShape, res: IMainMessage, isLockSentEventCursor?: boolean): Promise<void>;
63
- protected drawEraser(result: IMainMessage, isLockSentEventCursor?: boolean): Promise<void>;
62
+ protected drawPencilFull(res: IMainMessage, isLockSentEventCursor?: boolean, needUndoTicker?: number): Promise<void>;
63
+ protected drawEraserFull(workShapeNode: BitMapEraserShape | PencilEraserShape, res: IMainMessage, isLockSentEventCursor?: boolean, needUndoTicker?: number): Promise<void>;
64
+ protected drawEraser(result: IMainMessage, isLockSentEventCursor?: boolean, needUndoTicker?: number): Promise<void>;
64
65
  protected drawShape(res: IMainMessage): Promise<void>;
65
66
  protected drawPencil(res: IMainMessage): Promise<void>;
66
67
  protected runEffectSelectWork(willSyncService?: boolean): Promise<void>;
@@ -4,7 +4,7 @@ export type PositionType = {
4
4
  x: number;
5
5
  y: number;
6
6
  };
7
- export declare const DraggableBox: (props: {
7
+ export declare const DraggableBox: React.MemoExoticComponent<(props: {
8
8
  editors?: Map<string, TextEditorInfo>;
9
9
  canSelectorSwitch: boolean;
10
- }) => React.JSX.Element;
10
+ }) => React.JSX.Element>;