( transformText: string, direction: 'x' | 'y' )
| 1 | export default function getTranslate( |
| 2 | transformText: string, |
| 3 | direction: 'x' | 'y' |
| 4 | ) { |
| 5 | const matrix = transformText.split(')')[0].split(', ') |
| 6 | let ret = |
| 7 | direction === 'x' ? +(matrix[12] || matrix[4]) : +(matrix[13] || matrix[5]) |
| 8 | return ret |
| 9 | } |
no outgoing calls
no test coverage detected
searching dependent graphs…