From 277c2ec98bf9b61ea04241cc36ce8f7e10b1eeaa Mon Sep 17 00:00:00 2001 From: Julian Leucker <leuckerj@gmail.com> Date: Mon, 21 Aug 2023 19:12:00 +0200 Subject: [PATCH] Reformat --- example/index.html | 2 +- example/src/Example5Colors.vue | 6 +++--- src/DragGrid.vue | 12 ++++++------ 3 files changed, 10 insertions(+), 10 deletions(-) diff --git a/example/index.html b/example/index.html index 049aebe..53db67a 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 47c2d4e..f3224df 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 08db555..1572374 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.", ); } -- GitLab