@netless/appliance-plugin 1.1.34-beta.3 → 1.1.35-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/READMA.zh-CN.md +33 -1
- package/README.md +32 -0
- package/cdn/cdn.js +1 -1
- package/cdn/fullWorker-BShzOf.js +486 -0
- package/cdn/subWorker-DofGU2.js +486 -0
- package/dist/appliance-plugin.js +1 -1
- package/dist/appliance-plugin.mjs +1 -1
- package/dist/assets/fullWorker-BLBp1QlT.js +593 -0
- package/dist/assets/subWorker-CA5sK8hX.js +593 -0
- package/dist/{bridge-Bb-MjyNY.mjs → bridge-D6IerdOk.mjs} +6 -6
- package/dist/{bridge-m2Uim0rf.js → bridge-s6K3XU2g.js} +1 -1
- package/dist/bridge.js +1 -1
- package/dist/bridge.mjs +1 -1
- package/dist/core/autoShape/index.d.ts +12 -0
- package/dist/core/autoShape/mapper.d.ts +3 -0
- package/dist/core/autoShape/recognizer.d.ts +8 -0
- package/dist/core/autoShape/registry.d.ts +2 -0
- package/dist/core/autoShape/templates.d.ts +2 -0
- package/dist/core/autoShape/types.d.ts +78 -0
- package/dist/core/mainEngine.d.ts +9 -0
- package/dist/core/tools/pencil.d.ts +3 -0
- package/dist/core/types.d.ts +7 -0
- package/dist/fullWorker.js +147 -147
- package/dist/index-328yD4vj.js +1 -0
- package/dist/{index-B5p02yLM.mjs → index-4k563Sm-.mjs} +3076 -2293
- package/dist/index-C89lvDjQ.js +1 -0
- package/dist/{index-C-ITXa9_.js → index-CBE_U7Gn.js} +3 -3
- package/dist/{index-BAEfMWKR.mjs → index-CPmHcL9u.mjs} +1041 -1013
- package/dist/{index-BbVM6AMN.mjs → index-D-IWIyEl.mjs} +260 -253
- package/dist/{index-D9CYiyfx.mjs → index-D1p6YXf0.mjs} +3014 -2238
- package/dist/{index-HS0sRcOj.js → index-DDL0Hq_X.js} +3 -3
- package/dist/{index-on8Dtynb.mjs → index-DR2km5D4.mjs} +215 -208
- package/dist/index-DXx1-O0K.js +1 -0
- package/dist/index-DbLWM-6h.js +1 -0
- package/dist/{index-O6ldDna3.mjs → index-IQRiGPX7.mjs} +1041 -1013
- package/dist/plugin/multi/containerManager.d.ts +7 -0
- package/dist/plugin/types.d.ts +24 -0
- package/dist/subWorker.js +147 -147
- package/dist/svgToImageLoader-B3gIDAQo.js +1 -0
- package/dist/svgToImageLoader-DZz5bAo4.mjs +22 -0
- package/package.json +11 -5
- package/cdn/fullWorker-cY8Uuj.js +0 -486
- package/cdn/subWorker-BleGf3.js +0 -486
- package/dist/assets/fullWorker-BuSPsz-_.js +0 -593
- package/dist/assets/subWorker-B0NfJ2Bk.js +0 -593
- package/dist/index-BVYBjZU_.js +0 -1
- package/dist/index-D696FwsD.js +0 -1
- package/dist/index-DTeRhVER.js +0 -1
- package/dist/index-DnT8RFOT.js +0 -1
- package/dist/svgToImageLoader-DPRAAhwW.js +0 -1
- package/dist/svgToImageLoader-mXH53h-l.mjs +0 -18
|
@@ -11,7 +11,14 @@ export declare class ViewContainerMultiManager extends ViewContainerManager {
|
|
|
11
11
|
/** 针对windowmanager的focusedChange先于onAppViewMounted*/
|
|
12
12
|
tmpFocusedViewId?: string;
|
|
13
13
|
private checkScaleTimer?;
|
|
14
|
+
private readonly mainViewHotkeyListener;
|
|
15
|
+
private readonly appViewListeners;
|
|
14
16
|
constructor(props: BaseSubWorkModuleProps);
|
|
17
|
+
private getAppViewListeners;
|
|
18
|
+
private removeMainViewListeners;
|
|
19
|
+
private removeAppViewListeners;
|
|
20
|
+
destroyAppView(viewId: string, justLocal?: boolean): void;
|
|
21
|
+
destroy(): void;
|
|
15
22
|
getViewInitData(viewId: string): ViewWorkerOptions | undefined;
|
|
16
23
|
mountView(viewId: string): Promise<void>;
|
|
17
24
|
listenerWindowManager(windowManager: WindowManager): void;
|
package/dist/plugin/types.d.ts
CHANGED
|
@@ -12,6 +12,7 @@ import type { AuthRenderScenesData } from "../core/renderCotrol";
|
|
|
12
12
|
import type { Plugin } from "../core/plugin";
|
|
13
13
|
import type { TextEditorInfo } from "../component/textEditor/types";
|
|
14
14
|
import type { IMarkmapOptions } from "../component/svg/markmap";
|
|
15
|
+
import type { AutoShapeKind, AutoShapeMetrics } from "../core/autoShape/types";
|
|
15
16
|
export type { Room, ImageInformation, Point, Size, Rectangle, RoomMember, RoomState, Player, HotKeys, Camera, Displayer, DisplayerCallbacks, CameraState, View, Cursor, CursorAdapter, RenderEngine, _MemberState, };
|
|
16
17
|
export declare enum ApplianceNames {
|
|
17
18
|
/**
|
|
@@ -89,6 +90,8 @@ export type ExtendMemberState = {
|
|
|
89
90
|
duration?: number;
|
|
90
91
|
/** 是否使用新铅笔教具 */
|
|
91
92
|
useNewPencil?: boolean;
|
|
93
|
+
/** 是否开启铅笔自动识别规则图形 */
|
|
94
|
+
autoShape?: boolean;
|
|
92
95
|
/** 填充样式 */
|
|
93
96
|
fillColor?: Color;
|
|
94
97
|
/** 填充透明度 */
|
|
@@ -592,6 +595,25 @@ export declare enum EForceStopReason {
|
|
|
592
595
|
/** 画笔过长 */
|
|
593
596
|
longPencil = "longPencil"
|
|
594
597
|
}
|
|
598
|
+
export type AutoShapeDebugInfo = {
|
|
599
|
+
workId: string;
|
|
600
|
+
viewId: string;
|
|
601
|
+
scenePath?: string;
|
|
602
|
+
recognized: boolean;
|
|
603
|
+
fallbackToPencil: boolean;
|
|
604
|
+
kind: AutoShapeKind;
|
|
605
|
+
score: number;
|
|
606
|
+
threshold: number;
|
|
607
|
+
templateId?: string;
|
|
608
|
+
mappedToolsType?: EToolsKey;
|
|
609
|
+
topCandidate?: {
|
|
610
|
+
kind: AutoShapeKind;
|
|
611
|
+
score: number;
|
|
612
|
+
threshold: number;
|
|
613
|
+
templateId?: string;
|
|
614
|
+
};
|
|
615
|
+
metrics: Pick<AutoShapeMetrics, "cornerCount" | "straightness" | "closureRatio" | "radialVariance" | "bboxCornerCloseness" | "diamondCloseness">;
|
|
616
|
+
};
|
|
595
617
|
/**
|
|
596
618
|
* 公开的监听器类型
|
|
597
619
|
*/
|
|
@@ -610,6 +632,8 @@ export type PublicListener = {
|
|
|
610
632
|
workState: (workState: EventWorkState, viewId: string) => void;
|
|
611
633
|
/** 强制中断 */
|
|
612
634
|
forceStop: (reason: EForceStopReason, viewId: string) => void;
|
|
635
|
+
/** auto shape 调试信息 */
|
|
636
|
+
autoShape: (info: AutoShapeDebugInfo) => void;
|
|
613
637
|
/** 同步数据变化 */
|
|
614
638
|
syncStorageChange: (storage: ISerializableStorageViewData) => void;
|
|
615
639
|
};
|