diff --git a/example/index.html b/example/index.html index 049aebe05d829113e7de6e200e93c62954d817f4..53db67a8ed1d6f2b1db997237c4725a3af3cbc3c 100644 --- a/example/index.html +++ b/example/index.html @@ -1,4 +1,4 @@ -<!DOCTYPE html> +<!doctype html> <html lang="en"> <head> <meta charset="UTF-8" /> diff --git a/example/src/Example5Colors.vue b/example/src/Example5Colors.vue index 47c2d4ec9345724a0c0a4e2778cf4dbd66a6d551..f3224df18eb07927c6bf429cdfb4ec1f7676ec7d 100644 --- a/example/src/Example5Colors.vue +++ b/example/src/Example5Colors.vue @@ -91,7 +91,7 @@ export default { // Moved to gridA this.findAndRemove( item.originGridId === "gridB" ? this.placedB : this.placedC, - item.key + item.key, ); this.placedA.push(item.key); break; @@ -99,7 +99,7 @@ export default { // Moved to gridB this.findAndRemove( item.originGridId === "gridA" ? this.placedA : this.placedC, - item.key + item.key, ); this.placedB.push(item.key); break; @@ -107,7 +107,7 @@ export default { // Moved to gridC this.findAndRemove( item.originGridId === "gridB" ? this.placedB : this.placedA, - item.key + item.key, ); this.placedC.push(item.key); break; diff --git a/src/DragGrid.vue b/src/DragGrid.vue index 08db555b149b17278ab9a9d6e1f066c771916539..1572374d6b64265cfe91c8ef0b489833d905ce61 100644 --- a/src/DragGrid.vue +++ b/src/DragGrid.vue @@ -179,7 +179,7 @@ export default { let element = JSON.parse(data); let coords = this.getCoords( event.dragEvent.client.x - element.mouseX, - event.dragEvent.client.y - element.mouseY + event.dragEvent.client.y - element.mouseY, ); if (element.context !== this.context || this.noHighlight) { @@ -225,7 +225,7 @@ export default { let coords = this.getCoords( event.dragEvent.client.x - element.mouseX, - event.dragEvent.client.y - element.mouseY + event.dragEvent.client.y - element.mouseY, ); let newPositionValid = true; @@ -264,7 +264,7 @@ export default { if (e.code === DOMException.DATA_CLONE_ERR) { // We use functions for properties → we can't clone; only emit `item-changed` event console.debug( - "Grid couldn't be cloned, please listen to the `item-changed` event and handle changes yourself." + "Grid couldn't be cloned, please listen to the `item-changed` event and handle changes yourself.", ); } else { throw e; @@ -286,12 +286,12 @@ export default { x: this.clamp( 1, Math.ceil((x - rect.x) / (rect.width / this.cols)), - this.cols + this.cols, ), y: this.clamp( 1, Math.ceil((y - rect.y) / (rect.height / this.rows)), - this.rows + this.rows, ), }; }, @@ -326,7 +326,7 @@ export default { if (this.value.some((item) => item.w > 1)) { console.warn( "You are using multipleItemsY but some items have a width greater than 1.", - "This is not supported and will lead to unexpected behaviour." + "This is not supported and will lead to unexpected behaviour.", ); }