From 34322ba6d1d10709b187f32b39cd6ee16b5a4075 Mon Sep 17 00:00:00 2001 From: wanglin2 <1013335014@qq.com> Date: Tue, 25 Apr 2023 17:29:56 +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 --- index.html | 2 +- web/src/pages/Doc/en/constructor/index.md | 6 +++++- web/src/pages/Doc/en/constructor/index.vue | 4 +++- web/src/pages/Doc/zh/constructor/index.md | 6 +++++- web/src/pages/Doc/zh/constructor/index.vue | 4 +++- 5 files changed, 17 insertions(+), 5 deletions(-) diff --git a/index.html b/index.html index 5928202c..da024c65 100644 --- a/index.html +++ b/index.html @@ -1 +1 @@ -一个简单的web思维导图实现
\ No newline at end of file +一个简单的web思维导图实现
\ No newline at end of file diff --git a/web/src/pages/Doc/en/constructor/index.md b/web/src/pages/Doc/en/constructor/index.md index fc2ec9cd..2712377b 100644 --- a/web/src/pages/Doc/en/constructor/index.md +++ b/web/src/pages/Doc/en/constructor/index.md @@ -139,10 +139,14 @@ List of all currently registered plugins. ## Instance methods -### getSvgData() +### getSvgData({ paddingX = 0, paddingY = 0 }) > v0.3.0+ +`paddingX`: Padding x + +`paddingY`: Padding y + Get the `svg` data and return an object. The detailed structure is as follows: ```js diff --git a/web/src/pages/Doc/en/constructor/index.vue b/web/src/pages/Doc/en/constructor/index.vue index 50620930..8539787a 100644 --- a/web/src/pages/Doc/en/constructor/index.vue +++ b/web/src/pages/Doc/en/constructor/index.vue @@ -406,10 +406,12 @@ mindMap.setTheme('Theme name')

List of all currently registered plugins.

Instance methods

-

getSvgData()

+

getSvgData({ paddingX = 0, paddingY = 0 })

v0.3.0+

+

paddingX: Padding x

+

paddingY: Padding y

Get the svg data and return an object. The detailed structure is as follows:

{
   svg, // Element, the overall svg element of the mind map graphics, including: svg (canvas container), g (actual mind map group)
diff --git a/web/src/pages/Doc/zh/constructor/index.md b/web/src/pages/Doc/zh/constructor/index.md
index 48d99ce6..51c39d3f 100644
--- a/web/src/pages/Doc/zh/constructor/index.md
+++ b/web/src/pages/Doc/zh/constructor/index.md
@@ -137,10 +137,14 @@ mindMap.setTheme('主题名称')
 
 ## 实例方法
 
-### getSvgData()
+### getSvgData({ paddingX = 0, paddingY = 0 })
 
 > v0.3.0+
 
+`paddingX`:水平内边距
+
+`paddingY`:垂直内边距
+
 获取`svg`数据,返回一个对象,详细结构如下:
 
 ```js
diff --git a/web/src/pages/Doc/zh/constructor/index.vue b/web/src/pages/Doc/zh/constructor/index.vue
index e0b341d0..db06bfe3 100644
--- a/web/src/pages/Doc/zh/constructor/index.vue
+++ b/web/src/pages/Doc/zh/constructor/index.vue
@@ -406,10 +406,12 @@ mindMap.setTheme('主题名称')
 
 

当前注册的所有插件列表。

实例方法

-

getSvgData()

+

getSvgData({ paddingX = 0, paddingY = 0 })

v0.3.0+

+

paddingX:水平内边距

+

paddingY:垂直内边距

获取svg数据,返回一个对象,详细结构如下:

{
   svg, // Element,思维导图图形的整体svg元素,包括:svg(画布容器)、g(实际的思维导图组)