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

LimitLine.vue « chart « plot « plugins « src - github.com/nasa/openmct.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 7fe45be29763aa520abbf6b1fc47158e8cd9a666 (plain)
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
<template>
<div :style="styleObj"
     class="c-plot-limit-line js-limit-line"
     :class="limitClass"
></div>
</template>

<script>
import { getLimitClass } from "./limitUtil";

export default {
    props: {
        point: {
            type: Object,
            required: true,
            default() {
                return {};
            }
        },
        limit: {
            type: Object,
            default() {
                return {};
            }
        }
    },
    computed: {
        styleObj() {
            const top = `${this.point.top}px`;

            return {
                'top': top
            };
        },
        limitClass() {
            return getLimitClass(this.limit, 'c-plot-limit-line--');
        }
    }
};
</script>