Omnibus's picture
Upload 131 files
4ee4376
raw
history blame contribute delete
340 Bytes
import { resize } from './common';
export default (data, map) => {
let view = new Uint8Array(data);
let xcrm = [];
view.forEach((bits, i) => {
xcrm[i] = bits;
});
// resize data array from 64x64 to 128x128
xcrm = resize(xcrm, 64, 128);
xcrm.forEach((data, i) => {
map.cells[i]._segmentData.XCRM = xcrm[i];
});
};