informatics-isi-edu / openseadragon-viewer

2D viewer with openseadragon
Apache License 2.0
5 stars 2 forks source link

Text Annotation Tool #105

Closed nikhiilll closed 1 year ago

nikhiilll commented 1 year ago

Text Annotation

Added the text annotation functionality. To implement the text annotation, we are using a ForeignObject inside the annotation SVG. We use a Textarea input to let the user type and get the text. Once the user starts drawing another annotation, we transform the input to a p tag containing the same text and styling that the user had.

Changes

RFSH commented 1 year ago

In Safari, we couldn't figure out how to show the handler for resizing the textbox, so for now, that feature is not used in Safari.

Everything else seems to be working as expected. I will merge this PR and get back to the Safari issue later.