Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

vuejs-image-placeholder

Package Overview
Dependencies
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

vuejs-image-placeholder - npm Package Compare versions

Comparing version 0.0.5 to 0.0.6

2

dist/build.js

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

!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports["vuejs-image-placeholder"]=e():t["vuejs-image-placeholder"]=e()}(this,function(){return function(t){function e(n){if(r[n])return r[n].exports;var i=r[n]={i:n,l:!1,exports:{}};return t[n].call(i.exports,i,i.exports,e),i.l=!0,i.exports}var r={};return e.m=t,e.c=r,e.i=function(t){return t},e.d=function(t,r,n){e.o(t,r)||Object.defineProperty(t,r,{configurable:!1,enumerable:!0,get:n})},e.n=function(t){var r=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(r,"a",r),r},e.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},e.p="/",e(e.s=3)}([function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default={props:{width:{type:Number,default:200},height:{type:Number,default:150},backgroundColour:{type:String,default:"#ccc"},borderColour:{type:String,default:"#333"},borderWidth:{type:Number,default:1},showRatio:{type:Boolean,default:!1},fontFamily:{type:String,default:"monospace, sans-serif"},fontColour:{type:String,default:"#333"},fontSize:{type:Number,default:14}},computed:{imgStyle:function(){return{fill:this.backgroundColour,stroke:this.borderColour,strokeWidth:this.borderWidth}},displayText:function(){return!1===this.showRatio?this.size:this.ratio},size:function(){return this.width+"x"+this.height},ratio:function(){return this.width>this.height?Math.round(this.width/this.height*100)/100+":"+this.height/this.height:this.width/this.width+":"+Math.round(this.height/this.width*100)/100},internalWidth:function(){return this.width-2*this.borderWidth},internalHeight:function(){return this.height-2*this.borderWidth}}}},function(t,e){t.exports=function(t,e,r,n,i){var o,s=t=t||{},u=typeof t.default;"object"!==u&&"function"!==u||(o=t,s=t.default);var d="function"==typeof s?s.options:s;e&&(d.render=e.render,d.staticRenderFns=e.staticRenderFns),n&&(d._scopeId=n);var h;if(i?(h=function(t){t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,t||"undefined"==typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),r&&r.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(i)},d._ssrRegister=h):r&&(h=r),h){var a=d.functional,l=a?d.render:d.beforeCreate;a?d.render=function(t,e){return h.call(e),l(t,e)}:d.beforeCreate=l?[].concat(l,h):[h]}return{esModule:o,exports:s,options:d}}},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",width:t.width,height:t.height}},[r("rect",{style:t.imgStyle,attrs:{x:t.borderWidth,y:t.borderWidth,width:t.internalWidth,height:t.internalHeight}}),t._v(" "),r("text",{attrs:{x:"50%",y:"50%","font-size":"18","text-anchor":"middle","alignment-baseline":"middle"}},[t._v("\n "+t._s(t.displayText)+"\n ")])])},staticRenderFns:[]}},function(t,e,r){var n=r(1)(r(0),r(2),null,null,null);t.exports=n.exports}])});
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports["vuejs-image-placeholder"]=e():t["vuejs-image-placeholder"]=e()}(this,function(){return function(t){function e(r){if(n[r])return n[r].exports;var i=n[r]={i:r,l:!1,exports:{}};return t[r].call(i.exports,i,i.exports,e),i.l=!0,i.exports}var n={};return e.m=t,e.c=n,e.i=function(t){return t},e.d=function(t,n,r){e.o(t,n)||Object.defineProperty(t,n,{configurable:!1,enumerable:!0,get:r})},e.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(n,"a",n),n},e.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},e.p="/",e(e.s=3)}([function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default={props:{width:{type:Number,default:200},height:{type:Number,default:150},backgroundColour:{type:String,default:"#ccc"},borderColour:{type:String,default:"#333"},borderWidth:{type:Number,default:1},showRatio:{type:Boolean,default:!1},fontFamily:{type:String,default:"monospace, sans-serif"},fontColour:{type:String,default:"#333"},fontSize:{type:Number,default:14}},computed:{imgStyle:function(){return{fill:this.backgroundColour,stroke:this.borderColour,strokeWidth:this.borderWidth}},displayText:function(){return!1===this.showRatio?this.size:this.ratio},size:function(){return this.width+"x"+this.height},ratio:function(){return this.width>this.height?Math.round(this.width/this.height*100)/100+":"+this.height/this.height:this.width/this.width+":"+Math.round(this.height/this.width*100)/100},internalWidth:function(){return this.width-2*this.borderWidth},internalHeight:function(){return this.height-2*this.borderWidth}}}},function(t,e){t.exports=function(t,e,n,r,i){var o,s=t=t||{},u=typeof t.default;"object"!==u&&"function"!==u||(o=t,s=t.default);var d="function"==typeof s?s.options:s;e&&(d.render=e.render,d.staticRenderFns=e.staticRenderFns),r&&(d._scopeId=r);var h;if(i?(h=function(t){t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,t||"undefined"==typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),n&&n.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(i)},d._ssrRegister=h):n&&(h=n),h){var a=d.functional,f=a?d.render:d.beforeCreate;a?d.render=function(t,e){return h.call(e),f(t,e)}:d.beforeCreate=f?[].concat(f,h):[h]}return{esModule:o,exports:s,options:d}}},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",width:t.width,height:t.height}},[n("rect",{style:t.imgStyle,attrs:{x:t.borderWidth,y:t.borderWidth,width:t.internalWidth,height:t.internalHeight}}),t._v(" "),n("text",{attrs:{x:"50%",y:"50%","font-size":t.fontSize,"font-family":t.fontFamily,fill:t.fontColour,"text-anchor":"middle","alignment-baseline":"middle"}},[t._v("\n "+t._s(t.displayText)+"\n ")])])},staticRenderFns:[]}},function(t,e,n){var r=n(1)(n(0),n(2),null,null,null);t.exports=r.exports}])});
//# sourceMappingURL=build.js.map
{
"name": "vuejs-image-placeholder",
"version": "0.0.5",
"version": "0.0.6",
"description": "Svg image placeholder",

@@ -5,0 +5,0 @@ "keywords": [

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