1
0
Fork 0

fix(core): Left-over use of tl and br

This commit is contained in:
joostdecock 2023-10-21 17:45:35 +02:00
parent bce6224167
commit e7292ee2e4
2 changed files with 10 additions and 7 deletions

View file

@ -904,7 +904,7 @@ export function applyTransformToPoint(transform, point) {
* Get the bounds of a given object after transforms have been applied
* @param {Object} boundsObj any object with `topLeft` and `bottomRight` properties
* @param {Boolean|String[]} transforms the transforms to apply to the bounds, structured as they would be for being applied as an svg attribute
* @return {Object} `tl` and `br` for the transformed bounds
* @return {Object} `topLeft` and `bottomRight` for the transformed bounds
*/
export function getTransformedBounds(boundsObj, transforms = false) {
if (!boundsObj.topLeft) return {}