react-image-hotspots
Version:
React component for rendering images with hotspots
69 lines • 1.89 kB
TypeScript
export default ImageHotspots;
declare class ImageHotspots extends React.Component<any, any, any> {
constructor(props: any);
state: {
container: {
width: any;
height: any;
ratio: any;
orientation: any;
background: any;
};
image: {
initialWidth: any;
initialHeight: any;
width: any;
height: any;
scale: any;
ratio: any;
orientation: any;
offsetX: any;
offsetY: any;
};
minimap: {
initialSize: number;
width: any;
height: any;
guideWidth: any;
guideHeight: any;
offsetX: number;
offsetY: number;
};
hideFullscreenControl: boolean;
hideZoomControls: boolean;
hideMinimap: boolean;
resizable: any;
draggable: any;
cursorX: any;
cursorY: any;
mcursorX: any;
mcursorY: any;
dragging: any;
isGuideDragging: any;
hotspots: any[];
};
container: React.RefObject<any>;
componentDidMount: () => void;
componentWillUnmount: () => void;
startDrag: (event: any, element: any) => void;
whileDrag: (event: any) => void;
stopDrag: () => void;
handleOnImageLoad: ({ target: image }: {
target: any;
}) => void;
onWindowResize: () => void;
toggleFullscreen: () => void;
zoom: (scale: any) => void;
requestFullscreen: (element: any) => void;
exitFullscreen: () => void;
render: () => import("react/jsx-runtime").JSX.Element;
}
declare namespace ImageHotspots {
namespace propTypes {
let src: any;
let alt: any;
let hotspots: any;
}
}
import React from 'react';
//# sourceMappingURL=ImageHotspots.d.ts.map