Rainer Simon

Results 390 comments of Rainer Simon

Hi, I think you should be able to programmatically clear the selection in the `createAnnotation` handler. This way the annotation would instantly deselect, and you could start drawing again. About...

The fill/stroke-etc. settings are supposed to apply to the rubberband drawing tools as well. However I think that may not yet be fully implemented. (It definitely isn't in the 'image'...

Ah - well in that case, the style isn't applied in either the OSD version nor the image version yet :-) Yes, I'm definitely going to apply the styles to...

It would actually be quite straightforward. You'd just have to repeat the same steps for the Tools, as they are already implemented for the Editors. (Compute the style and apply...

I might be misunderstanding your use case. But assuming that you are using React, then, yes, the style will apply to all annotations, and update for all as soon as...

Ok, that's what I thought. I know it's a tricky initially. But your use case is exactly what the function-type styles are for. You need to store the color of...

Yes, you'd store information about the style in a body. (Could just be a tag. E.g. "blue" vs. "red".) Then in the style function you'd check the body for the...

The update event fires after you make a change, and deselect the annotation. (Or after a period of idleness, if the autoSave init prop is set.) That's meant for CRUD...

About re-renders: this might get optimized eventually. But for now, every change to the annotation will trigger a re-render, which is by design. (The popup might want to react to...

@technbuzz absolutely. Also see: https://annotorious.dev/api-reference/drawing-style/ P.S.: CSS classes directly are not an option for Annotorious, because the OpenSeadragon version works with WebGL rather than SVG.