MCPcopy Index your code
hub / github.com/SuperMap/iClient-JavaScript / zoom

Method zoom

src/common/overlay/KnowledgeGraph.js:401–403  ·  view source on GitHub ↗

* @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)

Source from the content-addressed store, hash-verified

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

Callers 6

cbMethod · 0.95
NonEarthCRSSpec.jsFile · 0.45
leaflet.jsFile · 0.45
leaflet-src.jsFile · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected