* @function KnowledgeGraph.prototype.zoom * @description 改变视口的缩放比例,在当前画布比例下缩放,是相对比例。 * @param {number} ratio 缩放比例。 * @param {Object} [center] 以 center 的 x、y 坐标为中心缩放,如果省略了 center 参数,则以元素当前位置为中心缩放。 * @param {boolean} [animate] 是否开启动画。 * @param {KnowledgeGraph.AnimateConfig} [animateCfg]
(ratio, center, animate, animateCfg)
| 399 | * @param {KnowledgeGraph.AnimateConfig} [animateCfg] 若带有动画,可配置动画。若未配置,则跟随 graph 的 animateCfg 参数。 |
| 400 | */ |
| 401 | zoom(ratio, center, animate, animateCfg) { |
| 402 | this.graphRender.zoom(ratio, center, animate, animateCfg); |
| 403 | } |
| 404 | |
| 405 | /** |
| 406 | * @function KnowledgeGraph.prototype.zoomTo |
no outgoing calls
no test coverage detected