Transforming rotated items
This commit is contained in:
parent
1ece606db0
commit
da8f812090
5 changed files with 91 additions and 14 deletions
|
@ -22,6 +22,8 @@ export default function translateCommand(
|
|||
initialBounds,
|
||||
currentPageId,
|
||||
selectedIds,
|
||||
isSingle,
|
||||
boundsRotation,
|
||||
} = after
|
||||
|
||||
const { shapes } = data.document.pages[currentPageId]
|
||||
|
@ -35,8 +37,10 @@ export default function translateCommand(
|
|||
initialShape,
|
||||
initialShapeBounds,
|
||||
initialBounds,
|
||||
boundsRotation,
|
||||
isFlippedX: false,
|
||||
isFlippedY: false,
|
||||
isSingle,
|
||||
anchor,
|
||||
})
|
||||
})
|
||||
|
@ -48,6 +52,8 @@ export default function translateCommand(
|
|||
initialBounds,
|
||||
currentPageId,
|
||||
selectedIds,
|
||||
isSingle,
|
||||
boundsRotation,
|
||||
} = before
|
||||
|
||||
const { shapes } = data.document.pages[currentPageId]
|
||||
|
@ -61,8 +67,10 @@ export default function translateCommand(
|
|||
initialShape,
|
||||
initialShapeBounds,
|
||||
initialBounds,
|
||||
boundsRotation,
|
||||
isFlippedX: false,
|
||||
isFlippedY: false,
|
||||
isSingle,
|
||||
anchor: type,
|
||||
})
|
||||
})
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue