UNPKG

@kbss-cvut/s-forms

Version:

Semantic forms generator and processor

22 lines (21 loc) 800 B
export default ImageOverlay; /** * Displays an image in a full-screen modal overlay and renders annotations on top of it. * * The component is responsible only for layout and sizing. Annotation filtering, * geometry handling, and rendering are delegated to AnnotationRenderer. * * @component * * @param {Object} props * @param {string} props.src - Source URL of the image to display. * @param {Array<Object>} props.annotations - List of annotations associated with the image. * @param {Function} props.onClose - Callback invoked when the overlay is dismissed. * * @returns {JSX.Element} Full-screen image overlay with annotations. */ declare function ImageOverlay({ src, annotations, onClose }: { src: string; annotations: Array<Object>; onClose: Function; }): JSX.Element;