@netless/appliance-plugin 1.1.36-beta.1 → 1.1.36-beta.2
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/READMA.zh-CN.md +11 -48
- package/README.md +11 -49
- package/dist/appliance-plugin.js +1 -1
- package/dist/appliance-plugin.mjs +1 -1
- package/dist/assets/{fullWorker-B_mvkoeW.js → fullWorker-D9xRgd20.js} +7 -7
- package/dist/assets/{subWorker-CRdsidWT.js → subWorker-DDz22vt8.js} +7 -7
- package/dist/{bridge-enxPG6qf.js → bridge-BKHuhuVK.js} +1 -1
- package/dist/bridge-g7eU9k12.mjs +67 -0
- package/dist/bridge.js +1 -1
- package/dist/bridge.mjs +1 -1
- package/dist/component/textEditor/manager.d.ts +0 -1
- package/dist/fullWorker.js +2 -2
- package/dist/index-B7w-GcID.js +1 -0
- package/dist/{index-D4z0hSjm.js → index-BLzjGoXh.js} +1 -1
- package/dist/{index-CcS9cKSp.js → index-BjEjHeEF.js} +1 -1
- package/dist/{index-BrJL-fin.mjs → index-C019qtsS.mjs} +14 -21
- package/dist/{index-DbI0V6BY.mjs → index-CfKLCV2y.mjs} +4858 -4987
- package/dist/{index-K9QVPOhV.mjs → index-L2uoKaSf.mjs} +14 -21
- package/dist/index-L470yte_.js +1 -0
- package/dist/{index-2On9v0Ff.mjs → index-LBCXcuGb.mjs} +4841 -4970
- package/dist/{index-CIjmeY9J.js → index-PebKJQE3.js} +1 -1
- package/dist/{index-Bm90lQii.js → index-Yc4OIUoM.js} +1 -1
- package/dist/{index-BZql6xgR.mjs → index-bMvJ4igq.mjs} +1 -1
- package/dist/{index-D8SnD90W.mjs → index-hePUiGEB.mjs} +1 -1
- package/dist/plugin/selectorApi.d.ts +7 -1
- package/dist/plugin/types.d.ts +8 -3
- package/dist/subWorker.js +2 -2
- package/dist/undo/index.d.ts +0 -1
- package/package.json +2 -4
- package/cdn/cdn.js +0 -1
- package/cdn/fullWorker-uAwmRi.js +0 -486
- package/cdn/subWorker-BVNpAC.js +0 -486
- package/dist/bridge-DYkH1J6p.mjs +0 -67
- package/dist/index-BSD0B_eV.js +0 -1
- package/dist/index-W9Jz9E04.js +0 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
var K = Object.defineProperty;
|
|
2
2
|
var j = (o, e, t) => e in o ? K(o, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : o[e] = t;
|
|
3
3
|
var u = (o, e, t) => j(o, typeof e != "symbol" ? e + "" : e, t);
|
|
4
|
-
import { E as B, a as y, b as D, c as M, d as E, V as P, S as Z } from "./index-
|
|
4
|
+
import { E as B, a as y, b as D, c as M, d as E, V as P, S as Z } from "./index-CfKLCV2y.mjs";
|
|
5
5
|
import { isEqual as W, isString as _, clone as J, throttle as Q } from "lodash";
|
|
6
6
|
import "white-web-sdk";
|
|
7
7
|
import "spritejs";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
var K = Object.defineProperty;
|
|
2
2
|
var j = (o, e, t) => e in o ? K(o, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : o[e] = t;
|
|
3
3
|
var u = (o, e, t) => j(o, typeof e != "symbol" ? e + "" : e, t);
|
|
4
|
-
import { E as B, a as y, b as D, c as M, d as E, V as P, S as Z } from "./index-
|
|
4
|
+
import { E as B, a as y, b as D, c as M, d as E, V as P, S as Z } from "./index-LBCXcuGb.mjs";
|
|
5
5
|
import { isEqual as W, isString as _, clone as J, throttle as Q } from "lodash";
|
|
6
6
|
import "spritejs";
|
|
7
7
|
import "lz-string";
|
|
@@ -31,6 +31,12 @@ export declare class SelectorApiManager {
|
|
|
31
31
|
/** 同一次属性更新导致的几何变化做尾部合并,只派发最后一次 */
|
|
32
32
|
private pendingPropertyGeometryByKey;
|
|
33
33
|
constructor(control: BaseApplianceManager);
|
|
34
|
+
private stringifyLogValue;
|
|
35
|
+
private formatFieldsFromChanges;
|
|
36
|
+
private formatMethods;
|
|
37
|
+
private hasShapeChanges;
|
|
38
|
+
private resolveShapeDispatchToolsTypes;
|
|
39
|
+
private getStorageShapeSnapshot;
|
|
34
40
|
private cancelUndoTicker;
|
|
35
41
|
private resolveCancelableUndoTickerId;
|
|
36
42
|
private captureUndoTickerDuringDispatch;
|
|
@@ -123,7 +129,7 @@ export declare class SelectorApiManager {
|
|
|
123
129
|
}) => void;
|
|
124
130
|
/** 收集本次 selector 更新需要等待的内部 method ack */
|
|
125
131
|
private collectPendingMethods;
|
|
126
|
-
private
|
|
132
|
+
private hasApplicableChangesForToolsType;
|
|
127
133
|
private buildUpdatedElementValue;
|
|
128
134
|
private normalizeUpdateElementInfo;
|
|
129
135
|
/** 把 UpdateSelectedElementChanges 分发到对应的内部 method emit */
|
package/dist/plugin/types.d.ts
CHANGED
|
@@ -303,9 +303,9 @@ export interface AppliancePluginInstance {
|
|
|
303
303
|
insertBackgroundImage(viewId: string, imageInfo: ISVGUrlInformation): void;
|
|
304
304
|
/**
|
|
305
305
|
* 获取当前 selector 选中元素的快照。
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
306
|
+
* @param viewId 多白板下白板ID, 主白板ID为 `mainView`, 其他白板ID为 addApp() return 的 appID。省略时取当前 focuedView / mainView。
|
|
307
|
+
* @returns 当前选中态快照;若未选中任何元素则返回 `undefined`。
|
|
308
|
+
*/
|
|
309
309
|
getSelectedElements(viewId?: string): SelectedElementsSnapshot | undefined;
|
|
310
310
|
/**
|
|
311
311
|
* 判断某个属性字段是否属于指定 toolsType 的可编辑能力。
|
|
@@ -920,6 +920,11 @@ export type SelectorTransformChangeInfo = {
|
|
|
920
920
|
workState: EventWorkState;
|
|
921
921
|
};
|
|
922
922
|
export type UpdateSelectedElementChanges = {
|
|
923
|
+
/**
|
|
924
|
+
* Shape 参数更新时传给 SetShapeOpt 的真实教具类型。
|
|
925
|
+
* 例如更新 Star 的 shape.vertices 时传 EToolsKey.Star。
|
|
926
|
+
*/
|
|
927
|
+
toolsType?: EToolsKey;
|
|
923
928
|
strokeColor?: string;
|
|
924
929
|
fillColor?: string;
|
|
925
930
|
thickness?: number;
|