mirror of
https://github.com/wanglin2/mind-map.git
synced 2026-02-17 22:08:25 +08:00
Doc: update
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -9,6 +9,7 @@ through <code>mindMap.view</code></p>
|
||||
<p>v0.6.0+</p>
|
||||
</blockquote>
|
||||
<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>
|
||||
<p>Translate in the <code>x</code> direction, <code>step</code>: number of pixels to translate</p>
|
||||
<h3>translateY(step)</h3>
|
||||
|
||||
@@ -10,6 +10,8 @@
|
||||
|
||||
缩放思维导图至适应画布。
|
||||
|
||||
注意该方法不能在`setData`、`setFullData`方法调用后立即调用,需要监听`node_tree_render_end`事件调用`fit`。
|
||||
|
||||
### translateX(step)
|
||||
|
||||
`x`方向进行平移,`step`:要平移的像素
|
||||
|
||||
@@ -8,6 +8,7 @@
|
||||
<p>v0.6.0+</p>
|
||||
</blockquote>
|
||||
<p>缩放思维导图至适应画布。</p>
|
||||
<p>注意该方法不能在<code>setData</code>、<code>setFullData</code>方法调用后立即调用,需要监听<code>node_tree_render_end</code>事件调用<code>fit</code>。</p>
|
||||
<h3>translateX(step)</h3>
|
||||
<p><code>x</code>方向进行平移,<code>step</code>:要平移的像素</p>
|
||||
<h3>translateY(step)</h3>
|
||||
|
||||
Reference in New Issue
Block a user