(x: number, y: number)
| 112 | * @param y Desired position of the element along the Y axis. |
| 113 | */ |
| 114 | export function getTransform(x: number, y: number): string { |
| 115 | // Round the transforms since some browsers will |
| 116 | // blur the elements for sub-pixel transforms. |
| 117 | return `translate3d(${Math.round(x)}px, ${Math.round(y)}px, 0)`; |
| 118 | } |
no outgoing calls
no test coverage detected