Implement cut tool

yeah that was the easy part but still

- Added hotkeys for copy, paste and cut
- Added _copyPaste.js for copy, cut and paste management
This commit is contained in:
unsettledgames
2020-04-20 16:55:34 +02:00
parent f1fe597b80
commit 944cf1fbed
8 changed files with 69 additions and 9 deletions

View File

@@ -2,15 +2,14 @@
//set the correct cursor for the current tool
Tool.prototype.updateCursor = function () {
console.log('updateCursor()', currentTool)
//console.log('updateCursor()', currentTool)
//switch to that tools cursor
canvasView.style.cursor = this.cursor || 'default';
//if the tool uses a brush preview, make it visible and update the size
if (this.brushPreview) {
console.log('brush size',this.currentBrushSize)
//console.log('brush size',this.currentBrushSize)
brushPreview.style.display = 'block';
brushPreview.style.width = this.currentBrushSize * zoom + 'px';
brushPreview.style.height = this.currentBrushSize * zoom + 'px';