cleanup
This commit is contained in:
@@ -8,6 +8,14 @@ export const clamp = (value: number, min: number, max: number): number => {
|
||||
return value;
|
||||
};
|
||||
|
||||
export const formatTransform = (
|
||||
x: number,
|
||||
y: number,
|
||||
rotation = 0,
|
||||
scale = 1,
|
||||
): string => `translate3d(${x}px, ${y}px, 0) rotate(${rotation}deg) scale(${scale})`;
|
||||
|
||||
export default {
|
||||
clamp,
|
||||
formatTransform,
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user