Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
scale(scaleX, scaleY)
);
}else{
transformMatrix = transform(
translate(roundTo(x + changedWidth ), roundTo(y + changedHeight )),
rotate(angle * (Math.PI / 180)),
);
width = newWidth;
height = newHeight;
}
return {
element: {
width,
height,
transform: toCSS(transformMatrix),
position: "absolute",
},
controls: {
width: newWidth,
height: newHeight,
transform: toCSS(
transform(
translate(roundTo(x + changedWidth), roundTo(y + changedHeight)),
rotate(angle * (Math.PI / 180)),
)
),
position: "absolute",
}
}
}
);
width = newWidth;
height = newHeight;
}
return {
element: {
width,
height,
transform: toCSS(transformMatrix),
position: "absolute",
},
controls: {
width: newWidth,
height: newHeight,
transform: toCSS(
transform(
translate(roundTo(x + changedWidth), roundTo(y + changedHeight)),
rotate(angle * (Math.PI / 180)),
)
),
position: "absolute",
}
}
}