Skip to content

Commit 63bf33d

Browse files
committed
refactor(Graph): simplify zoomTo method signature by removing unnecessary Promise return type
1 parent 4cb466f commit 63bf33d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/graph.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ export class Graph {
170170
this.cameraService.zoom(zoomConfig.x || width / 2, zoomConfig.y || height / 2, zoomConfig.scale);
171171
}
172172

173-
public zoomTo(target: TGraphZoomTarget, config?: ZoomConfig): Promise<void> | void {
173+
public zoomTo(target: TGraphZoomTarget, config?: ZoomConfig) {
174174
if (target === "center") {
175175
this.api.zoomToViewPort(config);
176176
return;

0 commit comments

Comments
 (0)