Skip to content

Get Bounding Boxes from annotations #5

@DinoJay

Description

@DinoJay

Hey,

first of all thank you for this nice library. Unfortunately, I'm facing troubles in detecting the bounding box of an annotation with getBBox(). I do this via refs of React. Strangely, for a some annotations I can get the correct bounding box and for others I only get width and height equals 0. I think, my Parent component calls the getBox function before the annotations are actually completely rendered in some cases.

What is the correct way to get the bounding boxes of annotations?

Thanks a lot!
Cheers,
Jan

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions