From 9b6eb7b6676faac01b5a98e0768cf4f07fbb9572 Mon Sep 17 00:00:00 2001 From: Andrew Lalis Date: Sat, 4 Jun 2022 12:28:01 +0200 Subject: [PATCH] Cleaned up map rendering code into modules. --- quasar-app/src/components/rs/MapView.vue | 16 +- .../component_views/SwitchComponentView.vue | 2 - quasar-app/src/{render => map}/canvasUtils.js | 14 + quasar-app/src/map/drawing.js | 253 ++++++++++++++++++ quasar-app/src/map/mapCamera.js | 115 ++++++++ quasar-app/src/map/mapEventListener.js | 133 +++++++++ quasar-app/src/map/mapRenderer.js | 100 +++++++ quasar-app/src/render/drawing.js | 250 ----------------- quasar-app/src/render/mapRenderer.js | 222 --------------- 9 files changed, 628 insertions(+), 477 deletions(-) rename quasar-app/src/{render => map}/canvasUtils.js (78%) create mode 100644 quasar-app/src/map/drawing.js create mode 100644 quasar-app/src/map/mapCamera.js create mode 100644 quasar-app/src/map/mapEventListener.js create mode 100644 quasar-app/src/map/mapRenderer.js delete mode 100644 quasar-app/src/render/drawing.js delete mode 100644 quasar-app/src/render/mapRenderer.js diff --git a/quasar-app/src/components/rs/MapView.vue b/quasar-app/src/components/rs/MapView.vue index d343e16..9d6cad2 100644 --- a/quasar-app/src/components/rs/MapView.vue +++ b/quasar-app/src/components/rs/MapView.vue @@ -1,7 +1,7 @@