annotorious / annotorious-v1

Project has moved to http://github.com/annotorious/annotorious
https://annotorious.com
MIT License
593 stars 142 forks source link

How to change format of selection #212

Open artutava opened 4 years ago

artutava commented 4 years ago

Hey, how can I change the format o f the selection, so that i can change the color of the selection in the image and add border radius to it? is it done in css or js?

rsimon commented 4 years ago

The annotations are rendered as raster graphics on a Canvas element. Unfortunately that means there are no styling options except the color config available through the API.

In case this still helps: I started working on a modern re-write of Annotorious very recently. This uses SVG - which means the annotation shapes can be fully styled via CSS. Documentation isn’t complete yet. Do shout out if you want to try it out.