Open joelpoloney opened 3 years ago
Fixed 2 things:
key
renderHighlight
Added new:
Support for generic IAnnotation objects so you can use your own version of the Annotation object and include your own data outside of just text and an id. You use it like this:
IAnnotation
import { IAnnotation } from 'react-image-annotation' export interface MyAnnotation extends Omit<IAnnotation, 'data'> { data: { id?: string updatedAt: Date type: string userVisibleName: string metadata: Record<string, unknown> } }
Fixed 2 things:
key
property that is provided torenderHighlight
-- this definition was out of date.Added new:
Support for generic
IAnnotation
objects so you can use your own version of the Annotation object and include your own data outside of just text and an id. You use it like this: