mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-10-04 06:47:03 +00:00
Merge pull request #28469 from JackLewisGit/master
Added zoom type to ZoomOptions definition for c3js
This commit is contained in:
@@ -334,6 +334,7 @@ function zoom_examples() {
|
||||
data: {},
|
||||
zoom: {
|
||||
enabled: false,
|
||||
type: 'scroll',
|
||||
rescale: true,
|
||||
extent: [1, 100], // enable more zooming
|
||||
onzoom: (domain) => { /* code */ },
|
||||
|
||||
Vendored
+4
@@ -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.
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user