export default function createInvertObject ( first , last ) { return { sx : last . width / first . width , sy : last . height / first . height , x : last . left - first . left , y : last . top - first . top , } ; } export function createInvertObjectArray ( first , last ) { return first . map ( ( dimens , idx ) => createInvertObject ( dimens , last [ idx ] ) ) ; }