Demo:更新文档,去除默认适应画布大小

This commit is contained in:
wanglin2 2023-09-18 09:13:24 +08:00
parent 43216ed925
commit e61749c1b3
5 changed files with 2187 additions and 2348 deletions

View File

@ -89,6 +89,7 @@ const mindMap = new MindMap({
| selectTextOnEnterEditTextv0.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 | |
| deleteNodeActivev0.7.1+ | Boolean | true | Enable the function of automatically activating adjacent nodes or parent nodes after deleting nodes | |
| autoMoveWhenMouseInEdgeOnDragv0.7.1+ | Boolean | true | Whether to enable automatic canvas movement when the mouse moves to the edge of the canvas while dragging nodes | |
| fitv0.7.2+ | Boolean | false | Is the first rendering scaled to fit the canvas size | |
### Data structure

File diff suppressed because it is too large Load Diff

View File

@ -89,6 +89,7 @@ const mindMap = new MindMap({
| selectTextOnEnterEditTextv0.7.0+ | Boolean | true | 双击节点进入节点文本编辑时是否默认选中文本,默认只在创建新节点时会选中 | |
| deleteNodeActivev0.7.1+ | Boolean | true | 是否开启删除节点后自动激活节点相邻节点或父节点的功能 | |
| autoMoveWhenMouseInEdgeOnDragv0.7.1+ | Boolean | true | 拖拽节点时鼠标移动到画布边缘是否开启画布自动移动 | |
| fitv0.7.2+ | Boolean | false | 首次渲染时是否缩放至适应画布大小 | |
### 数据结构

File diff suppressed because it is too large Load Diff

View File

@ -276,7 +276,7 @@ export default {
this.mindMap = new MindMap({
el: this.$refs.mindMapContainer,
data: root,
fit: true,
fit: false,
layout: layout,
theme: theme.template,
themeConfig: theme.config,