From 3ee9ae83ca81a091fa2ecae4c9fe09375c12e468 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Ml=C3=A1dek?= Date: Mon, 11 Jan 2021 22:47:36 +0100 Subject: [PATCH] improve devpanel (cursor position, styling) --- app/src/components/SVGContent.vue | 33 ++++++++++++++++++++++++++++--- 1 file changed, 30 insertions(+), 3 deletions(-) diff --git a/app/src/components/SVGContent.vue b/app/src/components/SVGContent.vue index 51e4ed3..ae48b7a 100644 --- a/app/src/components/SVGContent.vue +++ b/app/src/components/SVGContent.vue @@ -8,10 +8,15 @@
- Current position: {{ Math.round(bbox.x) }}x{{ Math.round(bbox.y) }} + Current viewport position: + {{ Math.round(bbox.x) }}x{{ Math.round(bbox.y) }}
- Zoom level: {{ (Math.round(bbox.z * 1000) / 1000) }} + Current cursor position: + {{ Math.round(mousePosition.x) }}x{{ Math.round(mousePosition.y) }} +
+
+ Zoom level:{{ (Math.round(bbox.z * 1000) / 1000) }}