export function toMatrix ( transform1 ) { const el = document . createElement ( 'div' ) ; el . style . transform = transform1 ; document . body . appendChild ( el ) ; const result = el . style . transform ; document . body . removeChild ( el ) ; return result ; } export function dump ( obj ) { console . log ( JSON . stringify ( obj , ( _ , v ) => { if ( v === undefined ) { return null ; } if ( typeof v === 'function' ) { return v . name + '()' ; } return v ; } , 4 ) ) ; }