From 12416b80790fdaaee9adf3ae32312a1d008e5f6a Mon Sep 17 00:00:00 2001 From: Charles Hacskaylo Date: Tue, 11 May 2021 12:07:44 -0700 Subject: [PATCH] Dynamic sizing for compass rose based on image size (#3826) * Dynamic sizing for compass rose based on image size - Compass rose now sizes and positions proportionally to the containing image, with min and max sizes; - Refactored computed `compassDimensionsStyle` as `sizedImageDimensions` for reusability; - Tweaked sizing of compass ordinals text and North arrow for better legibility; - Minor tweaks to element positioning and opacity for better legibility; - TODO: add unit tests; * Fix linting and code style - Fixed lint errors; - Better variable names; * Address comments from PR #3826 review: - Renamed `compassRoseSizing` to `compassRoseSizingClasses` and fixed function logic; - Fixed line breaks for code style; --- .../imagery/components/Compass/Compass.vue | 36 +- .../components/Compass/CompassRose.vue | 263 +++++++------ .../imagery/components/Compass/compass.scss | 353 ++++++++++-------- 3 files changed, 363 insertions(+), 289 deletions(-) diff --git a/src/plugins/imagery/components/Compass/Compass.vue b/src/plugins/imagery/components/Compass/Compass.vue index c9527c9a3c..51f1720530 100644 --- a/src/plugins/imagery/components/Compass/Compass.vue +++ b/src/plugins/imagery/components/Compass/Compass.vue @@ -23,7 +23,7 @@