1
0
Fork 0

fix(plugin-annotations): Fix issue with rotating scalebox

This commit is contained in:
joostdecock 2023-09-16 13:04:22 +02:00
parent 4fb385af9a
commit b8458362b0

View file

@ -162,13 +162,12 @@ const scalebox = function (
mc.rotate = Number(mc.rotate)
for (const pid in box) box[pid] = box[pid].rotate(mc.rotate, mc.at)
for (const pid in text) {
text[pid] = text[pid]
.rotate(mc.rotate, mc.at)
.attr(
'data-text-transform',
`rotate(${mc.rotate * -1}, ${text[pid].x}, ${text[pid].y})`,
true
)
text[pid] = text[pid].rotate(mc.rotate, mc.at)
text[pid].attr(
'data-text-transform',
`rotate(${mc.rotate * -1}, ${text[pid].x}, ${text[pid].y})`,
true
)
}
}