1.1.2 • Published 3 years ago

vue-speed-meter v1.1.2

Weekly downloads
30
License
MIT License
Repository
github
Last release
3 years ago

vue-speed-meter

Vue component to display round gauges such as speedometer, thermometer, barometer or tachometer.

default

Docs&Demo

https://anastat.github.io/vue-speed-meter/

Install

npm i vue-speed-meter

Add to project

Global

// main.js
import VueSpeedMeter from "vue-speed-meter";
Vue.component('vue-speed-meter', VueSpeedMeter);

Local Usage

<template>
  <div>
    <VueSpeedMeter
      :customStyle="customStyle"
      :customCurrentValue="customCurrentValue"
    />
  </div>
</template>

<script>
import VueSpeedMeter from "vue-speed-meter";

export default {
  name: "Component",
  components: {
    VueSpeedMeter,
  },
  data: function() {
    return {
      customStyle: {
        size: 500,
      },
      customCurrentValue: 20,
    };
  },
 }
</script>

Parameters

PropsTypeDefaultDescription
customCurrentValueNumber0Speed meter value.
customStyle:Object
- mainBackgroundColorString"#051226"Background color of speed meter.
- sizeNumber400Width and height of the speed meter in 'px'.
- borderColorString"#041326"Border color of the outer speed meter circle.
- scaleColorString"#B0CBE9"Color of the scale lines.
- scaleValuesFontFamilyString"'Titillium Web', sans-serif"Font family of the scale values.
- scaleValuesColorString"#B0CBE9"Color of the scale values.
- scaleStartValueNumber0Start value of the scale.
- scaleStepNumber20Scale step between long lines. Cannot be 0 or negative value.
- animationTimeNumber1Time of animation in seconds. Time of moving needle from start value to current value.
- needleColorString"#FE3816"Color of the speed meter needle.
- needleCircleColorString"#041326"Color of the small needle circle.
- needleCircleBorderColorString"#62A6F1"Color of the border of small needle circle.
needleAnimationBooleantrueAnimation of needle. Moving from 0 to current value. Can be disabled with 'false'.
shadowFilterBooleantrueShadow of the scale values and needle circle.
1.1.1

3 years ago

1.1.2

3 years ago

1.1.0

3 years ago

1.0.9

3 years ago

1.0.8

3 years ago

1.0.7

4 years ago

1.0.6

4 years ago

1.0.5

4 years ago

1.0.4

4 years ago

1.0.3

4 years ago

1.0.2

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago

0.1.0

4 years ago