UNPKG

@fe6/icon-img

Version:

Water Icon 的纯 HTML 图标

21 lines (20 loc) 6.32 kB
var IconsBytedForm=function(u){"use strict";var p={size:"1em",spin:!1,strokeWidth:4,strokeLinecap:"round",strokeLinejoin:"round",rtl:!1,theme:"outline",colors:{outline:{outStrokeColor:"#333",outFillColor:"transparent"},filled:{outStrokeColor:"#333",outFillColor:"#fff"},twoTone:{outStrokeColor:"#333",outFillColor:"#2f88ff"},multiColor:{outStrokeColor:"#333",outFillColor:"#2f88ff",innerStrokeColor:"#fff",innerFillColor:"#43ccf8"}},prefix:"cube"},w=function(){return"icon-"+((1+Math.random())*4294967296|0).toString(16).substring(1)},y=function(t,r,e){var o=r?.colors||[],l=[],n=r?.theme||e.theme;switch(n){case"outline":l.push(typeof o[0]=="string"?o[0]:e.colors.outline.outStrokeColor),l.push(typeof o[1]=="string"?o[1]:e.colors.outline.outFillColor),l.push(typeof o[0]=="string"?o[0]:e.colors.outline.outStrokeColor),l.push(typeof o[1]=="string"?o[1]:e.colors.outline.outFillColor);break;case"filled":l.push(typeof o[0]=="string"?o[0]:e.colors.filled.outStrokeColor),l.push(typeof o[0]=="string"?o[0]:e.colors.filled.outStrokeColor),l.push(typeof o[1]=="string"?o[1]:e.colors.filled.outFillColor),l.push(typeof o[1]=="string"?o[1]:e.colors.filled.outFillColor);break;case"twoTone":l.push(typeof o[0]=="string"?o[0]:e.colors.twoTone.outStrokeColor),l.push(typeof o[1]=="string"?o[1]:e.colors.twoTone.outFillColor),l.push(typeof o[0]=="string"?o[0]:e.colors.twoTone.outStrokeColor),l.push(typeof o[1]=="string"?o[1]:e.colors.twoTone.outFillColor);break;case"multiColor":l.push(typeof o[0]=="string"?o[0]:e.colors.multiColor.outStrokeColor),l.push(typeof o[1]=="string"?o[1]:e.colors.multiColor.outFillColor),l.push(typeof o[2]=="string"?o[2]:e.colors.multiColor.innerStrokeColor),l.push(typeof o[3]=="string"?o[3]:e.colors.multiColor.innerFillColor);break}return{size:r?.size||e.size,strokeWidth:r?.strokeWidth||e.strokeWidth,strokeLinecap:r?.strokeLinecap||e.strokeLinecap,strokeLinejoin:r?.strokeLinejoin||e.strokeLinejoin,colors:l,svg:r?.svg||"",id:t}},L="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",S="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_",j=function(t,r){for(var e="",o=0,l=t.length,n,c,a,i=r?S:L;o<l;){if(n=t.charCodeAt(o++)&255,o===l){e+=i.charAt(n>>2),e+=i.charAt((n&3)<<4),e+="==";break}if(c=t.charCodeAt(o++),o===l){e+=i.charAt(n>>2),e+=i.charAt((n&3)<<4|(c&240)>>4),e+=i.charAt((c&15)<<2),e+="=";break}a=t.charCodeAt(o++),e+=i.charAt(n>>2),e+=i.charAt((n&3)<<4|(c&240)>>4),e+=i.charAt((c&15)<<2|(a&192)>>6),e+=i.charAt(a&63)}return e},F=function(t){var r="",e,o,l=t.length;for(e=0;e<l;e++)o=t.charCodeAt(e),o>=1&&o<=127?r+=t.charAt(e):o>2047?(r+=String.fromCharCode(224|o>>12&15),r+=String.fromCharCode(128|o>>6&63),r+=String.fromCharCode(128|o>>0&63)):(r+=String.fromCharCode(192|o>>6&31),r+=String.fromCharCode(128|o>>0&63));return r},_=p,b=function(){return _},A=function(t,r,e){return function(o){var l=b(),n=["".concat(l.prefix,"-icon")];n.push("".concat(l.prefix,"-icon-").concat(t)),r&&l.rtl&&n.push("".concat(l.prefix,"-icon-rtl")),o!=null&&o.spin&&n.push("".concat(l.prefix,"-icon-spin"));var c=y(w(),o,l),a=e(c),i=j(F(a)),d="data:image/svg+xml;base64,".concat(i);return o!=null&&o.base64?d:'<span class="'.concat(n.join(" "),`"> <img class="`).concat(l.prefix,'-icon-img" src="').concat(d,`" /> </span>`)}},m=function(t){var r,e,o,l,n,c,a,i,d,v,h,k,f,C,g;return`<?xml version="1.0" encoding="UTF-8"?> <svg width="`.concat(t.size,'" height="').concat(t.size,`" viewBox="0 0 48 48" fill="none" xmlns="http://www.w3.org/2000/svg"> <rect width="48" height="48" fill="white" fill-opacity="0.01"/> <rect x="4" y="8" width="40" height="32" rx="2" fill="`).concat((r=t.colors)===null||r===void 0?void 0:r[1],'" stroke="').concat((e=t.colors)===null||e===void 0?void 0:e[0],'" stroke-width="').concat(t.strokeWidth,'" stroke-linejoin="').concat(t.strokeLinejoin,`"/> <path fill-rule="evenodd" clip-rule="evenodd" d="M4 29H44H4Z" fill="`).concat((o=t.colors)===null||o===void 0?void 0:o[1],`"/> <path d="M4 29H44" stroke="`).concat((l=t.colors)===null||l===void 0?void 0:l[2],'" stroke-width="').concat(t.strokeWidth,'" stroke-linecap="').concat(t.strokeLinecap,'" stroke-linejoin="').concat(t.strokeLinejoin,`"/> <path fill-rule="evenodd" clip-rule="evenodd" d="M4 19H44H4Z" fill="`).concat((n=t.colors)===null||n===void 0?void 0:n[1],`"/> <path d="M4 19H44" stroke="`).concat((c=t.colors)===null||c===void 0?void 0:c[2],'" stroke-width="').concat(t.strokeWidth,'" stroke-linecap="').concat(t.strokeLinecap,'" stroke-linejoin="').concat(t.strokeLinejoin,`"/> <path fill-rule="evenodd" clip-rule="evenodd" d="M17 40V19V40Z" fill="`).concat((a=t.colors)===null||a===void 0?void 0:a[1],`"/> <path d="M17 40V19" stroke="`).concat((i=t.colors)===null||i===void 0?void 0:i[2],'" stroke-width="').concat(t.strokeWidth,'" stroke-linecap="').concat(t.strokeLinecap,'" stroke-linejoin="').concat(t.strokeLinejoin,`"/> <path fill-rule="evenodd" clip-rule="evenodd" d="M4 38V17V38Z" fill="`).concat((d=t.colors)===null||d===void 0?void 0:d[1],`"/> <path d="M4 38V17" stroke="`).concat((v=t.colors)===null||v===void 0?void 0:v[0],'" stroke-width="').concat(t.strokeWidth,'" stroke-linecap="').concat(t.strokeLinecap,'" stroke-linejoin="').concat(t.strokeLinejoin,`"/> <path fill-rule="evenodd" clip-rule="evenodd" d="M44 38V17V38Z" fill="`).concat((h=t.colors)===null||h===void 0?void 0:h[1],`"/> <path d="M44 38V17" stroke="`).concat((k=t.colors)===null||k===void 0?void 0:k[0],'" stroke-width="').concat(t.strokeWidth,'" stroke-linecap="').concat(t.strokeLinecap,'" stroke-linejoin="').concat(t.strokeLinejoin,`"/> <path fill-rule="evenodd" clip-rule="evenodd" d="M31 40V19V40Z" fill="`).concat((f=t.colors)===null||f===void 0?void 0:f[1],`"/> <path d="M31 40V19" stroke="`).concat((C=t.colors)===null||C===void 0?void 0:C[2],'" stroke-width="').concat(t.strokeWidth,'" stroke-linecap="').concat(t.strokeLinecap,'" stroke-linejoin="').concat(t.strokeLinejoin,`"/> <path d="M9 40H39" stroke="`).concat((g=t.colors)===null||g===void 0?void 0:g[0],'" stroke-width="').concat(t.strokeWidth,'" stroke-linecap="').concat(t.strokeLinecap,'" stroke-linejoin="').concat(t.strokeLinejoin,`"/> </svg>`)},M=A("byted-form",!1,m);return u.default=M,u.getIconBytedFormSvgHtml=m,Object.defineProperty(u,"__esModule",{value:!0}),u}({});