From aad2edf5c5f462dfe91652580c4dcb3d508710ab Mon Sep 17 00:00:00 2001 From: Igor Zinken <730069+igorski@users.noreply.github.com> Date: Mon, 3 Mar 2025 17:02:42 +0100 Subject: [PATCH] Add center and reset buttons to drag panel --- .../tool-options-drag/messages.json | 4 +- .../tool-options-drag/tool-options-drag.vue | 64 ++++++++++++++----- 2 files changed, 51 insertions(+), 17 deletions(-) diff --git a/src/components/tool-options-panel/tool-options-drag/messages.json b/src/components/tool-options-panel/tool-options-drag/messages.json index 1dc87ae..e0c714e 100644 --- a/src/components/tool-options-panel/tool-options-drag/messages.json +++ b/src/components/tool-options-panel/tool-options-drag/messages.json @@ -1,6 +1,8 @@ { "en-US": { "layerPosition": "Layer position", - "coordinates": "Coordinates" + "coordinates": "Coordinates", + "reset": "Reset", + "center": "Center" } } diff --git a/src/components/tool-options-panel/tool-options-drag/tool-options-drag.vue b/src/components/tool-options-panel/tool-options-drag/tool-options-drag.vue index 4b2df56..fae1d24 100644 --- a/src/components/tool-options-panel/tool-options-drag/tool-options-drag.vue +++ b/src/components/tool-options-panel/tool-options-drag/tool-options-drag.vue @@ -1,7 +1,7 @@ /** * The MIT License (MIT) * - * Igor Zinken 2022 - https://www.igorski.nl + * Igor Zinken 2022-2025 - https://www.igorski.nl * * Permission is hereby granted, free of charge, to any person obtaining a copy of * this software and associated documentation files (the "Software"), to deal in @@ -46,10 +46,26 @@ :disabled="!activeLayer" /> +
+ + +
-