We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4cb466f commit 63bf33dCopy full SHA for 63bf33d
src/graph.ts
@@ -170,7 +170,7 @@ export class Graph {
170
this.cameraService.zoom(zoomConfig.x || width / 2, zoomConfig.y || height / 2, zoomConfig.scale);
171
}
172
173
- public zoomTo(target: TGraphZoomTarget, config?: ZoomConfig): Promise<void> | void {
+ public zoomTo(target: TGraphZoomTarget, config?: ZoomConfig) {
174
if (target === "center") {
175
this.api.zoomToViewPort(config);
176
return;
0 commit comments