1
0
Fork 0

fix(core): Return property names that are consistent with API

This commit is contained in:
Joost De Cock 2023-10-21 13:26:45 +02:00
parent 05fd153237
commit 1e4a064043
3 changed files with 11 additions and 9 deletions

View file

@ -109,7 +109,7 @@ export const MovableStack = ({
const transforms = setTransforms()
// apply the transforms to the bounding box to get the new extents of the stack
const { tl, br } = getTransformedBounds(stack, transforms)
const { topLeft, bottomRight } = getTransformedBounds(stack, transforms)
// update it on the draft component
updateLayout(
@ -122,8 +122,8 @@ export const MovableStack = ({
rotate: liveTransforms.rotation % 360,
flipX: liveTransforms.flipX,
flipY: liveTransforms.flipY,
tl,
br,
tl: topLeft,
br: bottomRight,
},
history
)