@antv/infographic 0.2.14 → 0.2.15
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 +12 -5
- package/README.zh-CN.md +12 -5
- package/dist/infographic.min.js +155 -153
- package/dist/infographic.min.js.map +1 -1
- package/esm/designs/structures/index.d.ts +1 -0
- package/esm/designs/structures/index.js +1 -0
- package/esm/designs/structures/relation-dagre-flow.js +4 -139
- package/esm/designs/structures/sequence-interaction.d.ts +54 -0
- package/esm/designs/structures/sequence-interaction.js +440 -0
- package/esm/designs/utils/geometry.d.ts +44 -0
- package/esm/designs/utils/geometry.js +244 -0
- package/esm/designs/utils/index.d.ts +1 -0
- package/esm/designs/utils/index.js +1 -0
- package/esm/editor/managers/sync-registry.d.ts +2 -1
- package/esm/editor/types/editor.d.ts +2 -1
- package/esm/editor/types/sync.d.ts +2 -1
- package/esm/editor/utils/object.js +46 -39
- package/esm/options/types.d.ts +6 -0
- package/esm/runtime/Infographic.js +20 -7
- package/esm/syntax/index.js +40 -20
- package/esm/syntax/relations.js +26 -2
- package/esm/syntax/schema.js +1 -0
- package/esm/templates/built-in.js +3 -2
- package/esm/templates/sequence-interaction.d.ts +2 -0
- package/esm/templates/sequence-interaction.js +76 -0
- package/esm/types/data.d.ts +1 -0
- package/esm/utils/index.d.ts +1 -0
- package/esm/utils/index.js +1 -0
- package/esm/utils/measure-text.js +31 -3
- package/esm/utils/types.d.ts +16 -0
- package/esm/utils/types.js +12 -0
- package/esm/version.d.ts +1 -1
- package/esm/version.js +1 -1
- package/lib/designs/structures/index.d.ts +1 -0
- package/lib/designs/structures/index.js +1 -0
- package/lib/designs/structures/relation-dagre-flow.js +5 -140
- package/lib/designs/structures/sequence-interaction.d.ts +54 -0
- package/lib/designs/structures/sequence-interaction.js +444 -0
- package/lib/designs/utils/geometry.d.ts +44 -0
- package/lib/designs/utils/geometry.js +256 -0
- package/lib/designs/utils/index.d.ts +1 -0
- package/lib/designs/utils/index.js +1 -0
- package/lib/editor/managers/sync-registry.d.ts +2 -1
- package/lib/editor/types/editor.d.ts +2 -1
- package/lib/editor/types/sync.d.ts +2 -1
- package/lib/editor/utils/object.js +45 -38
- package/lib/options/types.d.ts +6 -0
- package/lib/runtime/Infographic.js +19 -6
- package/lib/syntax/index.js +40 -20
- package/lib/syntax/relations.js +26 -2
- package/lib/syntax/schema.js +1 -0
- package/lib/templates/built-in.js +3 -2
- package/lib/templates/sequence-interaction.d.ts +2 -0
- package/lib/templates/sequence-interaction.js +79 -0
- package/lib/types/data.d.ts +1 -0
- package/lib/utils/index.d.ts +1 -0
- package/lib/utils/index.js +1 -0
- package/lib/utils/measure-text.js +30 -2
- package/lib/utils/types.d.ts +16 -0
- package/lib/utils/types.js +13 -0
- package/lib/version.d.ts +1 -1
- package/lib/version.js +1 -1
- package/package.json +1 -1
- package/src/designs/structures/index.ts +1 -0
- package/src/designs/structures/relation-dagre-flow.tsx +14 -178
- package/src/designs/structures/sequence-interaction.tsx +885 -0
- package/src/designs/utils/geometry.tsx +315 -0
- package/src/designs/utils/index.ts +1 -0
- package/src/editor/managers/sync-registry.ts +2 -1
- package/src/editor/types/editor.ts +2 -1
- package/src/editor/types/sync.ts +3 -1
- package/src/editor/utils/object.ts +50 -40
- package/src/options/types.ts +7 -0
- package/src/runtime/Infographic.tsx +27 -17
- package/src/syntax/index.ts +51 -18
- package/src/syntax/relations.ts +29 -2
- package/src/syntax/schema.ts +1 -0
- package/src/templates/built-in.ts +2 -0
- package/src/templates/sequence-interaction.ts +101 -0
- package/src/types/data.ts +1 -0
- package/src/utils/index.ts +1 -0
- package/src/utils/measure-text.ts +35 -3
- package/src/utils/types.ts +61 -0
- package/src/version.ts +1 -1
package/README.md
CHANGED
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
<a href="https://infographic.antv.vision/gallery">
|
|
35
35
|
<img src="https://img.shields.io/badge/Gallery-13C2C2?style=for-the-badge" alt="Gallery" />
|
|
36
36
|
</a>
|
|
37
|
-
<a href="https://github.com/antvis/Infographic/tree/main
|
|
37
|
+
<a href="https://github.com/antvis/Infographic/tree/main/skills">
|
|
38
38
|
<img src="https://img.shields.io/badge/Skills-FA8C16?style=for-the-badge" alt="Skills" />
|
|
39
39
|
</a>
|
|
40
40
|
<a href="https://infographic.antv.vision/ai">
|
|
@@ -121,12 +121,19 @@ AntV Infographic provides skills to integrate with AI agents:
|
|
|
121
121
|
|
|
122
122
|
### Claude Code
|
|
123
123
|
|
|
124
|
-
>
|
|
124
|
+
> Claude marketplace is now available. You can install from marketplace, or keep using manual install.
|
|
125
|
+
|
|
126
|
+
```bash
|
|
127
|
+
/plugin marketplace add https://github.com/antvis/Infographic.git
|
|
128
|
+
/plugin install antv-infographic-skills@antv-infographic
|
|
129
|
+
```
|
|
130
|
+
|
|
131
|
+
Manual install:
|
|
125
132
|
|
|
126
133
|
```bash
|
|
127
134
|
set -e
|
|
128
135
|
|
|
129
|
-
VERSION=0.2.4 # Replace with the latest tag, e.g. 0.2.
|
|
136
|
+
VERSION=0.2.4 # Replace with the latest tag, e.g. 0.2.14
|
|
130
137
|
BASE_URL=https://github.com/antvis/Infographic/releases/download
|
|
131
138
|
mkdir -p .claude/skills
|
|
132
139
|
|
|
@@ -141,8 +148,8 @@ rm -f skills.zip
|
|
|
141
148
|
|
|
142
149
|
```codex
|
|
143
150
|
# Replace <SKILL> with the skill name, e.g. infographic-creator
|
|
144
|
-
# https://github.com/antvis/Infographic/tree/main
|
|
145
|
-
$skill-installer install https://github.com/antvis/Infographic/tree/main
|
|
151
|
+
# https://github.com/antvis/Infographic/tree/main/skills/<SKILL>
|
|
152
|
+
$skill-installer install https://github.com/antvis/Infographic/tree/main/skills/infographic-creator
|
|
146
153
|
```
|
|
147
154
|
|
|
148
155
|
## 💬 Community & Communication
|
package/README.zh-CN.md
CHANGED
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
<a href="https://infographic.antv.vision/gallery">
|
|
35
35
|
<img src="https://img.shields.io/badge/%E7%A4%BA%E4%BE%8B-13C2C2?style=for-the-badge" alt="示例" />
|
|
36
36
|
</a>
|
|
37
|
-
<a href="https://github.com/antvis/Infographic/tree/main
|
|
37
|
+
<a href="https://github.com/antvis/Infographic/tree/main/skills">
|
|
38
38
|
<img src="https://img.shields.io/badge/Skills-FA8C16?style=for-the-badge" alt="Skills" />
|
|
39
39
|
</a>
|
|
40
40
|
<a href="https://infographic.antv.vision/ai">
|
|
@@ -121,12 +121,19 @@ AntV Infographic 提供了多项能力,便于与 AI 大模型集成:
|
|
|
121
121
|
|
|
122
122
|
### Claude Code
|
|
123
123
|
|
|
124
|
-
>
|
|
124
|
+
> 已提供 Claude marketplace,可通过 marketplace 安装,也可继续手动集成。
|
|
125
|
+
|
|
126
|
+
```bash
|
|
127
|
+
/plugin marketplace add https://github.com/antvis/Infographic.git
|
|
128
|
+
/plugin install antv-infographic-skills@antv-infographic
|
|
129
|
+
```
|
|
130
|
+
|
|
131
|
+
手动集成:
|
|
125
132
|
|
|
126
133
|
```bash
|
|
127
134
|
set -e
|
|
128
135
|
|
|
129
|
-
VERSION=0.2.4 # 替换为最新版本号,例如 0.2.
|
|
136
|
+
VERSION=0.2.4 # 替换为最新版本号,例如 0.2.14
|
|
130
137
|
BASE_URL=https://github.com/antvis/Infographic/releases/download
|
|
131
138
|
mkdir -p .claude/skills
|
|
132
139
|
|
|
@@ -141,8 +148,8 @@ rm -f skills.zip
|
|
|
141
148
|
|
|
142
149
|
```codex
|
|
143
150
|
# 将 <SKILL> 替换为需要安装的 skill 名称,例如 infographic-creator
|
|
144
|
-
# https://github.com/antvis/Infographic/tree/main
|
|
145
|
-
$skill-installer install https://github.com/antvis/Infographic/tree/main
|
|
151
|
+
# https://github.com/antvis/Infographic/tree/main/skills/<SKILL>
|
|
152
|
+
$skill-installer install https://github.com/antvis/Infographic/tree/main/skills/infographic-creator
|
|
146
153
|
```
|
|
147
154
|
|
|
148
155
|
## 💬 社区与交流
|