Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Get Bounding Boxes from annotations #5

Open
DinoJay opened this issue Nov 22, 2017 · 0 comments
Open

Get Bounding Boxes from annotations #5

DinoJay opened this issue Nov 22, 2017 · 0 comments

Comments

@DinoJay
Copy link

DinoJay commented Nov 22, 2017

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant