@plume-canvas/plugin-theme-canvas 0.1.1 → 0.1.3

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.
Files changed (2) hide show
  1. package/README.md +30 -0
  2. package/package.json +1 -1
package/README.md ADDED
@@ -0,0 +1,30 @@
1
+ # 主题画布外观
2
+
3
+ > `@plume-canvas/plugin-theme-canvas` - v0.1.2
4
+
5
+ 默认主题的画布半边:节点壳 / 连线 / 背景 / 节点上下工具栏(进画布才启动).
6
+
7
+ ## 功能说明
8
+
9
+ @plume-canvas/plugin-theme-canvas —— 默认主题的**画布外观**半边(进入画布才启动)。
10
+ 注册的全是"有画布才看得见"的东西:节点壳、连线、背景、拖线临时线,
11
+ 以及节点上下工具栏的挂载点。项目页不需要它们,也不该为它们启动画布。
12
+ 为什么 inject: ['doc']:这些槽最终都要挂在节点/画布上;没有 doc 时启动
13
+ 只会注册一堆取不到数据的组件,反而让 PENDING 状态更清楚。
14
+ 与通用组件半边的关系:互不 import。启动默认值与设置键在引擎 @plume-canvas/canvas-render;
15
+ 本包自己的 Config 只声明画布相关字段(端口 / 标题 / 吸附带 / 连线)。
16
+ /
17
+
18
+ ## 注册项
19
+
20
+ ### 声明的依赖 (export const inject)
21
+
22
+ - `'doc'`
23
+
24
+ ## 安装
25
+
26
+ ```bash
27
+ npm i @plume-canvas/plugin-theme-canvas
28
+ ```
29
+
30
+ 本插件随 plume-canvas 主程序自动安装;也可通过插件管理页手动装卸。
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@plume-canvas/plugin-theme-canvas",
3
- "version": "0.1.1",
3
+ "version": "0.1.3",
4
4
  "type": "module",
5
5
  "plume": {
6
6
  "title": "主题画布外观",