react-pdf-highlighter-plus
ShapeData: {
    endPoint?: {
        x: number;
        y: number;
    };
    shapeType: ShapeType;
    startPoint?: {
        x: number;
        y: number;
    };
    strokeColor: string;
    strokeWidth: number;
}

Shape data for shape highlights.

Type declaration

  • Optional endPoint?: {
        x: number;
        y: number;
    }

    For arrows: end point as percentage of bounding box (0-1)

    • x: number
    • y: number
  • shapeType: ShapeType
  • Optional startPoint?: {
        x: number;
        y: number;
    }

    For arrows: start point as percentage of bounding box (0-1)

    • x: number
    • y: number
  • strokeColor: string
  • strokeWidth: number