import uint82260x1130 from './2260x1130.json' ; import uint8first2pngs from './first2pngs.json' ; function convert2ArrayBuf ( data ) { const arrayBuf = [ ] ; const array = data ; array . forEach ( obj => { let uint8array = new Uint8Array ( Object . keys ( obj ) . map ( key => obj [ key ] ) ) ; arrayBuf . push ( uint8array . buffer ) ; } ) ; return arrayBuf ; } export const arrayBuf2260x1130 = convert2ArrayBuf ( uint82260x1130 ) ; export const arrayBufFirst2Pngs = convert2ArrayBuf ( uint8first2pngs ) ;