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,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
|
||||
)
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue