From 33a2e20ee2e07ef000e4a903076604798fafb1ab Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E8=A1=97=E8=A7=92=E5=B0=8F=E6=9E=97?= <1013335014@qq.com>
Date: Thu, 21 Dec 2023 16:27:48 +0800
Subject: [PATCH] Doc: update
---
web/src/pages/Doc/en/view/index.md | 2 ++
web/src/pages/Doc/en/view/index.vue | 1 +
web/src/pages/Doc/zh/view/index.md | 2 ++
web/src/pages/Doc/zh/view/index.vue | 1 +
4 files changed, 6 insertions(+)
diff --git a/web/src/pages/Doc/en/view/index.md b/web/src/pages/Doc/en/view/index.md
index 8384862d..67bc898d 100644
--- a/web/src/pages/Doc/en/view/index.md
+++ b/web/src/pages/Doc/en/view/index.md
@@ -11,6 +11,8 @@ through `mindMap.view`
Zoom the mind map to fit the canvas.
+Note that this method cannot be called immediately after calling the 'setData' and 'setFullData' methods, and needs to listen to the 'node_tree_render_end' event calls 'fit'.
+
### translateX(step)
Translate in the `x` direction, `step`: number of pixels to translate
diff --git a/web/src/pages/Doc/en/view/index.vue b/web/src/pages/Doc/en/view/index.vue
index 8697288c..e3be3056 100644
--- a/web/src/pages/Doc/en/view/index.vue
+++ b/web/src/pages/Doc/en/view/index.vue
@@ -9,6 +9,7 @@ through mindMap.view
v0.6.0+
Zoom the mind map to fit the canvas.
+Note that this method cannot be called immediately after calling the 'setData' and 'setFullData' methods, and needs to listen to the 'node_tree_render_end' event calls 'fit'.
Translate in the x direction, step: number of pixels to translate
v0.6.0+
缩放思维导图至适应画布。
+注意该方法不能在setData、setFullData方法调用后立即调用,需要监听node_tree_render_end事件调用fit。
x方向进行平移,step:要平移的像素