mind-elixir 5.8.0 → 5.8.2
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/dist/MindElixir.css +1 -1
- package/dist/MindElixir.iife.js +4 -4
- package/dist/MindElixir.js +6 -7
- package/dist/MindElixirLite.css +1 -1
- package/dist/MindElixirLite.iife.js +2 -2
- package/dist/MindElixirLite.js +4 -5
- package/dist/PlaintextConverter.js +74 -66
- package/dist/types/utils/plaintextConverter.d.ts +2 -2
- package/package.json +1 -1
- package/readme.md +23 -3
package/readme.md
CHANGED
|
@@ -72,6 +72,22 @@ Mind elixir is a open source JavaScript mind map core. You can use it with any f
|
|
|
72
72
|
|
|
73
73
|
[v5 Breaking Changes](https://github.com/SSShooter/mind-elixir-core/wiki/Breaking-Change#500)
|
|
74
74
|
|
|
75
|
+
## Build with AI
|
|
76
|
+
|
|
77
|
+
Use `npx skills add` to install guides to your project:
|
|
78
|
+
|
|
79
|
+
**Integration Guide**:
|
|
80
|
+
|
|
81
|
+
```bash
|
|
82
|
+
npx skills add https://github.com/ssshooter/mind-elixir-core/blob/master/skills/integrate-mind-elixir
|
|
83
|
+
```
|
|
84
|
+
|
|
85
|
+
**Other Skills**:
|
|
86
|
+
|
|
87
|
+
- [Customize Markdown](skills/customize-markdown/SKILL.md): `npx skills add https://github.com/ssshooter/mind-elixir-core/blob/master/skills/customize-markdown`
|
|
88
|
+
- [Export as Image](skills/export-mindmap-image/SKILL.md): `npx skills add https://github.com/ssshooter/mind-elixir-core/blob/master/skills/export-mindmap-image`
|
|
89
|
+
- [Streaming Mindmap](skills/streaming-mindmap/SKILL.md): `npx skills add https://github.com/ssshooter/mind-elixir-core/blob/master/skills/streaming-mindmap`
|
|
90
|
+
|
|
75
91
|
<details>
|
|
76
92
|
<summary>Table of Contents</summary>
|
|
77
93
|
|
|
@@ -81,6 +97,7 @@ Mind elixir is a open source JavaScript mind map core. You can use it with any f
|
|
|
81
97
|
- [⚡ **Performance \& Architecture**](#-performance--architecture)
|
|
82
98
|
- [🛠️ **Core Features**](#️-core-features)
|
|
83
99
|
- [📤 **Export \& Customization**](#-export--customization)
|
|
100
|
+
- [Build with AI](#%EF%B8%8F-build-with-ai)
|
|
84
101
|
- [Try now](#try-now)
|
|
85
102
|
- [Playground](#playground)
|
|
86
103
|
- [Documentation](#documentation)
|
|
@@ -174,7 +191,6 @@ let options = {
|
|
|
174
191
|
el: '#map', // or HTMLDivElement
|
|
175
192
|
direction: MindElixir.LEFT,
|
|
176
193
|
toolBar: true, // default true
|
|
177
|
-
nodeMenu: true, // default true
|
|
178
194
|
keypress: true, // default true
|
|
179
195
|
locale: 'en', // [zh_CN,zh_TW,en,ja,pt,ru,ro] waiting for PRs
|
|
180
196
|
overflowHidden: false, // default false
|
|
@@ -320,8 +336,12 @@ let mind = new MindElixir({
|
|
|
320
336
|
// ...
|
|
321
337
|
before: {
|
|
322
338
|
async addChild(el, obj) {
|
|
323
|
-
|
|
324
|
-
|
|
339
|
+
try {
|
|
340
|
+
await saveDataToDb()
|
|
341
|
+
return true
|
|
342
|
+
} catch (err) {
|
|
343
|
+
return false
|
|
344
|
+
}
|
|
325
345
|
},
|
|
326
346
|
},
|
|
327
347
|
})
|