From 6df18e6ec64932d5f4c378a5dc17dab0e371a9f6 Mon Sep 17 00:00:00 2001 From: Akihiko Kusanagi Date: Fri, 30 Apr 2021 17:37:45 +0800 Subject: [PATCH] Make resetZoom accept UpdateMode argument --- src/plugin.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/plugin.js b/src/plugin.js index 371ed40a..30c75eae 100644 --- a/src/plugin.js +++ b/src/plugin.js @@ -37,7 +37,7 @@ export default { chart.pan = (delta, panScales, transition) => pan(chart, delta, panScales, transition); chart.zoom = (args, transition) => zoom(chart, args, transition); chart.zoomScale = (id, range, transition) => zoomScale(chart, id, range, transition); - chart.resetZoom = () => resetZoom(chart); + chart.resetZoom = (transition) => resetZoom(chart, transition); }, beforeEvent(chart, args) {