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

Editor positioning problem, eager to know how the editor positioning is dynamically positioned next to the box #395

Open
Whao510 opened this issue Apr 26, 2024 · 2 comments
Labels
v2.x Legacy 2.x relesae

Comments

@Whao510
Copy link

Whao510 commented Apr 26, 2024

uu

@Whao510
Copy link
Author

Whao510 commented Apr 26, 2024

Because I want to make a drop-down box that meets the requirements by clicking clickAnnotation event, I hope the author can help me in time, thank you very much

@rsimon
Copy link
Member

rsimon commented May 1, 2024

Extending the editor is problematic in Annotorious v2. Did you see the documentation here?
https://annotorious.github.io/guides/editor-widgets/

This might help to get you started.

Another option, if you want to build your own editor entirely: Each annotation is an SVG shape. You can listen to the selectAnnotation event. The event will give you a reference to the SVG element as a second argument. You could use this to get the position using element.getBoundingClientRect() for the position.

@rsimon rsimon added the v2.x Legacy 2.x relesae label May 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
v2.x Legacy 2.x relesae
Projects
None yet
Development

No branches or pull requests

2 participants