Skip to content

Commit

Permalink
fix svg overlay positions
Browse files Browse the repository at this point in the history
  • Loading branch information
kepper committed Dec 7, 2023
1 parent 805d252 commit 3b5193e
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions src/components/FacsimileComponent.vue
Original file line number Diff line number Diff line change
Expand Up @@ -438,10 +438,15 @@ export default {
return false
} */
const loc = new OpenSeadragon.Rect(rects.image.x, rects.image.y, rects.image.w, rects.image.h, rects.rotation)
const loc = new OpenSeadragon.Rect(rects.image.x, rects.image.y, rects.image.w, rects.image.h, 0)
const svgContainer = document.createElement('div')
svgClone.setAttribute('style', 'transform: rotate(' + (rects.rotation * -1) + 'deg); transform-origin: top left;')
svgContainer.append(svgClone)
this.viewer.addOverlay({
element: svgClone,
element: svgContainer,
location: loc
})
const writingZonesOnCurrentPage = this.$store.getters.writingZonesOnCurrentPage
Expand Down

0 comments on commit 3b5193e

Please sign in to comment.