ProjectMirador / mirador-annotations

a Mirador 3 plugin that adds annotation creation tools to the user interface
https://mirador-annotations.netlify.app/
39 stars 38 forks source link

Editing annotations has issues in two-page "book" view #24

Open robcast opened 4 years ago

robcast commented 4 years ago

Either we should fix handling annotations on two canvases simultaneously (may be difficult) or disable adding and editing annotations in two-page mode with a warning to switch to single-page mode.

lutzhelm commented 3 years ago

Additionally, the annotation is placed on every currently visible canvas.

A fix would require to check if there are multiple currently visible canvases, and if so, to calculate how the coordinates translate to the correct canvas, dependent on the current viewingDirection.

lutzhelm commented 3 years ago

Fixing this issue might indeed be difficult:

For the moment, I suggest to avoid creating annotations in multi canvas views; see PR #43.

robcast commented 3 years ago

I haven't checked @lutzhelm 's PR but I think it is a good step in the right direction to put up a warning when the user tries to create or edit an annotation in two-page view.

Better yet would be a real fix that treats each page's annotations separately but in the mean time a warning would be nice :-)