react-pan-zoom-hoc
Version:
This is a HOC to make your beautiful React components pannable and zoomable by mouse.
10 lines • 440 B
TypeScript
import React from "react";
import PropTypes from "prop-types";
interface Props {
ResetButton?: PropTypes.ReactElementLike;
state?: [PanZoomConfig, (pz: PanZoomConfig) => void];
onChange?: (pan_zoom: PanZoomConfig) => void;
}
declare const withPanAndZoom: <P extends object>(WrappedComponent: React.ComponentType<P>) => React.FunctionComponent<P & Props>;
export default withPanAndZoom;
//# sourceMappingURL=HOC.d.ts.map