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.1.0 to 1.1.1

64

dist/VGauge.esm.js

@@ -184,2 +184,52 @@ import { Gauge } from 'gaugeJS/dist/gauge.min';

var isOldIE = typeof navigator !== 'undefined' && /msie [6-9]\\b/.test(navigator.userAgent.toLowerCase());
function createInjector(context) {
return function (id, style) {
return addStyle(id, style);
};
}
var HEAD = document.head || document.getElementsByTagName('head')[0];
var styles = {};
function addStyle(id, css) {
var group = isOldIE ? css.media || 'default' : id;
var style = styles[group] || (styles[group] = {
ids: new Set(),
styles: []
});
if (!style.ids.has(id)) {
style.ids.add(id);
var code = css.source;
if (css.map) {
// https://developer.chrome.com/devtools/docs/javascript-debugging
// this makes source maps inside style tags work properly in Chrome
code += '\n/*# sourceURL=' + css.map.sources[0] + ' */'; // http://stackoverflow.com/a/26603875
code += '\n/*# sourceMappingURL=data:application/json;base64,' + btoa(unescape(encodeURIComponent(JSON.stringify(css.map)))) + ' */';
}
if (!style.element) {
style.element = document.createElement('style');
style.element.type = 'text/css';
if (css.media) { style.element.setAttribute('media', css.media); }
HEAD.appendChild(style.element);
}
if ('styleSheet' in style.element) {
style.styles.push(code);
style.element.styleSheet.cssText = style.styles.filter(Boolean).join('\n');
} else {
var index = style.ids.size - 1;
var textNode = document.createTextNode(code);
var nodes = style.element.childNodes;
if (nodes[index]) { style.element.removeChild(nodes[index]); }
if (nodes.length) { style.element.insertBefore(textNode, nodes[index]); }else { style.element.appendChild(textNode); }
}
}
}
var browser = createInjector;
/* script */

@@ -189,9 +239,13 @@ var __vue_script__ = script;

/* template */
var __vue_render__ = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[(_vm.top)?_c('span',{ref:"gauge-value",class:_vm.gaugeValueClass}):_vm._e(),_vm._v(" "),(_vm.top)?_c('span',{class:_vm.gaugeValueClass},[_vm._v(_vm._s(_vm.unit))]):_vm._e(),_vm._v(" "),_c('canvas',{ref:"gauge",attrs:{"height":_vm.height}}),_vm._v(" "),(!_vm.top)?_c('span',{ref:"gauge-value",class:_vm.gaugeValueClass}):_vm._e(),_vm._v(" "),(!_vm.top)?_c('span',{class:_vm.gaugeValueClass},[_vm._v(_vm._s(_vm.unit))]):_vm._e()])};
var __vue_render__ = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[_c('div',{staticClass:"gauge-title"},[(_vm.top)?_c('span',{ref:"gauge-value",class:_vm.gaugeValueClass}):_vm._e(),_vm._v(" "),(_vm.top)?_c('span',{class:_vm.gaugeValueClass},[_vm._v(_vm._s(_vm.unit))]):_vm._e()]),_vm._v(" "),_c('canvas',{ref:"gauge",attrs:{"height":_vm.height}}),_vm._v(" "),_c('div',{staticClass:"gauge-title"},[(!_vm.top)?_c('span',{ref:"gauge-value",class:_vm.gaugeValueClass}):_vm._e(),_vm._v(" "),(!_vm.top)?_c('span',{class:_vm.gaugeValueClass},[_vm._v(_vm._s(_vm.unit))]):_vm._e()])])};
var __vue_staticRenderFns__ = [];
/* style */
var __vue_inject_styles__ = undefined;
var __vue_inject_styles__ = function (inject) {
if (!inject) { return }
inject("data-v-44c7b7a9_0", { source: ".gauge-title span[data-v-44c7b7a9]{display:inline;text-align:center}", map: undefined, media: undefined });
};
/* scoped */
var __vue_scope_id__ = undefined;
var __vue_scope_id__ = "data-v-44c7b7a9";
/* module identifier */

@@ -201,4 +255,2 @@ var __vue_module_identifier__ = undefined;

var __vue_is_functional_template__ = false;
/* style inject */
/* style inject SSR */

@@ -215,3 +267,3 @@

__vue_module_identifier__,
undefined,
browser,
undefined

@@ -218,0 +270,0 @@ );

2

dist/VGauge.min.js

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

var VGauge=function(e,t){"use strict";function a(e,t,a,n,i,u,s,l,o,r){"boolean"!=typeof s&&(o=l,l=s,s=!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,o(e)),e&&e._registeredComponents&&e._registeredComponents.add(u)},d._ssrRegister=g):t&&(g=s?function(){t.call(this,r(this.$root.$options.shadowRoot))}:function(e){t.call(this,l(e))}),g)if(d.functional){var p=d.render;d.render=function(e,t){return g.call(t),p(e,t)}}else{var c=d.beforeCreate;d.beforeCreate=c?[].concat(c,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("span",{ref:"gauge-value",class:e.gaugeValueClass}):e._e(),e._v(" "),e.top?a("span",{class:e.gaugeValueClass},[e._v(e._s(e.unit))]):e._e(),e._v(" "),a("canvas",{ref:"gauge",attrs:{height:e.height}}),e._v(" "),e.top?e._e():a("span",{ref:"gauge-value",class:e.gaugeValueClass}),e._v(" "),e.top?e._e():a("span",{class:e.gaugeValueClass},[e._v(e._s(e.unit))])])},staticRenderFns:[]},void 0,{name:"VGauge",props:{unit:{type:String,default:""},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:n},s=null;return"undefined"!=typeof window?s=window.Vue:"undefined"!=typeof global&&(s=global.Vue),s&&s.use(u),i.install=n,e.default=i,e}({},gauge_min);
var VGauge=function(e,t){"use strict";function a(e,t,a,n,i,s,l,u,o,r){"boolean"!=typeof l&&(o=u,u=l,l=!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(s?(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,o(e)),e&&e._registeredComponents&&e._registeredComponents.add(s)},d._ssrRegister=g):t&&(g=l?function(){t.call(this,r(this.$root.$options.shadowRoot))}:function(e){t.call(this,u(e))}),g)if(d.functional){var c=d.render;d.render=function(e,t){return g.call(t),c(e,t)}}else{var p=d.beforeCreate;d.beforeCreate=p?[].concat(p,g):[g]}return a}function n(e){return function(e,t){return i(e,t)}}function i(e,t){var a=o?t.media||"default":e,n=d[a]||(d[a]={ids:new Set,styles:[]});if(!n.ids.has(e)){n.ids.add(e);var i=t.source;if(t.map&&(i+="\n/*# sourceURL="+t.map.sources[0]+" */",i+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(t.map))))+" */"),n.element||(n.element=document.createElement("style"),n.element.type="text/css",t.media&&n.element.setAttribute("media",t.media),r.appendChild(n.element)),"styleSheet"in n.element)n.styles.push(i),n.element.styleSheet.cssText=n.styles.filter(Boolean).join("\n");else{var s=n.ids.size-1,l=document.createTextNode(i),u=n.element.childNodes;u[s]&&n.element.removeChild(u[s]),u.length?n.element.insertBefore(l,u[s]):n.element.appendChild(l)}}}function s(e){s.installed||(s.installed=!0,e.component("VGauge",g))}var l={name:"VGauge",props:{unit:{type:String,default:""},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)}}},u=a,o="undefined"!=typeof navigator&&/msie [6-9]\\b/.test(navigator.userAgent.toLowerCase()),r=document.head||document.getElementsByTagName("head")[0],d={},g=u({render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",[a("div",{staticClass:"gauge-title"},[e.top?a("span",{ref:"gauge-value",class:e.gaugeValueClass}):e._e(),e._v(" "),e.top?a("span",{class:e.gaugeValueClass},[e._v(e._s(e.unit))]):e._e()]),e._v(" "),a("canvas",{ref:"gauge",attrs:{height:e.height}}),e._v(" "),a("div",{staticClass:"gauge-title"},[e.top?e._e():a("span",{ref:"gauge-value",class:e.gaugeValueClass}),e._v(" "),e.top?e._e():a("span",{class:e.gaugeValueClass},[e._v(e._s(e.unit))])])])},staticRenderFns:[]},function(e){e&&e("data-v-44c7b7a9_0",{source:".gauge-title span[data-v-44c7b7a9]{display:inline;text-align:center}",map:void 0,media:void 0})},l,"data-v-44c7b7a9",!1,void 0,n,void 0),c={install:s},p=null;return"undefined"!=typeof window?p=window.Vue:"undefined"!=typeof global&&(p=global.Vue),p&&p.use(c),g.install=s,e.default=g,e}({},gauge_min);

@@ -188,2 +188,52 @@ (function (global, factory) {

var isOldIE = typeof navigator !== 'undefined' && /msie [6-9]\\b/.test(navigator.userAgent.toLowerCase());
function createInjector(context) {
return function (id, style) {
return addStyle(id, style);
};
}
var HEAD = document.head || document.getElementsByTagName('head')[0];
var styles = {};
function addStyle(id, css) {
var group = isOldIE ? css.media || 'default' : id;
var style = styles[group] || (styles[group] = {
ids: new Set(),
styles: []
});
if (!style.ids.has(id)) {
style.ids.add(id);
var code = css.source;
if (css.map) {
// https://developer.chrome.com/devtools/docs/javascript-debugging
// this makes source maps inside style tags work properly in Chrome
code += '\n/*# sourceURL=' + css.map.sources[0] + ' */'; // http://stackoverflow.com/a/26603875
code += '\n/*# sourceMappingURL=data:application/json;base64,' + btoa(unescape(encodeURIComponent(JSON.stringify(css.map)))) + ' */';
}
if (!style.element) {
style.element = document.createElement('style');
style.element.type = 'text/css';
if (css.media) { style.element.setAttribute('media', css.media); }
HEAD.appendChild(style.element);
}
if ('styleSheet' in style.element) {
style.styles.push(code);
style.element.styleSheet.cssText = style.styles.filter(Boolean).join('\n');
} else {
var index = style.ids.size - 1;
var textNode = document.createTextNode(code);
var nodes = style.element.childNodes;
if (nodes[index]) { style.element.removeChild(nodes[index]); }
if (nodes.length) { style.element.insertBefore(textNode, nodes[index]); }else { style.element.appendChild(textNode); }
}
}
}
var browser = createInjector;
/* script */

@@ -193,9 +243,13 @@ var __vue_script__ = script;

/* template */
var __vue_render__ = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[(_vm.top)?_c('span',{ref:"gauge-value",class:_vm.gaugeValueClass}):_vm._e(),_vm._v(" "),(_vm.top)?_c('span',{class:_vm.gaugeValueClass},[_vm._v(_vm._s(_vm.unit))]):_vm._e(),_vm._v(" "),_c('canvas',{ref:"gauge",attrs:{"height":_vm.height}}),_vm._v(" "),(!_vm.top)?_c('span',{ref:"gauge-value",class:_vm.gaugeValueClass}):_vm._e(),_vm._v(" "),(!_vm.top)?_c('span',{class:_vm.gaugeValueClass},[_vm._v(_vm._s(_vm.unit))]):_vm._e()])};
var __vue_render__ = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[_c('div',{staticClass:"gauge-title"},[(_vm.top)?_c('span',{ref:"gauge-value",class:_vm.gaugeValueClass}):_vm._e(),_vm._v(" "),(_vm.top)?_c('span',{class:_vm.gaugeValueClass},[_vm._v(_vm._s(_vm.unit))]):_vm._e()]),_vm._v(" "),_c('canvas',{ref:"gauge",attrs:{"height":_vm.height}}),_vm._v(" "),_c('div',{staticClass:"gauge-title"},[(!_vm.top)?_c('span',{ref:"gauge-value",class:_vm.gaugeValueClass}):_vm._e(),_vm._v(" "),(!_vm.top)?_c('span',{class:_vm.gaugeValueClass},[_vm._v(_vm._s(_vm.unit))]):_vm._e()])])};
var __vue_staticRenderFns__ = [];
/* style */
var __vue_inject_styles__ = undefined;
var __vue_inject_styles__ = function (inject) {
if (!inject) { return }
inject("data-v-44c7b7a9_0", { source: ".gauge-title span[data-v-44c7b7a9]{display:inline;text-align:center}", map: undefined, media: undefined });
};
/* scoped */
var __vue_scope_id__ = undefined;
var __vue_scope_id__ = "data-v-44c7b7a9";
/* module identifier */

@@ -205,4 +259,2 @@ var __vue_module_identifier__ = undefined;

var __vue_is_functional_template__ = false;
/* style inject */
/* style inject SSR */

@@ -219,3 +271,3 @@

__vue_module_identifier__,
undefined,
browser,
undefined

@@ -222,0 +274,0 @@ );

{
"name": "vgauge",
"version": "1.1.0",
"version": "1.1.1",
"description": "",

@@ -5,0 +5,0 @@ "main": "dist/VGauge.umd.js",

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