react-pdf-highlighter-plus
Content: {
    image?: string;
    shape?: ShapeData;
    strokes?: DrawingStroke[];
    text?: string;
}

The content of a highlight

Type declaration

  • Optional image?: string
  • Optional shape?: ShapeData

    For shape highlights, store the shape data

  • Optional strokes?: DrawingStroke[]

    For drawing highlights, store the stroke data for later editing

  • Optional text?: string