Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nasa/openmct.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'src/plugins/imagery/components/Compass/CompassRose.vue')
-rw-r--r--src/plugins/imagery/components/Compass/CompassRose.vue258
1 files changed, 144 insertions, 114 deletions
diff --git a/src/plugins/imagery/components/Compass/CompassRose.vue b/src/plugins/imagery/components/Compass/CompassRose.vue
index 3f61d6cf5..d66e382a4 100644
--- a/src/plugins/imagery/components/Compass/CompassRose.vue
+++ b/src/plugins/imagery/components/Compass/CompassRose.vue
@@ -1,5 +1,5 @@
/*****************************************************************************
- * Open MCT, Copyright (c) 2014-2021, United States Government
+ * Open MCT, Copyright (c) 2014-2022, United States Government
* as represented by the Administrator of the National Aeronautics and Space
* Administration. All rights reserved.
*
@@ -21,124 +21,144 @@
*****************************************************************************/
<template>
-<div ref="compassRoseWrapper"
- class="w-direction-rose"
- :class="compassRoseSizingClasses"
- @click="toggleLockCompass"
+<div
+ ref="compassRoseWrapper"
+ class="w-direction-rose"
+ :class="compassRoseSizingClasses"
+ @click="toggleLockCompass"
>
- <svg ref="compassRoseSvg"
- class="c-compass-rose-svg"
- viewBox="0 0 100 100"
+ <svg
+ ref="compassRoseSvg"
+ class="c-compass-rose-svg"
+ viewBox="0 0 100 100"
>
- <mask id="mask0"
- mask-type="alpha"
- maskUnits="userSpaceOnUse"
- x="0"
- y="0"
- width="100"
- height="100"
+ <mask
+ id="mask0"
+ mask-type="alpha"
+ maskUnits="userSpaceOnUse"
+ x="0"
+ y="0"
+ width="100"
+ height="100"
>
- <circle cx="50"
- cy="50"
- r="50"
- fill="black"
+ <circle
+ cx="50"
+ cy="50"
+ r="50"
+ fill="black"
/>
</mask>
<g class="c-cr__compass-wrapper">
- <g class="c-cr__compass-main"
- mask="url(#mask0)"
+ <g
+ class="c-cr__compass-main"
+ mask="url(#mask0)"
>
<!-- Background and clipped elements -->
- <rect class="c-cr__bg"
- width="100"
- height="100"
- fill="black"
+ <rect
+ class="c-cr__bg"
+ width="100"
+ height="100"
+ fill="black"
/>
- <rect class="c-cr__edge"
- width="100"
- height="100"
- fill="url(#paint0_radial)"
+ <rect
+ class="c-cr__edge"
+ width="100"
+ height="100"
+ fill="url(#paint0_radial)"
/>
- <rect v-if="hasSunHeading"
- class="c-cr__sun"
- width="100"
- height="100"
- fill="url(#paint1_radial)"
- :style="sunHeadingStyle"
+ <rect
+ v-if="hasSunHeading"
+ class="c-cr__sun"
+ width="100"
+ height="100"
+ fill="url(#paint1_radial)"
+ :style="sunHeadingStyle"
/>
<!-- Camera FOV -->
- <mask id="mask2"
- class="c-cr__cam-fov-l-mask"
- mask-type="alpha"
- maskUnits="userSpaceOnUse"
- x="0"
- y="0"
- width="50"
- height="100"
+ <mask
+ id="mask2"
+ class="c-cr__cam-fov-l-mask"
+ mask-type="alpha"
+ maskUnits="userSpaceOnUse"
+ x="0"
+ y="0"
+ width="50"
+ height="100"
>
- <rect width="51"
- height="100"
+ <rect
+ width="51"
+ height="100"
/>
</mask>
- <mask id="mask1"
- class="c-cr__cam-fov-r-mask"
- mask-type="alpha"
- maskUnits="userSpaceOnUse"
- x="50"
- y="0"
- width="50"
- height="100"
+ <mask
+ id="mask1"
+ class="c-cr__cam-fov-r-mask"
+ mask-type="alpha"
+ maskUnits="userSpaceOnUse"
+ x="50"
+ y="0"
+ width="50"
+ height="100"
>
- <rect x="49"
- width="51"
- height="100"
+ <rect
+ x="49"
+ width="51"
+ height="100"
/>
</mask>
- <g class="c-cr__cam-fov"
- :style="cameraPanStyle"
+ <g
+ class="c-cr__cam-fov"
+ :style="cameraPanStyle"
>
<g mask="url(#mask2)">
- <rect class="c-cr__cam-fov-r"
- x="49"
- width="51"
- height="100"
- :style="cameraFOVStyleRightHalf"
+ <rect
+ class="c-cr__cam-fov-r"
+ x="49"
+ width="51"
+ height="100"
+ :style="cameraFOVStyleRightHalf"
/>
</g>
<g mask="url(#mask1)">
- <rect class="c-cr__cam-fov-l"
- width="51"
- height="100"
- :style="cameraFOVStyleLeftHalf"
+ <rect
+ class="c-cr__cam-fov-l"
+ width="51"
+ height="100"
+ :style="cameraFOVStyleLeftHalf"
/>
</g>
</g>
</g>
<!-- Spacecraft body -->
- <path v-if="hasHeading"
- class="c-cr__spacecraft-body"
- fill-rule="evenodd"
- clip-rule="evenodd"
- d="M37 49C35.3431 49 34 50.3431 34 52V82C34 83.6569 35.3431 85 37 85H63C64.6569 85 66 83.6569 66 82V52C66 50.3431 64.6569 49 63 49H37ZM50 52L58 60H55V67H45V60H42L50 52Z"
- :style="headingStyle"
+ <path
+ v-if="hasHeading"
+ class="c-cr__spacecraft-body"
+ fill-rule="evenodd"
+ clip-rule="evenodd"
+ d="M37 49C35.3431 49 34 50.3431 34 52V82C34 83.6569 35.3431 85 37 85H63C64.6569 85 66 83.6569 66 82V52C66 50.3431 64.6569 49 63 49H37ZM50 52L58 60H55V67H45V60H42L50 52Z"
+ :style="headingStyle"
/>
<!-- NSEW and ticks -->
- <g class="c-cr__nsew"
- :style="compassRoseStyle"
+ <g
+ class="c-cr__nsew"
+ :style="compassRoseStyle"
>
<g class="c-cr__ticks-major">
<path d="M50 3L43 10H57L50 3Z" />
- <path d="M4 51V49H10V51H4Z"
- class="--hide-min"
+ <path
+ d="M4 51V49H10V51H4Z"
+ class="--hide-min"
/>
- <path d="M49 96V90H51V96H49Z"
- class="--hide-min"
+ <path
+ d="M49 96V90H51V96H49Z"
+ class="--hide-min"
/>
- <path d="M90 49V51H96V49H90Z"
- class="--hide-min"
+ <path
+ d="M90 49V51H96V49H90Z"
+ class="--hide-min"
/>
</g>
<g class="c-cr__ticks-minor --hide-small">
@@ -148,53 +168,63 @@
<path d="M51 10L49 10V4L51 4V10Z" />
</g>
<g class="c-cr__nsew-text">
- <path :style="cardinalTextRotateW"
- class="c-cr__nsew-w --hide-small"
- d="M56.7418 45.004H54.1378L52.7238 52.312H52.6958L51.2258 45.004H48.7758L47.3058 52.312H47.2778L45.8638 45.004H43.2598L45.9618 55H48.6078L49.9798 48.112H50.0078L51.3798 55H53.9838L56.7418 45.004Z"
+ <path
+ :style="cardinalTextRotateW"
+ class="c-cr__nsew-w --hide-small"
+ d="M56.7418 45.004H54.1378L52.7238 52.312H52.6958L51.2258 45.004H48.7758L47.3058 52.312H47.2778L45.8638 45.004H43.2598L45.9618 55H48.6078L49.9798 48.112H50.0078L51.3798 55H53.9838L56.7418 45.004Z"
/>
- <path :style="cardinalTextRotateE"
- class="c-cr__nsew-e --hide-small"
- d="M46.104 55H54.21V52.76H48.708V50.856H53.608V48.84H48.708V47.09H54.07V45.004H46.104V55Z"
+ <path
+ :style="cardinalTextRotateE"
+ class="c-cr__nsew-e --hide-small"
+ d="M46.104 55H54.21V52.76H48.708V50.856H53.608V48.84H48.708V47.09H54.07V45.004H46.104V55Z"
/>
- <path :style="cardinalTextRotateS"
- class="c-cr__nsew-s --hide-small"
- d="M45.6531 51.64C45.6671 54.202 47.6971 55.21 49.9931 55.21C52.1911 55.21 54.3471 54.398 54.3471 51.864C54.3471 50.058 52.8911 49.386 51.4491 48.98C49.9931 48.574 48.5511 48.434 48.5511 47.664C48.5511 47.006 49.2511 46.81 49.8111 46.81C50.6091 46.81 51.4631 47.104 51.4211 48.014H54.0251C54.0111 45.76 52.0091 44.794 50.0211 44.794C48.1451 44.794 45.9471 45.648 45.9471 47.832C45.9471 49.666 47.4451 50.31 48.8731 50.716C50.3151 51.122 51.7431 51.29 51.7431 52.172C51.7431 52.914 50.9311 53.194 50.1471 53.194C49.0411 53.194 48.3131 52.816 48.2571 51.64H45.6531Z"
+ <path
+ :style="cardinalTextRotateS"
+ class="c-cr__nsew-s --hide-small"
+ d="M45.6531 51.64C45.6671 54.202 47.6971 55.21 49.9931 55.21C52.1911 55.21 54.3471 54.398 54.3471 51.864C54.3471 50.058 52.8911 49.386 51.4491 48.98C49.9931 48.574 48.5511 48.434 48.5511 47.664C48.5511 47.006 49.2511 46.81 49.8111 46.81C50.6091 46.81 51.4631 47.104 51.4211 48.014H54.0251C54.0111 45.76 52.0091 44.794 50.0211 44.794C48.1451 44.794 45.9471 45.648 45.9471 47.832C45.9471 49.666 47.4451 50.31 48.8731 50.716C50.3151 51.122 51.7431 51.29 51.7431 52.172C51.7431 52.914 50.9311 53.194 50.1471 53.194C49.0411 53.194 48.3131 52.816 48.2571 51.64H45.6531Z"
/>
- <path :style="cardinalTextRotateN"
- class="c-cr__nsew-n"
- d="M42.5935 60H46.7935V49.32H46.8415L52.7935 60H57.3775V42.864H53.1775V53.424H53.1295L47.1775 42.864H42.5935V60Z"
+ <path
+ :style="cardinalTextRotateN"
+ class="c-cr__nsew-n"
+ d="M42.5935 60H46.7935V49.32H46.8415L52.7935 60H57.3775V42.864H53.1775V53.424H53.1295L47.1775 42.864H42.5935V60Z"
/>
</g>
</g>
</g>
<defs>
- <radialGradient id="paint0_radial"
- cx="0"
- cy="0"
- r="1"
- gradientUnits="userSpaceOnUse"
- gradientTransform="translate(50 50) rotate(90) scale(50)"
+ <radialGradient
+ id="paint0_radial"
+ cx="0"
+ cy="0"
+ r="1"
+ gradientUnits="userSpaceOnUse"
+ gradientTransform="translate(50 50) rotate(90) scale(50)"
>
- <stop offset="0.751387"
- stop-opacity="0"
+ <stop
+ offset="0.751387"
+ stop-opacity="0"
/>
- <stop offset="1"
- stop-color="white"
+ <stop
+ offset="1"
+ stop-color="white"
/>
</radialGradient>
- <radialGradient id="paint1_radial"
- cx="0"
- cy="0"
- r="1"
- gradientUnits="userSpaceOnUse"
- gradientTransform="translate(50 -7) rotate(-90) scale(18.5)"
+ <radialGradient
+ id="paint1_radial"
+ cx="0"
+ cy="0"
+ r="1"
+ gradientUnits="userSpaceOnUse"
+ gradientTransform="translate(50 -7) rotate(-90) scale(18.5)"
>
- <stop offset="0.716377"
- stop-color="#FFCC00"
+ <stop
+ offset="0.716377"
+ stop-color="#FFCC00"
/>
- <stop offset="1"
- stop-color="#FF9900"
- stop-opacity="0"
+ <stop
+ offset="1"
+ stop-color="#FF9900"
+ stop-opacity="0"
/>
</radialGradient>
</defs>