SCENE-CE / mirador-annotation-editor

Apache License 2.0
5 stars 0 forks source link

Fix scale problem when saving string target or image #86

Open geourjoa opened 3 months ago

geourjoa commented 3 months ago

The Konva Stage is wider than the image media, here I applied a blue background on the konva's stage :

Image

This situation results into this bug :

1) I create a target there :

Image

2) it's displayed there :

Image

Drilio commented 3 months ago

We may find a method displayed by OpenSeaDragon that could give us the position and dimenssions of the image in the doc : https://openseadragon.github.io/docs/OpenSeadragon.html

d-flood commented 6 days ago

https://github.com/SCENE-CE/mirador-annotation-editor/assets/69060117/861ed89e-8bbd-4068-836d-c7792609d812

I finally made some progress here. I've got the Konva Stage to stick with the IIIF image. I tried quite a number of things but my final solution is both simple and hacky—hopefully you have some suggestions.

My branch is 86-stage-canvas