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

Method cb

src/common/overlay/KnowledgeGraph.js:529–536  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

527 const graph = this.graphRender.initGraph(config);
528 this.graph = graph;
529 const cb = () => {
530 if (this.config.zoom !== undefined) {
531 this.zoom(this.config.zoom);
532 }
533 if (this.config.center !== undefined) {
534 this.graphRender.setCenter({ x: this.config.center[0], y: this.config.center[1] });
535 }
536 };
537 this.graph.on('afterlayout', cb);
538 return graph;
539 }

Callers

nothing calls this directly

Calls 2

zoomMethod · 0.95
setCenterMethod · 0.45

Tested by

no test coverage detected