diff --git a/simple-mind-map/full.js b/simple-mind-map/full.js index 315f7d54..80048f10 100644 --- a/simple-mind-map/full.js +++ b/simple-mind-map/full.js @@ -9,9 +9,11 @@ import AssociativeLine from './src/AssociativeLine' import RichText from './src/RichText' import xmind from './src/parse/xmind.js' import markdown from './src/parse/markdown.js' +import icons from './src/svg/icons.js' MindMap.xmind = xmind MindMap.markdown = markdown +MindMap.iconList = icons.nodeIconList MindMap .usePlugin(MiniMap) diff --git a/simple-mind-map/package.json b/simple-mind-map/package.json index 1b5c38c4..3d035c6f 100644 --- a/simple-mind-map/package.json +++ b/simple-mind-map/package.json @@ -1,6 +1,6 @@ { "name": "simple-mind-map", - "version": "0.5.7", + "version": "0.5.8", "description": "一个简单的web在线思维导图", "authors": [ { diff --git a/web/src/assets/img/iconList.jpg b/web/src/assets/img/iconList.jpg new file mode 100644 index 00000000..69dc7bad Binary files /dev/null and b/web/src/assets/img/iconList.jpg differ diff --git a/web/src/pages/Doc/catalogList.js b/web/src/pages/Doc/catalogList.js index bcb2b962..a8c12225 100644 --- a/web/src/pages/Doc/catalogList.js +++ b/web/src/pages/Doc/catalogList.js @@ -11,7 +11,7 @@ let langList = [ } ] let StartList = ['introduction', 'start', 'deploy', 'translate', 'changelog'] -let CourseList = new Array(18).fill(0).map((_, index) => { +let CourseList = new Array(19).fill(0).map((_, index) => { return 'course' + (index + 1) }) let APIList = [ diff --git a/web/src/pages/Doc/en/changelog/index.md b/web/src/pages/Doc/en/changelog/index.md index 2661b738..e55484b4 100644 --- a/web/src/pages/Doc/en/changelog/index.md +++ b/web/src/pages/Doc/en/changelog/index.md @@ -1,5 +1,11 @@ # Changelog +## 0.5.8 + +optimization: 1.The position setting is not triggered when the node position does not change. 2.The unfolding and folding status does not change and does not trigger button updates. + +New: 1.The default setting is to move the mouse over the node to display the expand and collapse buttons. 2.Support the list of icons that can be inserted into extended nodes. + ## 0.5.7 Breaking change:In rich text mode, exporting png has been changed to using html2canvas to convert the entire svg, greatly improving the export speed. However, html2canvas has a bug where the text color inline with the dom node in the foreignObject element cannot be recognized. Therefore, the text color of the exported node is fixed. However, compared to the previously unavailable state of the export, it can at least be exported quickly and smoothly. diff --git a/web/src/pages/Doc/en/changelog/index.vue b/web/src/pages/Doc/en/changelog/index.vue index 268c57cf..70f5d59d 100644 --- a/web/src/pages/Doc/en/changelog/index.vue +++ b/web/src/pages/Doc/en/changelog/index.vue @@ -1,6 +1,9 @@