@worm-print-platform/echarts 1.6.1 → 1.6.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.
package/README.md CHANGED
@@ -2,11 +2,11 @@
2
2
 
3
3
  worm-print-platform 插件市场的百度图表插件:**十类 ECharts 图表元素 + 设计器 UI,import 即注册**。
4
4
 
5
- 本目录 `marketplace/plugins/echarts/` 是图表插件的**唯一源码真源**。同一份源码构建出两个 npm 包:
5
+ 本目录 `marketplace/plugins/echarts/` 是图表插件的**唯一源码真源**。同一份源码构建出一个市场插件与一个兼容 npm 包:
6
6
 
7
7
  | 包名 | 定位 | 根入口行为 |
8
8
  | --- | --- | --- |
9
- | `@worm-print-platform/plugin-echarts` | 插件市场主口径(推荐) | 注册插件描述符 + 设计器 UI |
9
+ | `@worm-print-platform/plugin-echarts` | 市场插件(不再单独发 npm) | 注册插件描述符 + 设计器 UI |
10
10
  | `@worm-print-platform/echarts` | 兼容镜像,供存量依赖方零改动使用 | 仅注册插件描述符(原行为) |
11
11
 
12
12
  ## 安装(插件市场口径,推荐)
@@ -15,6 +15,8 @@ worm-print-platform 插件市场的百度图表插件:**十类 ECharts 图表
15
15
  npx @worm-print-platform/marketplace install echarts
16
16
  ```
17
17
 
18
+ > npm 上未发布该主包,`auto` 源会在 npm 源失败后自动回退 Gitee(其次 GitHub);也可显式 `--source gitee` 指定来源。
19
+
18
20
  宿主按清单加载插件入口(import 即注册,无需额外调用):
19
21
 
20
22
  ```js
@@ -24,22 +26,9 @@ import '../.worm-print/plugins/echarts/dist/marketplace.js'
24
26
  插件安装后,素材台出现「图表」分组的十张卡片:柱状图、条形图、折线图、面积图、饼图、环形图、
25
27
  散点图、雷达图、漏斗图、仪表盘。
26
28
 
27
- ## 作为 npm 包使用
28
-
29
- ```bash
30
- npm install @worm-print-platform/plugin-echarts
31
- ```
32
-
33
- ```js
34
- // 主入口:插件描述符 + 设计器 UI 一次注册完成
35
- import '@worm-print-platform/plugin-echarts'
36
-
37
- // 按需子路径
38
- import '@worm-print-platform/plugin-echarts/kit' // 仅框架无关插件描述符(无 UI)
39
- import '@worm-print-platform/plugin-echarts/ui' // 仅设计器 UI
40
- ```
29
+ ## 服务端与存量兼容
41
30
 
42
- 服务端 PDF / Electron 静默打印使用 `@worm-print-platform/plugin-echarts/node` 与
31
+ 服务端 PDF / Electron 静默打印继续使用 `@worm-print-platform/echarts` 兼容镜像的 `/node` 与
43
32
  `/browser/executor.iife`(页面执行器),浏览器直挂使用 `/browser` UMD 产物。
44
33
 
45
34
  存量项目若仍依赖 `@worm-print-platform/echarts`,无需改动:兼容镜像保留全部原有子路径
@@ -85,14 +74,13 @@ chartOption: {
85
74
  不支持:`rich` 富文本、`emphasis.label`(SSR 导出只含 normal 态)、`labelLayout`
86
75
  (防重叠会改变存量观感,后续单独立项)。
87
76
 
88
- ## 独立发布
77
+ ## 构建与发版
89
78
 
90
- 两个包均可单独 `npm publish`,且从同一源码生成:
79
+ 主包不再单独 `npm publish`,仅兼容镜像随主线发版:
91
80
 
92
81
  ```bash
93
82
  cd marketplace/plugins/echarts
94
83
  npm run build # vite + tsc + tsup + UMD + 兼容镜像同步
95
- npm publish --registry=https://registry.npmjs.org --access public
96
84
  # 根目录:npm publish -w @worm-print-platform/echarts(兼容镜像)
97
85
  ```
98
86
 
package/dist/bind.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * @worm-print-platform/echarts v1.6.1
2
+ * @worm-print-platform/echarts v1.6.3
3
3
  * Copyright (c) 2026 worm <liu_long_qqcom@qq.com>
4
4
  * SPDX-FileCopyrightText: 2026 worm <liu_long_qqcom@qq.com>
5
5
  * SPDX-License-Identifier: MIT
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * @worm-print-platform/echarts v1.6.1
2
+ * @worm-print-platform/echarts v1.6.3
3
3
  * Copyright (c) 2026 worm <liu_long_qqcom@qq.com>
4
4
  * SPDX-FileCopyrightText: 2026 worm <liu_long_qqcom@qq.com>
5
5
  * SPDX-License-Identifier: MIT
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * @worm-print-platform/echarts v1.6.1
2
+ * @worm-print-platform/echarts v1.6.3
3
3
  * Copyright (c) 2026 worm <liu_long_qqcom@qq.com>
4
4
  * SPDX-FileCopyrightText: 2026 worm <liu_long_qqcom@qq.com>
5
5
  * SPDX-License-Identifier: MIT
package/dist/config.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * @worm-print-platform/echarts v1.6.1
2
+ * @worm-print-platform/echarts v1.6.3
3
3
  * Copyright (c) 2026 worm <liu_long_qqcom@qq.com>
4
4
  * SPDX-FileCopyrightText: 2026 worm <liu_long_qqcom@qq.com>
5
5
  * SPDX-License-Identifier: MIT
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * @worm-print-platform/echarts v1.6.1
2
+ * @worm-print-platform/echarts v1.6.3
3
3
  * Copyright (c) 2026 worm <liu_long_qqcom@qq.com>
4
4
  * SPDX-FileCopyrightText: 2026 worm <liu_long_qqcom@qq.com>
5
5
  * SPDX-License-Identifier: MIT
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * @worm-print-platform/echarts v1.6.1
2
+ * @worm-print-platform/echarts v1.6.3
3
3
  * Copyright (c) 2026 worm <liu_long_qqcom@qq.com>
4
4
  * SPDX-FileCopyrightText: 2026 worm <liu_long_qqcom@qq.com>
5
5
  * SPDX-License-Identifier: MIT
package/dist/echarts.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * @worm-print-platform/echarts v1.6.1
2
+ * @worm-print-platform/echarts v1.6.3
3
3
  * Copyright (c) 2026 worm <liu_long_qqcom@qq.com>
4
4
  * SPDX-FileCopyrightText: 2026 worm <liu_long_qqcom@qq.com>
5
5
  * SPDX-License-Identifier: MIT