fix(plugin-annotations): Fix issue with rotating scalebox
This commit is contained in:
parent
4fb385af9a
commit
b8458362b0
1 changed files with 6 additions and 7 deletions
|
@ -162,9 +162,8 @@ const scalebox = function (
|
||||||
mc.rotate = Number(mc.rotate)
|
mc.rotate = Number(mc.rotate)
|
||||||
for (const pid in box) box[pid] = box[pid].rotate(mc.rotate, mc.at)
|
for (const pid in box) box[pid] = box[pid].rotate(mc.rotate, mc.at)
|
||||||
for (const pid in text) {
|
for (const pid in text) {
|
||||||
text[pid] = text[pid]
|
text[pid] = text[pid].rotate(mc.rotate, mc.at)
|
||||||
.rotate(mc.rotate, mc.at)
|
text[pid].attr(
|
||||||
.attr(
|
|
||||||
'data-text-transform',
|
'data-text-transform',
|
||||||
`rotate(${mc.rotate * -1}, ${text[pid].x}, ${text[pid].y})`,
|
`rotate(${mc.rotate * -1}, ${text[pid].x}, ${text[pid].y})`,
|
||||||
true
|
true
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue