From 06bd465e99c6a15a5c5dd76c081f20c550573a24 Mon Sep 17 00:00:00 2001 From: Dennis Sen Date: Tue, 18 Feb 2025 07:14:48 +0100 Subject: [PATCH 01/15] add lasso draft --- packages/clients/diplan/example/config.js | 6 + packages/clients/diplan/example/index.html | 1 + .../clients/diplan/example/prod-example.html | 1 + packages/clients/diplan/example/setup.js | 3 + packages/clients/diplan/src/polar-client.ts | 5 +- packages/plugins/Draw/README.md | 15 ++- packages/plugins/Draw/package.json | 2 + packages/plugins/Draw/src/locales.ts | 8 ++ packages/plugins/Draw/src/store/actions.ts | 2 + .../createLassoInteractions.ts | 104 ++++++++++++++++++ .../src/store/createInteractions/index.ts | 2 + packages/plugins/Draw/src/types.ts | 2 +- packages/types/custom/CHANGELOG.md | 1 + packages/types/custom/core.ts | 7 ++ 14 files changed, 155 insertions(+), 4 deletions(-) create mode 100644 packages/plugins/Draw/src/store/createInteractions/createLassoInteractions.ts diff --git a/packages/clients/diplan/example/config.js b/packages/clients/diplan/example/config.js index 14784fe7c..8a3356841 100644 --- a/packages/clients/diplan/example/config.js +++ b/packages/clients/diplan/example/config.js @@ -98,6 +98,11 @@ export default { }, draw: { enableOptions: true, + lassos: [ + { + id: flurstuecke, + }, + ], measureOptions: { metres: true, kilometres: true, @@ -111,6 +116,7 @@ export default { family: 'Arial', }, }, + toastAction: 'plugin/toast/addToast', style: { fill: { color: 'rgb(51 117 212 / 50%)' }, stroke: { diff --git a/packages/clients/diplan/example/index.html b/packages/clients/diplan/example/index.html index 8c6202313..64e2a85f4 100644 --- a/packages/clients/diplan/example/index.html +++ b/packages/clients/diplan/example/index.html @@ -22,6 +22,7 @@

Steuerung von außen

+