@netless/appliance-plugin 1.1.37 → 1.1.38-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 +9 -4
- package/README.md +7 -2
- package/dist/appliance-plugin.js +1 -1
- package/dist/appliance-plugin.mjs +1 -1
- package/dist/assets/{fullWorker-BnxU9bnt.js → fullWorker-B0Pt8Py_.js} +1 -1
- package/dist/assets/{subWorker-BsTroxB8.js → subWorker-CleNZH9d.js} +1 -1
- package/dist/bridge-DwZ1Wbur.mjs +67 -0
- package/dist/bridge-Dy4qAJh2.js +1 -0
- package/dist/bridge.js +1 -1
- package/dist/bridge.mjs +1 -1
- package/dist/component/textEditor/utils.d.ts +11 -0
- package/dist/fullWorker.js +1 -1
- package/dist/index-BQ6rzeq9.js +1 -0
- package/dist/{index-BCNBmzwR.mjs → index-BhVU2Mya.mjs} +1699 -1629
- package/dist/{index-TIV0naEi.mjs → index-C2MVZqzb.mjs} +1531 -1461
- package/dist/{index-rYcPxCxx.mjs → index-CElZ0WHE.mjs} +1 -1
- package/dist/index-CsPVcYdq.js +1 -0
- package/dist/{index-DqCdgRfA.js → index-DTbzQbDD.js} +1 -1
- package/dist/{index-DKbaEDea.js → index-DZ-ZGSXh.js} +1 -1
- package/dist/{index-r9ho55PA.js → index-I3Kp1ALi.js} +1 -1
- package/dist/{index-nxeYRf5P.mjs → index-RGIk2cUF.mjs} +1 -1
- package/dist/{index-D-4DoHbs.mjs → index-S9-T6OvV.mjs} +1 -1
- package/dist/{index-Bl1tLXFo.js → index-WaXfuCxD.js} +1 -1
- package/dist/{index-CNcfXUx4.mjs → index-_2fP_0Sl.mjs} +1 -1
- package/dist/subWorker.js +1 -1
- package/package.json +1 -1
- package/dist/bridge-C7tN2qjT.js +0 -1
- package/dist/bridge-DmxbEjIC.mjs +0 -67
- package/dist/index-09gdXQ2w.js +0 -1
- package/dist/index-BW3Xkxk-.js +0 -1
package/READMA.zh-CN.md
CHANGED
|
@@ -311,8 +311,8 @@ injectMethodToObject(windowmanager.mainView,'setMemberState');
|
|
|
311
311
|
- `getElements` - 获取场景下的所有元素 (Version >=1.1.19)
|
|
312
312
|
- `stopDraw` - 停止Draw事件 (Version >=1.1.19)
|
|
313
313
|
- `setViewLocalScenePathChange` - 设置白板本地场景路径变化 (Version >=1.1.27)
|
|
314
|
-
- `insertMarkmap` - 插入
|
|
315
|
-
- `updateMarkmap` - 修改白板中的
|
|
314
|
+
- `insertMarkmap` - 插入 markdown 文本到白板 (Version >=1.1.32) **该方法需要开启 extras.useBackgroundThread。不能仅通过默认入口直接使用;业务项目如需使用 Markmap,需要自行依赖 `markmap-lib`、`markmap-view`、`mermaid`,并在调用前先导入 `@netless/appliance-plugin/markmap`。**
|
|
315
|
+
- `updateMarkmap` - 修改白板中的 markdown 文本 (Version >=1.1.32) **该方法需要开启 extras.useBackgroundThread。不能仅通过默认入口直接使用;业务项目如需使用 Markmap,需要自行依赖 `markmap-lib`、`markmap-view`、`mermaid`,并在调用前先导入 `@netless/appliance-plugin/markmap`。**
|
|
316
316
|
- `insertBackgroundImage` - 插入白板的背景图片 (Version >=1.1.32) **该方法需要开启extras.useBackgroundThread**
|
|
317
317
|
|
|
318
318
|
6. Selector / Element 扩展接口
|
|
@@ -356,7 +356,7 @@ injectMethodToObject(windowmanager.mainView,'setMemberState');
|
|
|
356
356
|
- 支持基于 `selectedElementsChange`、`selectorGeometryChange`、`selectorTransformChange`、`remoteSelectorChange` 事件渲染业务自定义 UI
|
|
357
357
|
- 支持通过 `overwriteSelectorStyles` 覆盖 selector 外框、控制点、端点和锁态图标样式
|
|
358
358
|
- 支持将自定义 floatbar 挂到 plugin 内部容器,或挂到业务自己的外部 overlay 容器
|
|
359
|
-
- 推荐结合 [customer-custom-selector-floatbar-integration.zh-CN.md](https://github.com/
|
|
359
|
+
- 推荐结合 [customer-custom-selector-floatbar-integration.zh-CN.md](https://github.com/netless-io/fastboard/blob/main/docs/zh/customer-custom-selector-floatbar-integration.zh-CN.md) 接入
|
|
360
360
|
|
|
361
361
|
9. 不兼容接口
|
|
362
362
|
- [`exportScene`](https://doc.shengwang.cn/api-ref/whiteboard/javascript/interfaces/room#exportScene) - appliance-plugin 开启后,笔记不能按 room 的方式导出
|
|
@@ -433,7 +433,7 @@ room.setMemberState({
|
|
|
433
433
|
- 通过 `overwriteSelectorStyles` 统一覆盖 selector 视觉样式
|
|
434
434
|
|
|
435
435
|
详细设计与接入示例请参考:
|
|
436
|
-
- [customer-custom-selector-floatbar-integration.zh-CN.md](https://github.com/
|
|
436
|
+
- [customer-custom-selector-floatbar-integration.zh-CN.md](https://github.com/netless-io/fastboard/blob/main/docs/zh/customer-custom-selector-floatbar-integration.zh-CN.md)
|
|
437
437
|
|
|
438
438
|
##### 扩展教具 (Version >=1.1.1)
|
|
439
439
|
在原来的[白板教具](https://doc.shengwang.cn/api-ref/whiteboard/javascript/globals.html#memberstate)类型上,增加了一些扩展功能属性,如下:
|
|
@@ -751,8 +751,13 @@ plugin.usePlugin(autoDrawPlugin);
|
|
|
751
751
|

|
|
752
752
|
|
|
753
753
|
##### 插入思维导图(需要markdown文本) (Version >=1.1.32)
|
|
754
|
+
|
|
755
|
+
> `insertMarkmap`、`updateMarkmap` 属于可选 Markmap 能力,不能只导入 `@netless/appliance-plugin` 后直接使用。业务项目如需使用,需要自行安装 `markmap-lib`、`markmap-view`、`mermaid`,并在调用前先导入一次 `@netless/appliance-plugin/markmap`。
|
|
756
|
+
|
|
754
757
|
```ts
|
|
755
758
|
import { ApplianceMultiPlugin } from '@netless/appliance-plugin';
|
|
759
|
+
import '@netless/appliance-plugin/markmap';
|
|
760
|
+
|
|
756
761
|
const plugin = await ApplianceMultiPlugin.getInstance(manager, {
|
|
757
762
|
options: {
|
|
758
763
|
cdn: {...}
|
package/README.md
CHANGED
|
@@ -303,8 +303,8 @@ The following interfaces are involved:
|
|
|
303
303
|
- `getElements` - Get all elements in the specified scene (Version >=1.1.19)
|
|
304
304
|
- `stopDraw` - Stop Draw event (Version >=1.1.19)
|
|
305
305
|
- `setViewLocalScenePathChange` - Set the local scene path change for the whiteboard view (Version >=1.1.27)
|
|
306
|
-
- `insertMarkmap` - Insert markdown text to whiteboard (Version >=1.1.32) **This method requires enabling extras.useBackgroundThread
|
|
307
|
-
- `updateMarkmap` - Update markdown text in whiteboard (Version >=1.1.32) **This method requires enabling extras.useBackgroundThread
|
|
306
|
+
- `insertMarkmap` - Insert markdown text to whiteboard (Version >=1.1.32) **This method requires enabling extras.useBackgroundThread. It cannot be used directly from the default package entry. Business projects that need Markmap must install `markmap-lib`, `markmap-view`, and `mermaid`, then import `@netless/appliance-plugin/markmap` before calling it.**
|
|
307
|
+
- `updateMarkmap` - Update markdown text in whiteboard (Version >=1.1.32) **This method requires enabling extras.useBackgroundThread. It cannot be used directly from the default package entry. Business projects that need Markmap must install `markmap-lib`, `markmap-view`, and `mermaid`, then import `@netless/appliance-plugin/markmap` before calling it.**
|
|
308
308
|
- `insertBackgroundImage` - Insert whiteboard background image (Version >=1.1.32) **This method requires enabling extras.useBackgroundThread**
|
|
309
309
|
|
|
310
310
|
5. Selector / Element extension APIs
|
|
@@ -716,8 +716,13 @@ html {
|
|
|
716
716
|
```
|
|
717
717
|
|
|
718
718
|
##### Insert Mind Map (requires markdown text) (Version >=1.1.32)
|
|
719
|
+
|
|
720
|
+
> `insertMarkmap` and `updateMarkmap` are optional Markmap APIs. They cannot be used directly after importing only `@netless/appliance-plugin`. If your project needs them, install `markmap-lib`, `markmap-view`, and `mermaid`, and import `@netless/appliance-plugin/markmap` once before calling either API.
|
|
721
|
+
|
|
719
722
|
```ts
|
|
720
723
|
import { ApplianceMultiPlugin } from '@netless/appliance-plugin';
|
|
724
|
+
import '@netless/appliance-plugin/markmap';
|
|
725
|
+
|
|
721
726
|
const plugin = await ApplianceMultiPlugin.getInstance(manager, {
|
|
722
727
|
options: {
|
|
723
728
|
cdn: {...}
|
package/dist/appliance-plugin.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-CsPVcYdq.js");exports.ActiveContainerType=e.ActiveContainerType;exports.ApplianceMultiPlugin=e.ApplianceMultiPlugin;exports.ApplianceNames=e.ApplianceNames;exports.ApplianceSigleWrapper=e.ApplianceSigleWrapper;exports.ApplianceSinglePlugin=e.ApplianceSinglePlugin;exports.Cursor_Hover_Id=e.Cursor_Hover_Id;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.ESVGType=e.ESVGType;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.EventWorkState=e.EventWorkState;exports.EvevtWorkState=e.EventWorkState;exports.InternalMsgEmitterType=e.InternalMsgEmitterType;exports.Main_View_Id=e.Main_View_Id;exports.Plugin=e.Plugin;exports.ShapeType=e.ShapeType;exports.Task_Time_Interval=e.Task_Time_Interval;exports.fullWorkerUrl=e.fullWorker;exports.subWorkerUrl=e.subWorker;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a7 as s, a8 as p, a9 as r, aa as t, ab as i, a4 as l, Z as n, b as E, ac as o, t as T, j as y, ad as v, a as g, ae as S, d as c, u, w as k, c as m, af as M, E as _, ag as d, v as A, v as I, ah as W, Y as P, ai as b, aj as f, a6 as h, ak as w, al as C } from "./index-
|
|
1
|
+
import { a7 as s, a8 as p, a9 as r, aa as t, ab as i, a4 as l, Z as n, b as E, ac as o, t as T, j as y, ad as v, a as g, ae as S, d as c, u, w as k, c as m, af as M, E as _, ag as d, v as A, v as I, ah as W, Y as P, ai as b, aj as f, a6 as h, ak as w, al as C } from "./index-C2MVZqzb.mjs";
|
|
2
2
|
export {
|
|
3
3
|
s as ActiveContainerType,
|
|
4
4
|
p as ApplianceMultiPlugin,
|