mirror of
https://github.com/palxiao/poster-design.git
synced 2025-07-15 16:02:19 +08:00
fix: wGroup rotation error
This commit is contained in:
parent
af25d7ef0c
commit
e07a5cefe1
@ -3,7 +3,7 @@
|
|||||||
* @Date: 2021-08-02 09:41:41
|
* @Date: 2021-08-02 09:41:41
|
||||||
* @Description:
|
* @Description:
|
||||||
* @LastEditors: ShawnPhang <https://m.palxp.cn>
|
* @LastEditors: ShawnPhang <https://m.palxp.cn>
|
||||||
* @LastEditTime: 2024-08-12 09:25:33
|
* @LastEditTime: 2024-11-12 13:47:21
|
||||||
-->
|
-->
|
||||||
<template>
|
<template>
|
||||||
<div
|
<div
|
||||||
@ -85,7 +85,9 @@ onMounted(async () => {
|
|||||||
document.addEventListener('mousedown', touchstart, false)
|
document.addEventListener('mousedown', touchstart, false)
|
||||||
document.addEventListener('mouseup', touchend, false)
|
document.addEventListener('mouseup', touchend, false)
|
||||||
if (props.params?.rotate && widget.value) {
|
if (props.params?.rotate && widget.value) {
|
||||||
(widget.value.style.transform += `rotate(${props.params.rotate})`)
|
// TODO: 设置原点是为了暂时解决组合旋转后缩放保存数据错位问题
|
||||||
|
widget.value.style.transformOrigin = 'left top'
|
||||||
|
widget.value.style.transform += `rotate(${props.params.rotate})`
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user