Skip to content

Commit

Permalink
Restore type tests
Browse files Browse the repository at this point in the history
  • Loading branch information
joshkel committed May 24, 2022
1 parent 366487f commit f9f826e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions types/tests/exports.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { Chart } from 'chart.js';
import Zoom from '../index';
import Zoom, { pan, zoom, resetZoom } from '../index';

Chart.register(Zoom);
Chart.unregister(Zoom);
Expand Down Expand Up @@ -55,6 +55,6 @@ chart.zoom({ x: 1, y: 1.1, focalPoint: { x: 10, y: 10 } }, 'zoom');
chart.pan(10);
chart.pan({ x: 10, y: 20 }, [chart.scales.x]);

chart.zoomRect({ x: 10, y: 20 }, { x: 30, y: 40 });

chart.resetZoom('none');
pan(chart, -42, undefined, 'zoom');
zoom(chart, { x: 1, y: 1.1, focalPoint: { x: 10, y: 10 } }, 'zoom');
resetZoom(chart, 'none');

0 comments on commit f9f826e

Please sign in to comment.