@fe6/icon-img
Version:
Water Icon 的纯 HTML 图标
25 lines (24 loc) • 7.51 kB
JavaScript
var IconsBytedFriendsCircle=function(u){"use strict";var y={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"},S=function(){return"icon-"+((1+Math.random())*4294967296|0).toString(16).substring(1)},_=function(o,l,t){var e=l?.colors||[],r=[],n=l?.theme||t.theme;switch(n){case"outline":r.push(typeof e[0]=="string"?e[0]:t.colors.outline.outStrokeColor),r.push(typeof e[1]=="string"?e[1]:t.colors.outline.outFillColor),r.push(typeof e[0]=="string"?e[0]:t.colors.outline.outStrokeColor),r.push(typeof e[1]=="string"?e[1]:t.colors.outline.outFillColor);break;case"filled":r.push(typeof e[0]=="string"?e[0]:t.colors.filled.outStrokeColor),r.push(typeof e[0]=="string"?e[0]:t.colors.filled.outStrokeColor),r.push(typeof e[1]=="string"?e[1]:t.colors.filled.outFillColor),r.push(typeof e[1]=="string"?e[1]:t.colors.filled.outFillColor);break;case"twoTone":r.push(typeof e[0]=="string"?e[0]:t.colors.twoTone.outStrokeColor),r.push(typeof e[1]=="string"?e[1]:t.colors.twoTone.outFillColor),r.push(typeof e[0]=="string"?e[0]:t.colors.twoTone.outStrokeColor),r.push(typeof e[1]=="string"?e[1]:t.colors.twoTone.outFillColor);break;case"multiColor":r.push(typeof e[0]=="string"?e[0]:t.colors.multiColor.outStrokeColor),r.push(typeof e[1]=="string"?e[1]:t.colors.multiColor.outFillColor),r.push(typeof e[2]=="string"?e[2]:t.colors.multiColor.innerStrokeColor),r.push(typeof e[3]=="string"?e[3]:t.colors.multiColor.innerFillColor);break}return{size:l?.size||t.size,strokeWidth:l?.strokeWidth||t.strokeWidth,strokeLinecap:l?.strokeLinecap||t.strokeLinecap,strokeLinejoin:l?.strokeLinejoin||t.strokeLinejoin,colors:r,svg:l?.svg||"",id:o}},F="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",M="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_",b=function(o,l){for(var t="",e=0,r=o.length,n,c,s,i=l?M:F;e<r;){if(n=o.charCodeAt(e++)&255,e===r){t+=i.charAt(n>>2),t+=i.charAt((n&3)<<4),t+="==";break}if(c=o.charCodeAt(e++),e===r){t+=i.charAt(n>>2),t+=i.charAt((n&3)<<4|(c&240)>>4),t+=i.charAt((c&15)<<2),t+="=";break}s=o.charCodeAt(e++),t+=i.charAt(n>>2),t+=i.charAt((n&3)<<4|(c&240)>>4),t+=i.charAt((c&15)<<2|(s&192)>>6),t+=i.charAt(s&63)}return t},$=function(o){var l="",t,e,r=o.length;for(t=0;t<r;t++)e=o.charCodeAt(t),e>=1&&e<=127?l+=o.charAt(t):e>2047?(l+=String.fromCharCode(224|e>>12&15),l+=String.fromCharCode(128|e>>6&63),l+=String.fromCharCode(128|e>>0&63)):(l+=String.fromCharCode(192|e>>6&31),l+=String.fromCharCode(128|e>>0&63));return l},W=y,A=function(){return W},I=function(o,l,t){return function(e){var r=A(),n=["".concat(r.prefix,"-icon")];n.push("".concat(r.prefix,"-icon-").concat(o)),l&&r.rtl&&n.push("".concat(r.prefix,"-icon-rtl")),e!=null&&e.spin&&n.push("".concat(r.prefix,"-icon-spin"));var c=_(S(),e,r),s=t(c),i=b($(s)),d="data:image/svg+xml;base64,".concat(i);return e!=null&&e.base64?d:'<span class="'.concat(n.join(" "),`">
<img class="`).concat(r.prefix,'-icon-img" src="').concat(d,`" />
</span>`)}},w=function(o){var l,t,e,r,n,c,s,i,d,v,k,h,f,C,L,g,m,p,j;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"/>
<path d="M24 44C35.0457 44 44 35.0457 44 24C44 12.9543 35.0457 4 24 4C12.9543 4 4 12.9543 4 24C4 35.0457 12.9543 44 24 44Z" 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 fill-rule="evenodd" clip-rule="evenodd" d="M31 7V24V7Z" fill="`).concat((t=o.colors)===null||t===void 0?void 0:t[1],`"/>
<path d="M31 7V24" 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 fill-rule="evenodd" clip-rule="evenodd" d="M16.636 6.63605L30.7781 20.7782L16.636 6.63605Z" fill="`).concat((r=o.colors)===null||r===void 0?void 0:r[1],`"/>
<path d="M16.636 6.63605L30.7781 20.7782" stroke="`).concat((n=o.colors)===null||n===void 0?void 0:n[0],'" stroke-width="').concat(o.strokeWidth,'" stroke-linecap="').concat(o.strokeLinecap,'" stroke-linejoin="').concat(o.strokeLinejoin,`"/>
<path fill-rule="evenodd" clip-rule="evenodd" d="M7 17H24H7Z" fill="`).concat((c=o.colors)===null||c===void 0?void 0:c[1],`"/>
<path d="M7 17H24" stroke="`).concat((s=o.colors)===null||s===void 0?void 0:s[0],'" stroke-width="').concat(o.strokeWidth,'" stroke-linecap="').concat(o.strokeLinecap,'" stroke-linejoin="').concat(o.strokeLinejoin,`"/>
<path fill-rule="evenodd" clip-rule="evenodd" d="M20.364 17.636L6.22188 31.7782L20.364 17.636Z" fill="`).concat((i=o.colors)===null||i===void 0?void 0:i[1],`"/>
<path d="M20.364 17.636L6.22188 31.7782" stroke="`).concat((d=o.colors)===null||d===void 0?void 0:d[0],'" stroke-width="').concat(o.strokeWidth,'" stroke-linecap="').concat(o.strokeLinecap,'" stroke-linejoin="').concat(o.strokeLinejoin,`"/>
<path fill-rule="evenodd" clip-rule="evenodd" d="M17 25V42V25Z" fill="`).concat((v=o.colors)===null||v===void 0?void 0:v[1],`"/>
<path d="M17 25V42" stroke="`).concat((k=o.colors)===null||k===void 0?void 0:k[0],'" stroke-width="').concat(o.strokeWidth,'" stroke-linecap="').concat(o.strokeLinecap,'" stroke-linejoin="').concat(o.strokeLinejoin,`"/>
<path fill-rule="evenodd" clip-rule="evenodd" d="M17.636 27.636L31.7781 41.7782L17.636 27.636Z" fill="`).concat((h=o.colors)===null||h===void 0?void 0:h[1],`"/>
<path d="M17.636 27.636L31.7781 41.7782" 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 fill-rule="evenodd" clip-rule="evenodd" d="M24 31L42 31L24 31Z" fill="`).concat((C=o.colors)===null||C===void 0?void 0:C[1],`"/>
<path d="M24 31L42 31" 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 fill-rule="evenodd" clip-rule="evenodd" d="M42.364 16.636L28.2219 30.7782L42.364 16.636Z" fill="`).concat((g=o.colors)===null||g===void 0?void 0:g[1],`"/>
<path d="M42.364 16.636L28.2219 30.7782" stroke="`).concat((m=o.colors)===null||m===void 0?void 0:m[0],'" stroke-width="').concat(o.strokeWidth,'" stroke-linecap="').concat(o.strokeLinecap,'" stroke-linejoin="').concat(o.strokeLinejoin,`"/>
<path d="M24 31C27.866 31 31 27.866 31 24C31 20.134 27.866 17 24 17C20.134 17 17 20.134 17 24C17 27.866 20.134 31 24 31Z" fill="`).concat((p=o.colors)===null||p===void 0?void 0:p[1],'" stroke="').concat((j=o.colors)===null||j===void 0?void 0:j[0],'" stroke-width="').concat(o.strokeWidth,'" stroke-linecap="').concat(o.strokeLinecap,'" stroke-linejoin="').concat(o.strokeLinejoin,`"/>
</svg>`)},T=I("byted-friends-circle",!1,w);return u.default=T,u.getIconBytedFriendsCircleSvgHtml=w,Object.defineProperty(u,"__esModule",{value:!0}),u}({});