styles fix, initial text select w/ arrow keys fix

这个提交包含在:
Hugh Bord 2021-12-07 13:54:18 +10:00
父节点 fed6f972f2
当前提交 02668842c0
共有 2 个文件被更改,包括 13 次插入19 次删除

查看文件

@ -108,25 +108,14 @@ export default {
break;
case " ":
if (_this.isBrushing) {
_this.canTool = true;
_this.drawBrush();
_this.canTool = false;
_this.$store.commit(
"updateAsciiBlocks",
_this.currentAsciiLayerBlocks
);
}
_this.canTool = true;
_this.isBrushing ? _this.drawBrush() : _this.eraser();
_this.canTool = false;
_this.$store.commit(
"updateAsciiBlocks",
_this.currentAsciiLayerBlocks
);
if (_this.isErasing) {
_this.canTool = true;
_this.eraser();
_this.canTool = false;
_this.$store.commit(
"updateAsciiBlocks",
_this.currentAsciiLayerBlocks
);
}
break;
}
}
@ -370,6 +359,11 @@ export default {
this.resetSelect();
break;
case "text":
this.textEditing.startX = this.x;
this.textEditing.startY = this.y;
break;
}
},
isMouseOnCanvas() {

查看文件

@ -1,5 +1,5 @@
module.exports = {
purge: ["./index.html", "./src/**/*.{vue,js,ts,jsx,tsx}"],
purge: ["./index.html", "./src/**/*.{vue,js,ts,jsx,tsx}", "./src/style.css"],
darkMode: false,
theme: {
extend: {},