From 4acf8ba2ac3b6df358d3cd1f997641768d77bb83 Mon Sep 17 00:00:00 2001 From: wanglin2 <1013335014@qq.com> Date: Tue, 18 Apr 2023 09:45:40 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=E6=96=87=E6=A1=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- web/src/pages/Doc/en/changelog/index.md | 2 +- web/src/pages/Doc/en/changelog/index.vue | 2 +- web/src/pages/Doc/en/constructor/index.md | 3 +++ web/src/pages/Doc/en/constructor/index.vue | 21 +++++++++++++++++++++ web/src/pages/Doc/zh/changelog/index.md | 2 +- web/src/pages/Doc/zh/changelog/index.vue | 2 +- web/src/pages/Doc/zh/constructor/index.md | 3 +++ web/src/pages/Doc/zh/constructor/index.vue | 21 +++++++++++++++++++++ 8 files changed, 52 insertions(+), 4 deletions(-) diff --git a/web/src/pages/Doc/en/changelog/index.md b/web/src/pages/Doc/en/changelog/index.md index e81b51e4..50b58823 100644 --- a/web/src/pages/Doc/en/changelog/index.md +++ b/web/src/pages/Doc/en/changelog/index.md @@ -2,7 +2,7 @@ ## 0.5.5 -New: 1.Supports configuring the padding when exporting to PNG, SVG, or PDF. +New: 1.Supports configuring the padding when exporting to PNG, SVG, or PDF. 2.Support the configuration of z-index for node text editing boxes and node comment floating layer elements. 3.Support clicking on areas outside the canvas to end node editing status. ## 0.5.4 diff --git a/web/src/pages/Doc/en/changelog/index.vue b/web/src/pages/Doc/en/changelog/index.vue index 5418d29c..0ee79ab6 100644 --- a/web/src/pages/Doc/en/changelog/index.vue +++ b/web/src/pages/Doc/en/changelog/index.vue @@ -2,7 +2,7 @@

Changelog

0.5.5

-

New: 1.Supports configuring the padding when exporting to PNG, SVG, or PDF.

+

New: 1.Supports configuring the padding when exporting to PNG, SVG, or PDF. 2.Support the configuration of z-index for node text editing boxes and node comment floating layer elements. 3.Support clicking on areas outside the canvas to end node editing status.

0.5.4

New: 1.Add new themes. 2.Added timeline and fishbone structure.

Fix: 1.Fix the conflict issue between node right-click and canvas right-click. 2.Fix the bug that the line segment is not hidden when dragging nodes such as organizational chart and directory organization chart.

diff --git a/web/src/pages/Doc/en/constructor/index.md b/web/src/pages/Doc/en/constructor/index.md index fb2fa523..96694a32 100644 --- a/web/src/pages/Doc/en/constructor/index.md +++ b/web/src/pages/Doc/en/constructor/index.md @@ -55,6 +55,9 @@ const mindMap = new MindMap({ | initRootNodePosition(v0.5.3+) | Array | null | The position of the initial root node can be passed as an array, default is `['center', 'center']`, Represents the root node at the center of the canvas, In addition to `center`, keywords can also be set to `left`, `top`, `right`, and `bottom`, In addition to passing keywords, each item in the array can also pass a number representing a specific pixel, Can pass a percentage string, such as `['40%', '60%']`, Represents a horizontal position at `40%` of the canvas width, and a vertical position at `60%` of the canvas height | | | exportPaddingX(v0.5.5+) | Number | 10 | Horizontal padding of graphics when exporting PNG, SVG, and PDF | | | exportPaddingY(v0.5.5+) | Number | 10 | Vertical padding of graphics when exporting PNG, SVG, and PDF | | +| nodeTextEditZIndex(v0.5.5+) | Number | 3000 | | z-index of node text edit box elements | +| nodeNoteTooltipZIndex(v0.5.5+) | Number | 3000 | z-index of floating layer elements in node comments | | +| isEndNodeTextEditOnClickOuter(v0.5.5+) | Boolean | true | Whether to end the editing status of node text when clicking on an area outside the canvas | | ### Watermark config diff --git a/web/src/pages/Doc/en/constructor/index.vue b/web/src/pages/Doc/en/constructor/index.vue index 7c449f15..7d2b1a02 100644 --- a/web/src/pages/Doc/en/constructor/index.vue +++ b/web/src/pages/Doc/en/constructor/index.vue @@ -245,6 +245,27 @@ Vertical padding of graphics when exporting PNG, SVG, and PDF + +nodeTextEditZIndex(v0.5.5+) +Number +3000 + +z-index of node text edit box elements + + +nodeNoteTooltipZIndex(v0.5.5+) +Number +3000 +z-index of floating layer elements in node comments + + + +isEndNodeTextEditOnClickOuter(v0.5.5+) +Boolean +true +Whether to end the editing status of node text when clicking on an area outside the canvas + +

Watermark config

diff --git a/web/src/pages/Doc/zh/changelog/index.md b/web/src/pages/Doc/zh/changelog/index.md index cc981afa..2920950e 100644 --- a/web/src/pages/Doc/zh/changelog/index.md +++ b/web/src/pages/Doc/zh/changelog/index.md @@ -2,7 +2,7 @@ ## 0.5.5 -新增:1.支持配置导出为png、svg、pdf时的内边距。 +新增:1.支持配置导出为png、svg、pdf时的内边距。 2.支持配置节点文本编辑框、节点备注浮层元素的z-index。 3.支持点击画布外的区域结束节点编辑状态。 ## 0.5.4 diff --git a/web/src/pages/Doc/zh/changelog/index.vue b/web/src/pages/Doc/zh/changelog/index.vue index b188d3de..88bbdee2 100644 --- a/web/src/pages/Doc/zh/changelog/index.vue +++ b/web/src/pages/Doc/zh/changelog/index.vue @@ -2,7 +2,7 @@

Changelog

0.5.5

-

新增:1.支持配置导出为png、svg、pdf时的内边距。

+

新增:1.支持配置导出为png、svg、pdf时的内边距。 2.支持配置节点文本编辑框、节点备注浮层元素的z-index。 3.支持点击画布外的区域结束节点编辑状态。

0.5.4

新增:1.添加新主题。 2.新增时间轴和鱼骨结构。

修复:1.修复节点右键和画布右键的冲突问题。 2.修复组织结构图、目录组织图等节点拖拽时存在线段未隐藏的bug。

diff --git a/web/src/pages/Doc/zh/constructor/index.md b/web/src/pages/Doc/zh/constructor/index.md index 734d4f5d..d18b222b 100644 --- a/web/src/pages/Doc/zh/constructor/index.md +++ b/web/src/pages/Doc/zh/constructor/index.md @@ -55,6 +55,9 @@ const mindMap = new MindMap({ | initRootNodePosition(v0.5.3+) | Array | null | 初始根节点的位置,可传一个数组,默认为`['center', 'center']`,代表根节点处于画布中心位置,除了`center`,关键词还可以设置`left`、`top`、`right`、`bottom`,除了可以传关键词,数组的每项还可以传递一个数字,代表具体的像素,可以传递一个百分比字符串,比如`['40%', '60%']`,代表水平位置在画布宽度的`40%`的位置,垂直位置在画布高度的`60%`的位置 | | | exportPaddingX(v0.5.5+) | Number | 10 | 导出png、svg、pdf时的图形水平内边距 | | | exportPaddingY(v0.5.5+) | Number | 10 | 导出png、svg、pdf时的图形垂直内边距 | | +| nodeTextEditZIndex(v0.5.5+) | Number | 3000 | 节点文本编辑框元素的z-index | | +| nodeNoteTooltipZIndex(v0.5.5+) | Number | 3000 | 节点备注浮层元素的z-index | | +| isEndNodeTextEditOnClickOuter(v0.5.5+) | Boolean | true | 是否在点击了画布外的区域时结束节点文本的编辑状态 | | ### 水印配置 diff --git a/web/src/pages/Doc/zh/constructor/index.vue b/web/src/pages/Doc/zh/constructor/index.vue index 2998bd61..83614275 100644 --- a/web/src/pages/Doc/zh/constructor/index.vue +++ b/web/src/pages/Doc/zh/constructor/index.vue @@ -245,6 +245,27 @@ 导出png、svg、pdf时的图形垂直内边距 + +nodeTextEditZIndex(v0.5.5+) +Number +3000 +节点文本编辑框元素的z-index + + + +nodeNoteTooltipZIndex(v0.5.5+) +Number +3000 +节点备注浮层元素的z-index + + + +isEndNodeTextEditOnClickOuter(v0.5.5+) +Boolean +true +是否在点击了画布外的区域时结束节点文本的编辑状态 + +

水印配置