All files / src/components/navigation/measurement MeasurementInfoPolygon.vue

100% Statements 11/11
100% Branches 0/0
100% Functions 10/10
100% Lines 11/11

Press n or j to go to the next uncovered block, b, p or k for the previous block.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78                      11x     15x               11x     15x               11x     15x               11x     15x               11x     15x                                 11x    
<template>
  <v-row
    class="flex-column flex-nowrap"
    :class="{ isModal }"
    no-gutters
  >
    <v-row
      class="pa-1 pt-3 pb-3 pl-4"
      no-gutters
    >
      <v-col class="text-xs-semibold">
        <span>{{ t('labels.area') }}</span>
      </v-col>
      <v-col class="text-mono text-right text-xs-regular pr-4">
        <span>{{ measurement.Area }}</span>
      </v-col>
    </v-row>
    <v-row
      class="pa-1 pl-4 pb-3 pt-0"
      no-gutters
    >
      <v-col class="text-xs-semibold">
        <span>{{ t('labels.perimeter') }}</span>
      </v-col>
      <v-col class="text-mono text-right text-xs-regular pr-4">
        <span>{{ measurement.Perimeter }}</span>
      </v-col>
    </v-row>
    <v-row
      class="px-1 pb-1 pb-3 pl-4 pt-0"
      no-gutters
    >
      <v-col class="text-xs-semibold">
        <span>{{ t('labels.averageHu') }}</span>
      </v-col>
      <v-col class="text-mono text-right text-xs-regular pr-4">
        <span>{{ measurement.AverageHU }}</span>
      </v-col>
    </v-row>
    <v-row
      class="px-1 pt-0 pb-3 pl-4"
      no-gutters
    >
      <v-col class="text-xs-semibold">
        <span>{{ t('labels.lowestHu') }}</span>
      </v-col>
      <v-col class="text-mono text-right text-xs-regular pr-4">
        <span>{{ measurement.LowestHU }}</span>
      </v-col>
    </v-row>
    <v-row
      class="px-1 pb-5 pt-0 pl-4"
      no-gutters
    >
      <v-col class="text-xs-semibold">
        <span>{{ t('labels.highestHu') }}</span>
      </v-col>
      <v-col class="text-mono text-right text-xs-regular pr-4">
        <span>{{ measurement.HighestHU }}</span>
      </v-col>
    </v-row>
  </v-row>
</template>
 
<script setup lang="ts">
import { useI18n } from 'vue-i18n';
import { DataOverlayPolygon } from '@3cr/viewer-types-ts';
 
interface Props {
  measurement: DataOverlayPolygon;
  isModal: boolean;
}
 
defineProps<Props>();
 
const { t } = useI18n();
</script>