@fe6/icon-img
Version:
Water Icon 的纯 HTML 图标
22 lines (21 loc) • 7.09 kB
JavaScript
var IconsBytedArithmeticButtons=function(k){"use strict";var j={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(o,r,e){var t=r?.colors||[],n=[],i=r?.theme||e.theme;switch(i){case"outline":n.push(typeof t[0]=="string"?t[0]:e.colors.outline.outStrokeColor),n.push(typeof t[1]=="string"?t[1]:e.colors.outline.outFillColor),n.push(typeof t[0]=="string"?t[0]:e.colors.outline.outStrokeColor),n.push(typeof t[1]=="string"?t[1]:e.colors.outline.outFillColor);break;case"filled":n.push(typeof t[0]=="string"?t[0]:e.colors.filled.outStrokeColor),n.push(typeof t[0]=="string"?t[0]:e.colors.filled.outStrokeColor),n.push(typeof t[1]=="string"?t[1]:e.colors.filled.outFillColor),n.push(typeof t[1]=="string"?t[1]:e.colors.filled.outFillColor);break;case"twoTone":n.push(typeof t[0]=="string"?t[0]:e.colors.twoTone.outStrokeColor),n.push(typeof t[1]=="string"?t[1]:e.colors.twoTone.outFillColor),n.push(typeof t[0]=="string"?t[0]:e.colors.twoTone.outStrokeColor),n.push(typeof t[1]=="string"?t[1]:e.colors.twoTone.outFillColor);break;case"multiColor":n.push(typeof t[0]=="string"?t[0]:e.colors.multiColor.outStrokeColor),n.push(typeof t[1]=="string"?t[1]:e.colors.multiColor.outFillColor),n.push(typeof t[2]=="string"?t[2]:e.colors.multiColor.innerStrokeColor),n.push(typeof t[3]=="string"?t[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:n,svg:r?.svg||"",id:o}},S="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",W="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_",A=function(o,r){for(var e="",t=0,n=o.length,i,l,a,c=r?W:S;t<n;){if(i=o.charCodeAt(t++)&255,t===n){e+=c.charAt(i>>2),e+=c.charAt((i&3)<<4),e+="==";break}if(l=o.charCodeAt(t++),t===n){e+=c.charAt(i>>2),e+=c.charAt((i&3)<<4|(l&240)>>4),e+=c.charAt((l&15)<<2),e+="=";break}a=o.charCodeAt(t++),e+=c.charAt(i>>2),e+=c.charAt((i&3)<<4|(l&240)>>4),e+=c.charAt((l&15)<<2|(a&192)>>6),e+=c.charAt(a&63)}return e},_=function(o){var r="",e,t,n=o.length;for(e=0;e<n;e++)t=o.charCodeAt(e),t>=1&&t<=127?r+=o.charAt(e):t>2047?(r+=String.fromCharCode(224|t>>12&15),r+=String.fromCharCode(128|t>>6&63),r+=String.fromCharCode(128|t>>0&63)):(r+=String.fromCharCode(192|t>>6&31),r+=String.fromCharCode(128|t>>0&63));return r},b=j,F=function(){return b},M=function(o,r,e){return function(t){var n=F(),i=["".concat(n.prefix,"-icon")];i.push("".concat(n.prefix,"-icon-").concat(o)),r&&n.rtl&&i.push("".concat(n.prefix,"-icon-rtl")),t!=null&&t.spin&&i.push("".concat(n.prefix,"-icon-spin"));var l=y(w(),t,n),a=e(l),c=A(_(a)),d="data:image/svg+xml;base64,".concat(c);return t!=null&&t.base64?d:'<span class="'.concat(i.join(" "),`">
<img class="`).concat(n.prefix,'-icon-img" src="').concat(d,`" />
</span>`)}},m=function(o){var r,e,t,n,i,l,a,c,d,u,h,v,f,C,L,g;return`<?xml version="1.0" encoding="UTF-8"?>
<svg width="`.concat(o.size,'" height="').concat(o.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="4" width="40" height="40" rx="3" fill="`).concat((r=o.colors)===null||r===void 0?void 0:r[1],'" stroke="').concat((e=o.colors)===null||e===void 0?void 0:e[0],'" stroke-width="').concat(o.strokeWidth,'" stroke-linecap="').concat(o.strokeLinecap,'" stroke-linejoin="').concat(o.strokeLinejoin,`"/>
<path d="M10 14H18" stroke="`).concat((t=o.colors)===null||t===void 0?void 0:t[2],'" stroke-width="').concat(o.strokeWidth,'" stroke-linecap="').concat(o.strokeLinecap,'" stroke-linejoin="').concat(o.strokeLinejoin,`"/>
<path d="M10 14H18" stroke="`).concat((n=o.colors)===null||n===void 0?void 0:n[2],'" stroke-width="').concat(o.strokeWidth,'" stroke-linecap="').concat(o.strokeLinecap,'" stroke-linejoin="').concat(o.strokeLinejoin,`"/>
<path d="M11 37L17 31" stroke="`).concat((i=o.colors)===null||i===void 0?void 0:i[2],'" stroke-width="').concat(o.strokeWidth,'" stroke-linecap="').concat(o.strokeLinecap,'" stroke-linejoin="').concat(o.strokeLinejoin,`"/>
<path d="M14 18V10" stroke="`).concat((l=o.colors)===null||l===void 0?void 0:l[2],'" stroke-width="').concat(o.strokeWidth,'" stroke-linecap="').concat(o.strokeLinecap,'" stroke-linejoin="').concat(o.strokeLinejoin,`"/>
<path d="M17 37L11 31" stroke="`).concat((a=o.colors)===null||a===void 0?void 0:a[2],'" stroke-width="').concat(o.strokeWidth,'" stroke-linecap="').concat(o.strokeLinecap,'" stroke-linejoin="').concat(o.strokeLinejoin,`"/>
<path d="M30 14H38" stroke="`).concat((c=o.colors)===null||c===void 0?void 0:c[2],'" stroke-width="').concat(o.strokeWidth,'" stroke-linecap="').concat(o.strokeLinecap,'" stroke-linejoin="').concat(o.strokeLinejoin,`"/>
<path d="M30 31H38" stroke="`).concat((d=o.colors)===null||d===void 0?void 0:d[2],'" stroke-width="').concat(o.strokeWidth,'" stroke-linecap="').concat(o.strokeLinecap,'" stroke-linejoin="').concat(o.strokeLinejoin,`"/>
<path d="M30 37H38" stroke="`).concat((u=o.colors)===null||u===void 0?void 0:u[2],'" stroke-width="').concat(o.strokeWidth,'" stroke-linecap="').concat(o.strokeLinecap,'" stroke-linejoin="').concat(o.strokeLinejoin,`"/>
<path d="M24 4L24 44" stroke="`).concat((h=o.colors)===null||h===void 0?void 0:h[2],'" stroke-width="').concat(o.strokeWidth,'" stroke-linecap="').concat(o.strokeLinecap,`"/>
<path d="M4 24H44" stroke="`).concat((v=o.colors)===null||v===void 0?void 0:v[2],'" stroke-width="').concat(o.strokeWidth,'" stroke-linecap="').concat(o.strokeLinecap,`"/>
<path d="M30 4H18" stroke="`).concat((f=o.colors)===null||f===void 0?void 0:f[0],'" stroke-width="').concat(o.strokeWidth,'" stroke-linecap="').concat(o.strokeLinecap,'" stroke-linejoin="').concat(o.strokeLinejoin,`"/>
<path d="M30 44H18" stroke="`).concat((C=o.colors)===null||C===void 0?void 0:C[0],'" stroke-width="').concat(o.strokeWidth,'" stroke-linecap="').concat(o.strokeLinecap,'" stroke-linejoin="').concat(o.strokeLinejoin,`"/>
<path d="M4 28L4 20" stroke="`).concat((L=o.colors)===null||L===void 0?void 0:L[0],'" stroke-width="').concat(o.strokeWidth,'" stroke-linecap="').concat(o.strokeLinecap,'" stroke-linejoin="').concat(o.strokeLinejoin,`"/>
<path d="M44 28V20" stroke="`).concat((g=o.colors)===null||g===void 0?void 0:g[0],'" stroke-width="').concat(o.strokeWidth,'" stroke-linecap="').concat(o.strokeLinecap,'" stroke-linejoin="').concat(o.strokeLinejoin,`"/>
</svg>`)},$=M("byted-arithmetic-buttons",!1,m);return k.default=$,k.getIconBytedArithmeticButtonsSvgHtml=m,Object.defineProperty(k,"__esModule",{value:!0}),k}({});