Skip to content

Commit

Permalink
add onclick method which is called when annotation is clicked
Browse files Browse the repository at this point in the history
  • Loading branch information
RobinNagpal committed Nov 6, 2021
1 parent c783a88 commit 7c359dd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/types/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ export interface RenderShapeProps {
isInSelectionMode: boolean;
renderContent?: (props: ContentProps) => ReactElement | null;
selectedAnnotation?: IAnnotation;
selectAnnotation: (annotation: IAnnotation) => void;
onAnnotationClick: (annotation: IAnnotation) => void;
}

export interface ContentProps {
Expand Down

0 comments on commit 7c359dd

Please sign in to comment.