@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.
Files changed (84) hide show
  1. package/README.md +12 -5
  2. package/README.zh-CN.md +12 -5
  3. package/dist/infographic.min.js +155 -153
  4. package/dist/infographic.min.js.map +1 -1
  5. package/esm/designs/structures/index.d.ts +1 -0
  6. package/esm/designs/structures/index.js +1 -0
  7. package/esm/designs/structures/relation-dagre-flow.js +4 -139
  8. package/esm/designs/structures/sequence-interaction.d.ts +54 -0
  9. package/esm/designs/structures/sequence-interaction.js +440 -0
  10. package/esm/designs/utils/geometry.d.ts +44 -0
  11. package/esm/designs/utils/geometry.js +244 -0
  12. package/esm/designs/utils/index.d.ts +1 -0
  13. package/esm/designs/utils/index.js +1 -0
  14. package/esm/editor/managers/sync-registry.d.ts +2 -1
  15. package/esm/editor/types/editor.d.ts +2 -1
  16. package/esm/editor/types/sync.d.ts +2 -1
  17. package/esm/editor/utils/object.js +46 -39
  18. package/esm/options/types.d.ts +6 -0
  19. package/esm/runtime/Infographic.js +20 -7
  20. package/esm/syntax/index.js +40 -20
  21. package/esm/syntax/relations.js +26 -2
  22. package/esm/syntax/schema.js +1 -0
  23. package/esm/templates/built-in.js +3 -2
  24. package/esm/templates/sequence-interaction.d.ts +2 -0
  25. package/esm/templates/sequence-interaction.js +76 -0
  26. package/esm/types/data.d.ts +1 -0
  27. package/esm/utils/index.d.ts +1 -0
  28. package/esm/utils/index.js +1 -0
  29. package/esm/utils/measure-text.js +31 -3
  30. package/esm/utils/types.d.ts +16 -0
  31. package/esm/utils/types.js +12 -0
  32. package/esm/version.d.ts +1 -1
  33. package/esm/version.js +1 -1
  34. package/lib/designs/structures/index.d.ts +1 -0
  35. package/lib/designs/structures/index.js +1 -0
  36. package/lib/designs/structures/relation-dagre-flow.js +5 -140
  37. package/lib/designs/structures/sequence-interaction.d.ts +54 -0
  38. package/lib/designs/structures/sequence-interaction.js +444 -0
  39. package/lib/designs/utils/geometry.d.ts +44 -0
  40. package/lib/designs/utils/geometry.js +256 -0
  41. package/lib/designs/utils/index.d.ts +1 -0
  42. package/lib/designs/utils/index.js +1 -0
  43. package/lib/editor/managers/sync-registry.d.ts +2 -1
  44. package/lib/editor/types/editor.d.ts +2 -1
  45. package/lib/editor/types/sync.d.ts +2 -1
  46. package/lib/editor/utils/object.js +45 -38
  47. package/lib/options/types.d.ts +6 -0
  48. package/lib/runtime/Infographic.js +19 -6
  49. package/lib/syntax/index.js +40 -20
  50. package/lib/syntax/relations.js +26 -2
  51. package/lib/syntax/schema.js +1 -0
  52. package/lib/templates/built-in.js +3 -2
  53. package/lib/templates/sequence-interaction.d.ts +2 -0
  54. package/lib/templates/sequence-interaction.js +79 -0
  55. package/lib/types/data.d.ts +1 -0
  56. package/lib/utils/index.d.ts +1 -0
  57. package/lib/utils/index.js +1 -0
  58. package/lib/utils/measure-text.js +30 -2
  59. package/lib/utils/types.d.ts +16 -0
  60. package/lib/utils/types.js +13 -0
  61. package/lib/version.d.ts +1 -1
  62. package/lib/version.js +1 -1
  63. package/package.json +1 -1
  64. package/src/designs/structures/index.ts +1 -0
  65. package/src/designs/structures/relation-dagre-flow.tsx +14 -178
  66. package/src/designs/structures/sequence-interaction.tsx +885 -0
  67. package/src/designs/utils/geometry.tsx +315 -0
  68. package/src/designs/utils/index.ts +1 -0
  69. package/src/editor/managers/sync-registry.ts +2 -1
  70. package/src/editor/types/editor.ts +2 -1
  71. package/src/editor/types/sync.ts +3 -1
  72. package/src/editor/utils/object.ts +50 -40
  73. package/src/options/types.ts +7 -0
  74. package/src/runtime/Infographic.tsx +27 -17
  75. package/src/syntax/index.ts +51 -18
  76. package/src/syntax/relations.ts +29 -2
  77. package/src/syntax/schema.ts +1 -0
  78. package/src/templates/built-in.ts +2 -0
  79. package/src/templates/sequence-interaction.ts +101 -0
  80. package/src/types/data.ts +1 -0
  81. package/src/utils/index.ts +1 -0
  82. package/src/utils/measure-text.ts +35 -3
  83. package/src/utils/types.ts +61 -0
  84. 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/.skills">
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
- > We don't have a Claude marketplace entry yet, so install manually.
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.4
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/.skills/<SKILL>
145
- $skill-installer install https://github.com/antvis/Infographic/tree/main/.skills/infographic-creator
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/.skills">
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
- > 我们暂未提供 claude marketplace,因此需要手动集成。
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.4
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/.skills/<SKILL>
145
- $skill-installer install https://github.com/antvis/Infographic/tree/main/.skills/infographic-creator
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
  ## 💬 社区与交流