vuejs-image-placeholder
Advanced tools
Comparing version 0.0.4 to 0.0.5
@@ -1,2 +0,2 @@ | ||
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports["vuejs-image-placeholder"]=t():e["vuejs-image-placeholder"]=t()}(this,function(){return function(e){function t(r){if(n[r])return n[r].exports;var o=n[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,t),o.l=!0,o.exports}var n={};return t.m=e,t.c=n,t.i=function(e){return e},t.d=function(e,n,r){t.o(e,n)||Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:r})},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="/",t(t.s=6)}([function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.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?this.width/this.height*100/100+":"+this.height/this.height:this.width/this.width+":"+this.height/this.width*100/100},internalWidth:function(){return this.width-2*this.borderWidth},internalHeight:function(){return this.height-2*this.borderWidth}}}},function(e,t){e.exports=function(e,t,n,r,o){var i,s=e=e||{},a=typeof e.default;"object"!==a&&"function"!==a||(i=e,s=e.default);var u="function"==typeof s?s.options:s;t&&(u.render=t.render,u.staticRenderFns=t.staticRenderFns),r&&(u._scopeId=r);var d;if(o?(d=function(e){e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,e||"undefined"==typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),n&&n.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(o)},u._ssrRegister=d):n&&(d=n),d){var f=u.functional,c=f?u.render:u.beforeCreate;f?u.render=function(e,t){return d.call(t),c(e,t)}:u.beforeCreate=c?[].concat(c,d):[d]}return{esModule:i,exports:s,options:u}}},function(e,t){e.exports={render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",width:e.width,height:e.height}},[n("rect",{style:e.imgStyle,attrs:{x:e.borderWidth,y:e.borderWidth,width:e.internalWidth,height:e.internalHeight}}),e._v(" "),n("text",{attrs:{x:"50%",y:"50%","font-size":"18","text-anchor":"middle","alignment-baseline":"middle"}},[e._v("\n "+e._s(e.displayText)+"\n ")])])},staticRenderFns:[]}},function(e,t,n){var r=n(4);"string"==typeof r&&(r=[[e.i,r,""]]),r.locals&&(e.exports=r.locals);n(7)("389540ae",r,!0)},function(e,t,n){t=e.exports=n(5)(!0),t.push([e.i,"","",{version:3,sources:[],names:[],mappings:"",file:"ImagePlaceholder.vue",sourceRoot:""}])},function(e,t){function n(e,t){var n=e[1]||"",o=e[3];if(!o)return n;if(t&&"function"==typeof btoa){var i=r(o);return[n].concat(o.sources.map(function(e){return"/*# sourceURL="+o.sourceRoot+e+" */"})).concat([i]).join("\n")}return[n].join("\n")}function r(e){return"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(e))))+" */"}e.exports=function(e){var t=[];return t.toString=function(){return this.map(function(t){var r=n(t,e);return t[2]?"@media "+t[2]+"{"+r+"}":r}).join("")},t.i=function(e,n){"string"==typeof e&&(e=[[null,e,""]]);for(var r={},o=0;o<this.length;o++){var i=this[o][0];"number"==typeof i&&(r[i]=!0)}for(o=0;o<e.length;o++){var s=e[o];"number"==typeof s[0]&&r[s[0]]||(n&&!s[2]?s[2]=n:n&&(s[2]="("+s[2]+") and ("+n+")"),t.push(s))}},t}},function(e,t,n){function r(e){n(3)}var o=n(1)(n(0),n(2),r,"data-v-3d3967a4",null);e.exports=o.exports},function(e,t,n){function r(e){for(var t=0;t<e.length;t++){var n=e[t],r=f[n.id];if(r){r.refs++;for(var o=0;o<r.parts.length;o++)r.parts[o](n.parts[o]);for(;o<n.parts.length;o++)r.parts.push(i(n.parts[o]));r.parts.length>n.parts.length&&(r.parts.length=n.parts.length)}else{for(var s=[],o=0;o<n.parts.length;o++)s.push(i(n.parts[o]));f[n.id]={id:n.id,refs:1,parts:s}}}}function o(){var e=document.createElement("style");return e.type="text/css",c.appendChild(e),e}function i(e){var t,n,r=document.querySelector('style[data-vue-ssr-id~="'+e.id+'"]');if(r){if(p)return g;r.parentNode.removeChild(r)}if(v){var i=h++;r=l||(l=o()),t=s.bind(null,r,i,!1),n=s.bind(null,r,i,!0)}else r=o(),t=a.bind(null,r),n=function(){r.parentNode.removeChild(r)};return t(e),function(r){if(r){if(r.css===e.css&&r.media===e.media&&r.sourceMap===e.sourceMap)return;t(e=r)}else n()}}function s(e,t,n,r){var o=n?"":r.css;if(e.styleSheet)e.styleSheet.cssText=m(t,o);else{var i=document.createTextNode(o),s=e.childNodes;s[t]&&e.removeChild(s[t]),s.length?e.insertBefore(i,s[t]):e.appendChild(i)}}function a(e,t){var n=t.css,r=t.media,o=t.sourceMap;if(r&&e.setAttribute("media",r),o&&(n+="\n/*# sourceURL="+o.sources[0]+" */",n+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(o))))+" */"),e.styleSheet)e.styleSheet.cssText=n;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(n))}}var u="undefined"!=typeof document;if("undefined"!=typeof DEBUG&&DEBUG&&!u)throw new Error("vue-style-loader cannot be used in a non-browser environment. Use { target: 'node' } in your Webpack config to indicate a server-rendering environment.");var d=n(8),f={},c=u&&(document.head||document.getElementsByTagName("head")[0]),l=null,h=0,p=!1,g=function(){},v="undefined"!=typeof navigator&&/msie [6-9]\b/.test(navigator.userAgent.toLowerCase());e.exports=function(e,t,n){p=n;var o=d(e,t);return r(o),function(t){for(var n=[],i=0;i<o.length;i++){var s=o[i],a=f[s.id];a.refs--,n.push(a)}t?(o=d(e,t),r(o)):o=[];for(var i=0;i<n.length;i++){var a=n[i];if(0===a.refs){for(var u=0;u<a.parts.length;u++)a.parts[u]();delete f[a.id]}}}};var m=function(){var e=[];return function(t,n){return e[t]=n,e.filter(Boolean).join("\n")}}()},function(e,t){e.exports=function(e,t){for(var n=[],r={},o=0;o<t.length;o++){var i=t[o],s=i[0],a=i[1],u=i[2],d=i[3],f={id:e+":"+o,css:a,media:u,sourceMap:d};r[s]?r[s].parts.push(f):n.push(r[s]={id:s,parts:[f]})}return n}}])}); | ||
!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}])}); | ||
//# sourceMappingURL=build.js.map |
{ | ||
"name": "vuejs-image-placeholder", | ||
"version": "0.0.4", | ||
"version": "0.0.5", | ||
"description": "Svg image placeholder", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
30881
12