Fix:
+++1.Fix the issue of unsaved associated line endpoints after changes.
+2.Fix the issue of abnormal canvas scrolling when moving the mouse to the edge of multiple selected nodes when the distance from the top left corner of the canvas to the browser window is not 0.
+3.Fix the issue of importing xmind file errors for nodes with empty titles.
+4.Fix the issue where the exported xmind file prompts for corruption when opened on the latest version of xmind software.
+5.Fix the issue where stickers cannot be displayed when exporting data with stickers in xmind format.
+6.Fix the issue of node right-click event reporting errors when the select plugin is not registered.
+7.There is no issue with removing duplicates in the method of registering plugins.
+
New:
+++1.Reconstruct node drag and drop logic: optimize drag and drop difficulties in some situations, adapt to various structures, and automatically move the canvas when the mouse moves to the edge of the canvas during drag and drop.
+2.Reconstruct the scrollbar plugin to optimize the user experience.
+3.Imperfect resolution of conflicts between logical structure diagrams, mind maps, directory organization diagrams, organization chart summaries, and nodes (the summaries should be rewritten or deleted later).
+4.Activate adjacent nodes after deleting them.
+5.In node data_ The starting field is considered a custom field.
+
Demo:
++1.The page will display the current core library version number.
+
Breaking change: Removed the section of node activation style in the theme file, Setting the activation style of nodes is no longer supported, and the activation effect has been changed to a unified node outer border style, while also supporting the mouse hover effect.
Fix:
diff --git a/web/src/pages/Doc/en/constructor/index.md b/web/src/pages/Doc/en/constructor/index.md index 1566600e..427d4182 100644 --- a/web/src/pages/Doc/en/constructor/index.md +++ b/web/src/pages/Doc/en/constructor/index.md @@ -87,6 +87,8 @@ const mindMap = new MindMap({ | hoverRectColor(v0.7.0+) | String | rgb(94, 200, 248) | The node mouse hover and the rectangular border color displayed when activated will add a transparency of 0.6 when hovering | | | hoverRectPadding(v0.7.0+) | Number | 2 | The distance between the node mouse hover and the displayed rectangular border when activated and the node content | | | selectTextOnEnterEditText(v0.7.0+) | Boolean | true | Is the text selected by default when double-clicking a node to enter node text editing? By default, it will only be selected when creating a new node | | +| deleteNodeActive(v0.7.1+) | Boolean | true | Enable the function of automatically activating adjacent nodes or parent nodes after deleting nodes | | +| autoMoveWhenMouseInEdgeOnDrag(v0.7.1+) | Boolean | true | Whether to enable automatic canvas movement when the mouse moves to the edge of the canvas while dragging nodes | | ### Data structure diff --git a/web/src/pages/Doc/en/constructor/index.vue b/web/src/pages/Doc/en/constructor/index.vue index 22890976..576ac5d3 100644 --- a/web/src/pages/Doc/en/constructor/index.vue +++ b/web/src/pages/Doc/en/constructor/index.vue @@ -469,6 +469,20 @@-v0.7.0+
+V0.7.1+has been refactored, and the following document is a new one.
This plugin is used to help develop the functionality of horizontal and vertical scrollbar.
+This plugin is used to help develop the functionality of horizontal and vertical scrollbar. Please refer to the tutorial for detailed usage.
import MindMap from 'simple-mind-map'
import Scrollbar from 'simple-mind-map/src/plugins/Scrollbar.js'
@@ -12,8 +13,21 @@ MindMap.usePlugin(Scrollbar)
After registration and instantiation of MindMap, the instance can be obtained through mindMap.scrollbar.
Triggered when the scrollbar data changes, you can listen to this event to update the position and size of the scrollbar.
+{
+ // Vertical scrollbar
+ vertical: {
+ top,// Top value, Percentage value
+ height// Scrollbar height, Percentage value
+ },
+ // Horizontal scrollbar
+ horizontal: {
+ left,// Left value, Percentage value
+ width// Scrollbar width, Percentage value
+ }
+}
+
+Triggered when the scrollbar data changes, you can listen to this event to update the position and size of the scrollbar. Receive a parameter representing the latest scrollbar position and size information, which you can use to update the style of the scrollbar element.
Set the size of the scroll bar container, which is the width of the container for horizontal scrollbars and the height of the container for vertical scrollbars. When your scrollbar container size changes, you need to call this method again.
+Usually, you do not need to call this method. If the scroll bar is not updated when rendering for the first time, you can manually call this method to obtain the scroll bar data.
You need to first call the setScrollBarWrapSize method to set the width and height of the scroll bar container element.
-Generally, it is necessary to monitor scrollbar_change event, and then call it to update the scroll bar.
Return value:
{
@@ -44,7 +58,7 @@ MindMap.usePlugin(Scrollbar)
}
}
-Obtain the size and position of the scroll bar, and you can set it to the scroll bar element based on the return value to achieve the effect of rendering and caring about the scroll bar.
+Obtain the size and position of the scrollbar.
This method needs to be called when the mouse press event of the scrollbar element occurs.
+e:The event object for the mouse click event.
type:The type of scroll bar on click, vertical(Vertical scrollbar)、horizontal(Horizontal scrollbar)。
This method needs to be called when the click event of the scrollbar element is triggered.
修复:
+++1.修复关联线端点改变后未保存的问题。
+2.修复画布左上角距浏览器窗口不为0时多选节点鼠标移动到边缘时画布滚动异常的问题。
+3.修复导入存在为标题为空的节点的xmind文件报错的问题。
+4.修复导出的xmind文件在最新版xmind软件上打开时提示已损坏的问题。
+5.修复导出带有贴纸的数据为xmind格式时贴纸无法显示的问题。
+6.修复没有注册select插件时节点右键事件报错的问题。
+7.修复注册插件的方法没有去重的问题。
+
新增:
+++1.重构节点拖拽逻辑:优化一些情况下的拖拽难问题、适配各种结构、拖拽时鼠标移动到画布边缘时画布自动移动。
+2.重构滚动条插件,优化使用体验。
+3.不完美的解决逻辑结构图、思维导图、目录组织图、组织结构图概要和节点的冲突问题(概要后面应该会重写或删除)。
+4.删除节点后激活相邻节点。
+5.节点数据data中以_开头的字段被认为是自定义字段。
+
Demo:
++1.页面增加显示当前核心库版本号。
+
破坏性更新:删除了主题文件中节点激活样式的部分,不再支持设置节点的激活样式,激活效果改为统一的节点外边框样式,同时支持鼠标hover效果。
修复:
diff --git a/web/src/pages/Doc/zh/constructor/index.md b/web/src/pages/Doc/zh/constructor/index.md index 15e82745..70183b57 100644 --- a/web/src/pages/Doc/zh/constructor/index.md +++ b/web/src/pages/Doc/zh/constructor/index.md @@ -87,6 +87,8 @@ const mindMap = new MindMap({ | hoverRectColor(v0.7.0+) | String | rgb(94, 200, 248) | 节点鼠标hover和激活时显示的矩形边框颜色,hover时会添加0.6的透明度 | | | hoverRectPadding(v0.7.0+) | Number | 2 | 节点鼠标hover和激活时显示的矩形边框距节点内容的距离 | | | selectTextOnEnterEditText(v0.7.0+) | Boolean | true | 双击节点进入节点文本编辑时是否默认选中文本,默认只在创建新节点时会选中 | | +| deleteNodeActive(v0.7.1+) | Boolean | true | 是否开启删除节点后自动激活节点相邻节点或父节点的功能 | | +| autoMoveWhenMouseInEdgeOnDrag(v0.7.1+) | Boolean | true | 拖拽节点时鼠标移动到画布边缘是否开启画布自动移动 | | ### 数据结构 diff --git a/web/src/pages/Doc/zh/constructor/index.vue b/web/src/pages/Doc/zh/constructor/index.vue index d64c1c0f..a9a4409d 100644 --- a/web/src/pages/Doc/zh/constructor/index.vue +++ b/web/src/pages/Doc/zh/constructor/index.vue @@ -469,6 +469,20 @@