typescript
This commit is contained in:
@@ -0,0 +1,8 @@
|
||||
export { clamp } from '../utils/math';
|
||||
|
||||
export const formatTransform = (
|
||||
x: number,
|
||||
y: number,
|
||||
rotation = 0,
|
||||
scale = 1,
|
||||
): string => `translate3d(${x}px, ${y}px, 0) rotate(${rotation}deg) scale(${scale})`;
|
||||
Reference in New Issue
Block a user