From 9f06dcab766d90d087f253e52b1333a6d494f390 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=B6ren=20Johanson?= Date: Thu, 5 Sep 2024 07:13:17 +0200 Subject: [PATCH] Add back zoom buttons and shortcuts (#437) --- .../services/shortcuts/shortcuts.service.ts | 14 +++++++ .../floating-buttons.component.html | 37 ++++++++++--------- 2 files changed, 34 insertions(+), 17 deletions(-) diff --git a/teammapper-frontend/src/app/core/services/shortcuts/shortcuts.service.ts b/teammapper-frontend/src/app/core/services/shortcuts/shortcuts.service.ts index 0e457d3e..9b6e4a31 100644 --- a/teammapper-frontend/src/app/core/services/shortcuts/shortcuts.service.ts +++ b/teammapper-frontend/src/app/core/services/shortcuts/shortcuts.service.ts @@ -113,6 +113,20 @@ export class ShortcutsService implements OnDestroy { this.mmpService.pasteNode(); }, }, + { + keys: 'ctrl+=', + description: 'TOOLTIPS.ZOOM_IN_MAP', + callback: () => { + this.mmpService.zoomIn(); + }, + }, + { + keys: 'ctrl+-', + description: 'TOOLTIPS.ZOOM_OUT_MAP', + callback: () => { + this.mmpService.zoomOut(); + }, + }, { keys: 'left', description: 'TOOLTIPS.SELECT_NODE_ON_THE_LEFT', diff --git a/teammapper-frontend/src/app/modules/application/components/floating-buttons/floating-buttons.component.html b/teammapper-frontend/src/app/modules/application/components/floating-buttons/floating-buttons.component.html index cc38abff..c2566214 100644 --- a/teammapper-frontend/src/app/modules/application/components/floating-buttons/floating-buttons.component.html +++ b/teammapper-frontend/src/app/modules/application/components/floating-buttons/floating-buttons.component.html @@ -1,32 +1,35 @@
-
-
-
-
+ +
+ +
+ +
+ +
+ \ No newline at end of file