annotorious / annotorious-openseadragon

An OpenSeadragon plugin for annotating high-res zoomable images
https://annotorious.github.io
BSD 3-Clause "New" or "Revised" License
121 stars 42 forks source link

Issue in selecting default rectangle annotation #156

Closed vivsamcom closed 1 year ago

vivsamcom commented 1 year ago

I am new to Openseadragon and Annotorious library, I want to implement annotation on the openseadragon images. When I tried to annotate using rectangle or polygon I get below error. GesturePointList.addContact() Implausible contacts value. And I am not able to release the mousecontrol (rectangle seems to attach with mouse and I am not able to release it after selecting).I am using the annotorious@2.7.10 version.

Thanks in advance.

rsimon commented 1 year ago

Weird. Which version of OpenSeadragon are you using (you need version 3.0+). Can you try downgrading to Annotorious 2.7.9 and check if the problem persists?

vivsamcom commented 1 year ago

Thanks for your quick response. I am getting same issue with Annotorious 2.7.9. I am using openseadragon 2.4.2.

Basically I am not able to release mouse pointer to complete the annotation on the image, If I click somewhere outside the image then it will allow.

rsimon commented 1 year ago

Which version of OpenSeadragon are you using (you need version 3.0+).

You will need OpenSeadragon version 3.0, 3.1 or 4.0. If you need to stay with OpenSeadragon 2.4.x for other reasons, you have to downgrade to Annotorious version 2.6.0, which is the last version to support the OpenSeadragon 2.x.

vivsamcom commented 1 year ago

Thanks @rsimon , it worked with Annotorious version 2.6.0. Rectangle and Polygon are working in my app.

I have another issue regarding annotorious-selector-pack plugin When I included the plugin I want to show the icons on toolbar like circle,ellipse,freehand. I included the plugin however it dint show the tools so do I have to do any other steps.

my code Annotorious.SelectorPack(anno, { tools: ['ellipse', 'freehand'] });

rsimon commented 1 year ago

Make sure you include the Selector Pack plugin before you include the Toolbar plugin. Otherwise the toolbar won't pick up the added tools.

vivsamcom commented 1 year ago

Perfect It worked.

vivsamcom commented 1 year ago

Is "line" tool available in the Selector Pack plugin?

rsimon commented 1 year ago

The line tool isn't quite finished yet. The last official release does not include the line tool yet. You could use the beta version if you build the selector pack from source. (Check out the repository, run npm install and npm run build in the project directory. Requires recent versions of node and npm installed on your machine.)

vivsamcom commented 1 year ago

Hi @rsimon ,

I have build the selector pack from source as you have mentioned and added line in the initialization using below

Annotorious.SelectorPack(anno, { tools: ['ellipse', 'freehand', 'point', 'circle','line'] });

However I am not able to get the line icon in toolbar. Do I have to perform any other steps ?

Thanks, Vivek

vivsamcom commented 1 year ago

Hi @rsimon ,

I have build the selector pack from source as you have mentioned and added line in the initialization using below

Annotorious.SelectorPack(anno, { tools: ['ellipse', 'freehand', 'point', 'circle','line'] });

However I am not able to get the line icon in toolbar. Do I have to perform any other steps ?

Thanks, Vivek

vivsamcom commented 1 year ago

I have rebuild the toolbar plugin from source as well and it shows the line icon in toolbar now.