styles fix, initial text select w/ arrow keys fix
这个提交包含在:
父节点
fed6f972f2
当前提交
02668842c0
|
@ -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: {},
|
||||
|
|
正在加载...
在新工单中引用