Skip to content

Commit 7f49e9c

Browse files
committed
fix: lint
1 parent 7321cb2 commit 7f49e9c

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/core.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,7 @@ export function zoom(chart, amount, transition = 'none', trigger = 'api') {
7373
const yEnabled = y !== 1;
7474
const enabledScales = getEnabledScalesByPoint(zoomOptions, focalPoint, chart);
7575

76+
// @ts-expect-error No overload matches this call
7677
each(enabledScales || chart.scales, function(scale) {
7778
if (scale.isHorizontal() && xEnabled) {
7879
doZoom(scale, x, focalPoint, limits);
@@ -221,6 +222,7 @@ export function pan(chart, delta, enabledScales, transition = 'none') {
221222
const xEnabled = x !== 0;
222223
const yEnabled = y !== 0;
223224

225+
// @ts-expect-error No overload matches this call
224226
each(enabledScales || chart.scales, function(scale) {
225227
if (scale.isHorizontal() && xEnabled) {
226228
panScale(scale, x, limits, state);

0 commit comments

Comments
 (0)