From 72323ea3f6ced61152a6a8e2c1a6075e39b8f1ca Mon Sep 17 00:00:00 2001 From: Robert Rosman Date: Tue, 14 May 2024 07:19:09 +0200 Subject: [PATCH] Revert "style: change cursor to a crosshair dot" This reverts commit cb85cc65d13477b56a3aa9a22dc5594c7563041e. --- src/components/PaintEditor.vue | 21 +++------------------ src/components/PaintRenderer.vue | 1 - 2 files changed, 3 insertions(+), 19 deletions(-) diff --git a/src/components/PaintEditor.vue b/src/components/PaintEditor.vue index 4d6eed9..93dae99 100644 --- a/src/components/PaintEditor.vue +++ b/src/components/PaintEditor.vue @@ -54,7 +54,7 @@ const { minX, minY, maxX, maxY, top, left, bottom, right, width, height, posStart, posEnd, - isDrawing, isInside + isDrawing } = useDraw({ container, onDrawStart() { @@ -104,26 +104,11 @@ function clear() { emit('clear') } -const crosshairPath = computed(() => { - const offset = Number(settings.value.thickness) - return ` - M${x.value - 8 - offset} ${y.value} L${x.value - 2 - offset} ${y.value} - M${x.value + 8 + offset} ${y.value} L${x.value + 2 + offset} ${y.value} - M${x.value} ${y.value - 8 - offset} L${x.value} ${y.value - 2 - offset} - M${x.value} ${y.value + 8 + offset} L${x.value} ${y.value + 2 + offset} - ` -}) -