The view instance is responsible for view operations, and can be obtained
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
Translate in the y direction, step: number of pixels to translate
v0.2.11+
Translate the x direction to a specific position
v0.2.11+
Translate the y direction to a specific position
Revert to the default transformation
cx:(v0.6.4+)Zoom to the specified position on the canvas, default to the center point of the canvas
cy:(v0.6.4+)Zoom to the specified position on the canvas, default to the center point of the canvas
Zoom out
cx:(v0.6.4+)Zoom to the specified position on the canvas, default to the center point of the canvas
cy:(v0.6.4+)Zoom to the specified position on the canvas, default to the center point of the canvas
Zoom in
v0.1.1+
Get the current transform data, can be used for display
v0.1.1+
Dynamically set transform data, transform data can be obtained through the getTransformData method"
v0.2.17+
cx:(v0.6.4+)Zoom to the specified position on the canvas, default to the center point of the canvas
cy:(v0.6.4+)Zoom to the specified position on the canvas, default to the center point of the canvas
Setting Zoom