transparent block parse fix
This commit is contained in:
parent
571f8b89af
commit
32baf0c98d
|
@ -283,8 +283,8 @@ export const parseMircAscii = async (contents, filename) => {
|
||||||
|
|
||||||
// \x03 without color code is a soft block reset
|
// \x03 without color code is a soft block reset
|
||||||
if (matches[1] === undefined && matches[2] === undefined) {
|
if (matches[1] === undefined && matches[2] === undefined) {
|
||||||
block.fg = 1;
|
block.fg = null;
|
||||||
block.bg = 0;
|
block.bg = null;
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -9,7 +9,8 @@ import {
|
||||||
createNewAscii,
|
createNewAscii,
|
||||||
exportMirc,
|
exportMirc,
|
||||||
mergeLayers,
|
mergeLayers,
|
||||||
cyrb53
|
cyrb53,
|
||||||
|
toolbarIcons
|
||||||
} from '../../src/ascii'
|
} from '../../src/ascii'
|
||||||
import 'jest-canvas-mock';
|
import 'jest-canvas-mock';
|
||||||
import hotkeysImport from 'hotkeys-js';
|
import hotkeysImport from 'hotkeys-js';
|
||||||
|
@ -42,8 +43,6 @@ describe('Editor.vue', () => {
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
})
|
})
|
||||||
|
|
||||||
it('create new ascii data is as expected', () => {
|
it('create new ascii data is as expected', () => {
|
||||||
|
@ -115,11 +114,20 @@ describe('Editor.vue', () => {
|
||||||
// store,
|
// store,
|
||||||
// localVue,
|
// localVue,
|
||||||
// hotkeys,
|
// hotkeys,
|
||||||
|
// toolbarIcons
|
||||||
// })
|
// })
|
||||||
|
|
||||||
// // Black canvas fill
|
// wrapper.vm.x = 0;
|
||||||
// let mircExportHash = cyrb53(exportMirc(mergeLayers()).output.join(""));
|
// wrapper.vm.y = 0;
|
||||||
// expect(mircExportHash).toEqual(182731023251036);
|
|
||||||
|
// // console.log(exportMirc(mergeLayers()).output.join(""));
|
||||||
|
|
||||||
|
// store.commit('changeTool', 'brush');
|
||||||
|
|
||||||
|
// const canvasTools = wrapper.find('#canvastools')
|
||||||
|
// canvasTools.trigger('click');
|
||||||
|
|
||||||
|
// // console.log(exportMirc(mergeLayers()).output.join(""));
|
||||||
// })
|
// })
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue