@ta-interaktiv/react-annotated-content
Version:
Component to render annotations above other content
20 lines • 760 B
TypeScript
import React, { ReactNode } from 'react';
import { ShapeStyle } from './types';
interface BaseAreaAnnotationProps {
shapeType?: 'rect' | 'circle' | 'custom';
children?: ReactNode;
pattern?: 'crossed' | 'hatched' | 'dotted' | 'none';
textAnchor?: 'left' | 'center' | 'right';
offset?: number | [number, number];
fullSize?: [number, number];
shapeStyle?: ShapeStyle;
size?: number | [number, number];
rotation?: number;
customShape?: {
x: number;
y: number;
}[];
}
export declare const AreaAnnotation: ({ children, shapeType, size, rotation, customShape, fullSize, textAnchor, offset, shapeStyle, }: BaseAreaAnnotationProps) => React.JSX.Element;
export {};
//# sourceMappingURL=AreaAnnotation.d.ts.map