New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

vgauge

Package Overview
Dependencies
Maintainers
1
Versions
33
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

vgauge - npm Package Compare versions

Comparing version 1.0.8 to 1.0.9

8

dist/VGauge.esm.js

@@ -7,5 +7,5 @@ import { Gauge } from 'gaugeJS/dist/gauge.min';

props: {
name:{
required: false,
type: String
height: {
type: String,
default: '200px'
},

@@ -185,3 +185,3 @@ decimalPlace: {

/* template */
var __vue_render__ = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[(_vm.top)?_c('p',{ref:"gauge-value",class:_vm.gaugeValueClass}):_vm._e(),_vm._v(" "),_c('canvas',{ref:"gauge"}),_vm._v(" "),(!_vm.top)?_c('p',{ref:"gauge-value",class:_vm.gaugeValueClass}):_vm._e()])};
var __vue_render__ = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[(_vm.top)?_c('p',{ref:"gauge-value",class:_vm.gaugeValueClass}):_vm._e(),_vm._v(" "),_c('canvas',{ref:"gauge",attrs:{"height":_vm.height}}),_vm._v(" "),(!_vm.top)?_c('p',{ref:"gauge-value",class:_vm.gaugeValueClass}):_vm._e()])};
var __vue_staticRenderFns__ = [];

@@ -188,0 +188,0 @@

@@ -1,1 +0,1 @@

var VGauge=function(e,t){"use strict";function a(e,t,a,n,i,u,o,s,l,r){"boolean"!=typeof o&&(l=s,s=o,o=!1);var d="function"==typeof a?a.options:a;e&&e.render&&(d.render=e.render,d.staticRenderFns=e.staticRenderFns,d._compiled=!0,i&&(d.functional=!0)),n&&(d._scopeId=n);var g;if(u?(g=function(e){(e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),t&&t.call(this,l(e)),e&&e._registeredComponents&&e._registeredComponents.add(u)},d._ssrRegister=g):t&&(g=o?function(){t.call(this,r(this.$root.$options.shadowRoot))}:function(e){t.call(this,s(e))}),g)if(d.functional){var c=d.render;d.render=function(e,t){return g.call(t),c(e,t)}}else{var f=d.beforeCreate;d.beforeCreate=f?[].concat(f,g):[g]}return a}function n(e){n.installed||(n.installed=!0,e.component("VGauge",i))}var i=a({render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",[e.top?a("p",{ref:"gauge-value",class:e.gaugeValueClass}):e._e(),e._v(" "),a("canvas",{ref:"gauge"}),e._v(" "),e.top?e._e():a("p",{ref:"gauge-value",class:e.gaugeValueClass})])},staticRenderFns:[]},void 0,{name:"VGauge",props:{name:{required:!1,type:String},decimalPlace:{type:Number,default:0},gaugeValueClass:{type:String,default:""},top:{type:Boolean,default:!1},maxValue:{type:Number,default:100},minValue:{type:Number,default:0},options:{type:Object,default:function(){return{angle:.15,lineWidth:.44,radiusScale:1,pointer:{length:.6,strokeWidth:.035,color:"#000000"},limitMax:!1,limitMin:!1,colorStart:"#6FADCF",colorStop:"#8FC0DA",strokeColor:"#E0E0E0",generateGradient:!0,highDpiSupport:!0}}},animationSpeed:{type:Number,default:10},initialValue:{type:Number,default:0},value:{type:Number,default:50}},data:function(){return{gauge:null}},mounted:function(){this.initializeGauge()},watch:{value:function(e){this.gauge.set(e)}},methods:{initializeGauge:function(){this.gauge=new t.Gauge(this.$refs.gauge),this.gauge.maxValue=this.maxValue,this.gauge.setMinValue(this.minValue),this.gauge.animationSpeed=this.animationSpeed,this.gauge.setOptions(this.options),this.gauge.setTextField(this.$refs["gauge-value"],this.decimalPlace),this.gauge.set(this.value)}}},void 0,!1,void 0,void 0,void 0),u={install:n},o=null;return"undefined"!=typeof window?o=window.Vue:"undefined"!=typeof global&&(o=global.Vue),o&&o.use(u),i.install=n,e.default=i,e}({},gauge_min);
var VGauge=function(e,t){"use strict";function a(e,t,a,i,n,u,o,s,l,r){"boolean"!=typeof o&&(l=s,s=o,o=!1);var d="function"==typeof a?a.options:a;e&&e.render&&(d.render=e.render,d.staticRenderFns=e.staticRenderFns,d._compiled=!0,n&&(d.functional=!0)),i&&(d._scopeId=i);var g;if(u?(g=function(e){(e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),t&&t.call(this,l(e)),e&&e._registeredComponents&&e._registeredComponents.add(u)},d._ssrRegister=g):t&&(g=o?function(){t.call(this,r(this.$root.$options.shadowRoot))}:function(e){t.call(this,s(e))}),g)if(d.functional){var f=d.render;d.render=function(e,t){return g.call(t),f(e,t)}}else{var c=d.beforeCreate;d.beforeCreate=c?[].concat(c,g):[g]}return a}function i(e){i.installed||(i.installed=!0,e.component("VGauge",n))}var n=a({render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",[e.top?a("p",{ref:"gauge-value",class:e.gaugeValueClass}):e._e(),e._v(" "),a("canvas",{ref:"gauge",attrs:{height:e.height}}),e._v(" "),e.top?e._e():a("p",{ref:"gauge-value",class:e.gaugeValueClass})])},staticRenderFns:[]},void 0,{name:"VGauge",props:{height:{type:String,default:"200px"},decimalPlace:{type:Number,default:0},gaugeValueClass:{type:String,default:""},top:{type:Boolean,default:!1},maxValue:{type:Number,default:100},minValue:{type:Number,default:0},options:{type:Object,default:function(){return{angle:.15,lineWidth:.44,radiusScale:1,pointer:{length:.6,strokeWidth:.035,color:"#000000"},limitMax:!1,limitMin:!1,colorStart:"#6FADCF",colorStop:"#8FC0DA",strokeColor:"#E0E0E0",generateGradient:!0,highDpiSupport:!0}}},animationSpeed:{type:Number,default:10},initialValue:{type:Number,default:0},value:{type:Number,default:50}},data:function(){return{gauge:null}},mounted:function(){this.initializeGauge()},watch:{value:function(e){this.gauge.set(e)}},methods:{initializeGauge:function(){this.gauge=new t.Gauge(this.$refs.gauge),this.gauge.maxValue=this.maxValue,this.gauge.setMinValue(this.minValue),this.gauge.animationSpeed=this.animationSpeed,this.gauge.setOptions(this.options),this.gauge.setTextField(this.$refs["gauge-value"],this.decimalPlace),this.gauge.set(this.value)}}},void 0,!1,void 0,void 0,void 0),u={install:i},o=null;return"undefined"!=typeof window?o=window.Vue:"undefined"!=typeof global&&(o=global.Vue),o&&o.use(u),n.install=i,e.default=n,e}({},gauge_min);

@@ -11,5 +11,5 @@ (function (global, factory) {

props: {
name:{
required: false,
type: String
height: {
type: String,
default: '200px'
},

@@ -189,3 +189,3 @@ decimalPlace: {

/* template */
var __vue_render__ = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[(_vm.top)?_c('p',{ref:"gauge-value",class:_vm.gaugeValueClass}):_vm._e(),_vm._v(" "),_c('canvas',{ref:"gauge"}),_vm._v(" "),(!_vm.top)?_c('p',{ref:"gauge-value",class:_vm.gaugeValueClass}):_vm._e()])};
var __vue_render__ = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[(_vm.top)?_c('p',{ref:"gauge-value",class:_vm.gaugeValueClass}):_vm._e(),_vm._v(" "),_c('canvas',{ref:"gauge",attrs:{"height":_vm.height}}),_vm._v(" "),(!_vm.top)?_c('p',{ref:"gauge-value",class:_vm.gaugeValueClass}):_vm._e()])};
var __vue_staticRenderFns__ = [];

@@ -192,0 +192,0 @@

{
"name": "vgauge",
"version": "1.0.8",
"version": "1.0.9",
"description": "",

@@ -16,3 +16,3 @@ "main": "dist/VGauge.umd.js",

"scripts": {
"build": "npm run build:unpkg & npm run build:es & npm run build:umd & npm publish",
"build": "npm run build:unpkg & npm run build:es & npm run build:umd",
"build:umd": "cross-env NODE_ENV=production rollup --config build/rollup.config.js --format umd --file dist/VGauge.umd.js",

@@ -19,0 +19,0 @@ "build:es": "cross-env NODE_ENV=production rollup --config build/rollup.config.js --format es --file dist/VGauge.esm.js",

@@ -38,2 +38,3 @@ # vgauge

| options | GaugeJS render options, check gaugejs [API](http://bernii.github.io/gauge.js/) | Object | Basic gaugejs Object |
| height | height of the gauge | string | 200px |
| initialValue | Initial value to display on the Gauge | Number | 0 |

@@ -40,0 +41,0 @@ | value | Value to display/watch | Number | 50 |

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc