From 605fa54890ae49158cca45f136709c3746e294e4 Mon Sep 17 00:00:00 2001 From: volterra79 Date: Wed, 20 Sep 2023 14:56:36 +0200 Subject: [PATCH] **Backport:** #55 - Snap on layer after stop and start editing --- .env | 1 - components/ToolsOfTool.vue | 28 +++-- components/ToolsOfToolSnap.vue | 219 +++++++++++++++++++++++---------- toolboxes/toolsfactory.js | 14 +-- workflows/editingworkflow.js | 93 +++++++------- 5 files changed, 226 insertions(+), 129 deletions(-) delete mode 100644 .env diff --git a/.env b/.env deleted file mode 100644 index 1166e113..00000000 --- a/.env +++ /dev/null @@ -1 +0,0 @@ -G3WCLIENT_LIBRARIES='/home/volterra79/PROGETTI/g3w-client/dist/client/js' diff --git a/components/ToolsOfTool.vue b/components/ToolsOfTool.vue index dcc222d9..3f89ff9a 100644 --- a/components/ToolsOfTool.vue +++ b/components/ToolsOfTool.vue @@ -3,13 +3,10 @@ @@ -19,14 +16,29 @@ import MeasureComponent from './ToolsOfToolMeasure.vue'; export default { + name: 'Toolsoftool', + props: ['tools'], + components: { - snap: SnapComponent, + snap: SnapComponent, measure: MeasureComponent }, + data: function() { return {} - } + }, + }; + + diff --git a/components/ToolsOfToolSnap.vue b/components/ToolsOfToolSnap.vue index afba7f8c..76a22e7a 100644 --- a/components/ToolsOfToolSnap.vue +++ b/components/ToolsOfToolSnap.vue @@ -3,144 +3,229 @@