From 73c566bec37c215041132f14973ec997afc05483 Mon Sep 17 00:00:00 2001 From: JackLewisGit Date: Wed, 29 Aug 2018 10:05:09 +1000 Subject: [PATCH 1/2] Update c3-tests.ts Added zoom type to zoom_examples() --- types/c3/c3-tests.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/types/c3/c3-tests.ts b/types/c3/c3-tests.ts index 6d7ea67287..5c554320f9 100644 --- a/types/c3/c3-tests.ts +++ b/types/c3/c3-tests.ts @@ -334,6 +334,7 @@ function zoom_examples() { data: {}, zoom: { enabled: false, + type: 'scroll', rescale: true, extent: [1, 100], // enable more zooming onzoom: (domain) => { /* code */ }, From 7a2180c99e70af7b6971a5651bddfb3bf43ee6b6 Mon Sep 17 00:00:00 2001 From: JackLewisGit Date: Wed, 29 Aug 2018 10:05:31 +1000 Subject: [PATCH 2/2] Update index.d.ts Added zoom type to ZoomOptions --- types/c3/index.d.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/types/c3/index.d.ts b/types/c3/index.d.ts index 0d94347ca3..e047b22c7e 100644 --- a/types/c3/index.d.ts +++ b/types/c3/index.d.ts @@ -806,6 +806,10 @@ export interface ZoomOptions { * Enable zooming. */ enabled?: boolean; + /** + * Set interaction type for zooming + */ + type?: 'scroll' | 'drag'; /** * Enable to rescale after zooming. If true set, y domain will be updated according to the zoomed region. */