UNPKG

@joggs1/image-mapper

Version:

Adds SVG drawing capability (rectangles, circles, ellipses and polygons) on top of your image to let you make image maps

12 lines (11 loc) 464 B
import { MobileCircle } from './MobileCircle'; import { MobileEllipse } from './MobileEllipse'; import { MobilePolygon } from './MobilePolygon'; import { MobileRectangle } from './MobileRectangle'; export type MobileComponent = MobileCircle | MobileRectangle | MobileEllipse | MobilePolygon; export type MobileViewerOptions = Partial<{ width: number; height: number; scale: number; clickHandler?: (e: PointerEvent, c: MobileComponent) => void; }>;