Doc: update

This commit is contained in:
街角小林 2023-12-21 16:27:48 +08:00
parent 7b8946bec4
commit 33a2e20ee2
4 changed files with 6 additions and 0 deletions

View File

@ -11,6 +11,8 @@ through `mindMap.view`
Zoom the mind map to fit the canvas. 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) ### translateX(step)
Translate in the `x` direction, `step`: number of pixels to translate Translate in the `x` direction, `step`: number of pixels to translate

View File

@ -9,6 +9,7 @@ through <code>mindMap.view</code></p>
<p>v0.6.0+</p> <p>v0.6.0+</p>
</blockquote> </blockquote>
<p>Zoom the mind map to fit the canvas.</p> <p>Zoom the mind map to fit the canvas.</p>
<p>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'.</p>
<h3>translateX(step)</h3> <h3>translateX(step)</h3>
<p>Translate in the <code>x</code> direction, <code>step</code>: number of pixels to translate</p> <p>Translate in the <code>x</code> direction, <code>step</code>: number of pixels to translate</p>
<h3>translateY(step)</h3> <h3>translateY(step)</h3>

View File

@ -10,6 +10,8 @@
缩放思维导图至适应画布。 缩放思维导图至适应画布。
注意该方法不能在`setData``setFullData`方法调用后立即调用,需要监听`node_tree_render_end`事件调用`fit`
### translateX(step) ### translateX(step)
`x`方向进行平移,`step`:要平移的像素 `x`方向进行平移,`step`:要平移的像素

View File

@ -8,6 +8,7 @@
<p>v0.6.0+</p> <p>v0.6.0+</p>
</blockquote> </blockquote>
<p>缩放思维导图至适应画布</p> <p>缩放思维导图至适应画布</p>
<p>注意该方法不能在<code>setData</code><code>setFullData</code>方法调用后立即调用需要监听<code>node_tree_render_end</code>事件调用<code>fit</code></p>
<h3>translateX(step)</h3> <h3>translateX(step)</h3>
<p><code>x</code>方向进行平移<code>step</code>要平移的像素</p> <p><code>x</code>方向进行平移<code>step</code>要平移的像素</p>
<h3>translateY(step)</h3> <h3>translateY(step)</h3>