From 993899c6147c7904b0ccd8e19d3c090c877be3a9 Mon Sep 17 00:00:00 2001 From: vargburz Date: Tue, 2 Nov 2021 17:54:47 +0300 Subject: [PATCH] add type for pan field --- dist/index.d.ts | 2 +- src/index.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/dist/index.d.ts b/dist/index.d.ts index 82723a0..c146dc8 100644 --- a/dist/index.d.ts +++ b/dist/index.d.ts @@ -14,7 +14,7 @@ declare abstract class ChartwerkPod { protected zoom?: any; protected svg?: d3.Selection; protected state: PodState; - protected pan?: any; + protected pan?: d3.ZoomBehavior; protected clipPath?: any; protected isPanning: boolean; protected isBrushing: boolean; diff --git a/src/index.ts b/src/index.ts index 7632605..d269a73 100644 --- a/src/index.ts +++ b/src/index.ts @@ -113,7 +113,7 @@ abstract class ChartwerkPod { protected zoom?: any; protected svg?: d3.Selection; protected state: PodState; - protected pan?: any; // TODO: not any; + protected pan?: d3.ZoomBehavior; protected clipPath?: any; protected isPanning = false; protected isBrushing = false;