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
|
||||
if (matches[1] === undefined && matches[2] === undefined) {
|
||||
block.fg = 1;
|
||||
block.bg = 0;
|
||||
block.fg = null;
|
||||
block.bg = null;
|
||||
continue;
|
||||
}
|
||||
|
||||
|
|
|
@ -9,7 +9,8 @@ import {
|
|||
createNewAscii,
|
||||
exportMirc,
|
||||
mergeLayers,
|
||||
cyrb53
|
||||
cyrb53,
|
||||
toolbarIcons
|
||||
} from '../../src/ascii'
|
||||
import 'jest-canvas-mock';
|
||||
import hotkeysImport from 'hotkeys-js';
|
||||
|
@ -42,8 +43,6 @@ describe('Editor.vue', () => {
|
|||
}
|
||||
})
|
||||
|
||||
|
||||
|
||||
})
|
||||
|
||||
it('create new ascii data is as expected', () => {
|
||||
|
@ -115,11 +114,20 @@ describe('Editor.vue', () => {
|
|||
// store,
|
||||
// localVue,
|
||||
// hotkeys,
|
||||
// toolbarIcons
|
||||
// })
|
||||
|
||||
// // Black canvas fill
|
||||
// let mircExportHash = cyrb53(exportMirc(mergeLayers()).output.join(""));
|
||||
// expect(mircExportHash).toEqual(182731023251036);
|
||||
// wrapper.vm.x = 0;
|
||||
// wrapper.vm.y = 0;
|
||||
|
||||
// // 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