Merge pull request #28469 from JackLewisGit/master

Added zoom type to ZoomOptions definition for c3js
This commit is contained in:
Armando Aguirre
2018-08-29 11:19:05 -07:00
committed by GitHub
2 changed files with 5 additions and 0 deletions
+1
View File
@@ -334,6 +334,7 @@ function zoom_examples() {
data: {},
zoom: {
enabled: false,
type: 'scroll',
rescale: true,
extent: [1, 100], // enable more zooming
onzoom: (domain) => { /* code */ },
+4
View File
@@ -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.
*/