@geneui/components
Version:
The Gene UI components library designed for BI tools
41 lines (40 loc) • 956 B
TypeScript
import React from 'react';
interface IMagnifierProps {
/**
* Image path to display. <span style="color: red">( Required )</span>
*/
imgUrl: string;
/**
* On or off rotation functionality
*/
withRotation?: boolean;
/**
* On or off magnifier functionality
*/
withMagnifier?: boolean;
/**
* Zoom Ratio
*/
zoom?: number;
/**
* Hide or show magnifier
*/
showMagnifier?: boolean;
/**
* Name for image alt
*/
name?: string;
/**
* Additional className for img
*/
className?: string;
/**
* Shape for magnifier
*/
magnifierAppearance?: 'square' | 'circle';
}
interface IMagnifierForwardRef {
rotate?: (deg?: number) => void;
}
declare const Magnifier: React.ForwardRefExoticComponent<IMagnifierProps & React.RefAttributes<IMagnifierForwardRef>>;
export { IMagnifierProps, IMagnifierForwardRef, Magnifier as default };