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
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