@fe6/icon-img
Version:
Water Icon 的纯 HTML 图标
11 lines (10 loc) • 4.83 kB
JavaScript
var IconsBytedRelievedFace=function(u){"use strict";var h={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"},C=function(){return"icon-"+((1+Math.random())*4294967296|0).toString(16).substring(1)},f=function(l,t,e){var o=t?.colors||[],r=[],i=t?.theme||e.theme;switch(i){case"outline":r.push(typeof o[0]=="string"?o[0]:e.colors.outline.outStrokeColor),r.push(typeof o[1]=="string"?o[1]:e.colors.outline.outFillColor),r.push(typeof o[0]=="string"?o[0]:e.colors.outline.outStrokeColor),r.push(typeof o[1]=="string"?o[1]:e.colors.outline.outFillColor);break;case"filled":r.push(typeof o[0]=="string"?o[0]:e.colors.filled.outStrokeColor),r.push(typeof o[0]=="string"?o[0]:e.colors.filled.outStrokeColor),r.push(typeof o[1]=="string"?o[1]:e.colors.filled.outFillColor),r.push(typeof o[1]=="string"?o[1]:e.colors.filled.outFillColor);break;case"twoTone":r.push(typeof o[0]=="string"?o[0]:e.colors.twoTone.outStrokeColor),r.push(typeof o[1]=="string"?o[1]:e.colors.twoTone.outFillColor),r.push(typeof o[0]=="string"?o[0]:e.colors.twoTone.outStrokeColor),r.push(typeof o[1]=="string"?o[1]:e.colors.twoTone.outFillColor);break;case"multiColor":r.push(typeof o[0]=="string"?o[0]:e.colors.multiColor.outStrokeColor),r.push(typeof o[1]=="string"?o[1]:e.colors.multiColor.outFillColor),r.push(typeof o[2]=="string"?o[2]:e.colors.multiColor.innerStrokeColor),r.push(typeof o[3]=="string"?o[3]:e.colors.multiColor.innerFillColor);break}return{size:t?.size||e.size,strokeWidth:t?.strokeWidth||e.strokeWidth,strokeLinecap:t?.strokeLinecap||e.strokeLinecap,strokeLinejoin:t?.strokeLinejoin||e.strokeLinejoin,colors:r,svg:t?.svg||"",id:l}},k="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",g="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_",p=function(l,t){for(var e="",o=0,r=l.length,i,a,c,n=t?g:k;o<r;){if(i=l.charCodeAt(o++)&255,o===r){e+=n.charAt(i>>2),e+=n.charAt((i&3)<<4),e+="==";break}if(a=l.charCodeAt(o++),o===r){e+=n.charAt(i>>2),e+=n.charAt((i&3)<<4|(a&240)>>4),e+=n.charAt((a&15)<<2),e+="=";break}c=l.charCodeAt(o++),e+=n.charAt(i>>2),e+=n.charAt((i&3)<<4|(a&240)>>4),e+=n.charAt((a&15)<<2|(c&192)>>6),e+=n.charAt(c&63)}return e},m=function(l){var t="",e,o,r=l.length;for(e=0;e<r;e++)o=l.charCodeAt(e),o>=1&&o<=127?t+=l.charAt(e):o>2047?(t+=String.fromCharCode(224|o>>12&15),t+=String.fromCharCode(128|o>>6&63),t+=String.fromCharCode(128|o>>0&63)):(t+=String.fromCharCode(192|o>>6&31),t+=String.fromCharCode(128|o>>0&63));return t},y=h,S=function(){return y},F=function(l,t,e){return function(o){var r=S(),i=["".concat(r.prefix,"-icon")];i.push("".concat(r.prefix,"-icon-").concat(l)),t&&r.rtl&&i.push("".concat(r.prefix,"-icon-rtl")),o!=null&&o.spin&&i.push("".concat(r.prefix,"-icon-spin"));var a=f(C(),o,r),c=e(a),n=p(m(c)),v="data:image/svg+xml;base64,".concat(n);return o!=null&&o.base64?v:'<span class="'.concat(i.join(" "),`">
<img class="`).concat(r.prefix,'-icon-img" src="').concat(v,`" />
</span>`)}},d=function(l){var t,e,o,r,i;return`<?xml version="1.0" encoding="UTF-8"?>
<svg width="`.concat(l.size,'" height="').concat(l.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" fill="`).concat((t=l.colors)===null||t===void 0?void 0:t[1],'" stroke="').concat((e=l.colors)===null||e===void 0?void 0:e[0],'" stroke-width="').concat(l.strokeWidth,'" stroke-linejoin="').concat(l.strokeLinejoin,`"/>
<path d="M31 31C31 31 29 35 24 35C19 35 17 31 17 31" stroke="`).concat((o=l.colors)===null||o===void 0?void 0:o[2],'" stroke-width="').concat(l.strokeWidth,'" stroke-linecap="').concat(l.strokeLinecap,'" stroke-linejoin="').concat(l.strokeLinejoin,`"/>
<path d="M20 19C20 19 19 21 17 21C15 21 14 19 14 19" stroke="`).concat((r=l.colors)===null||r===void 0?void 0:r[2],'" stroke-width="').concat(l.strokeWidth,'" stroke-linecap="').concat(l.strokeLinecap,'" stroke-linejoin="').concat(l.strokeLinejoin,`"/>
<path d="M34 19C34 19 33 21 31 21C29 21 28 19 28 19" stroke="`).concat((i=l.colors)===null||i===void 0?void 0:i[2],'" stroke-width="').concat(l.strokeWidth,'" stroke-linecap="').concat(l.strokeLinecap,'" stroke-linejoin="').concat(l.strokeLinejoin,`"/>
</svg>`)},w=F("byted-relieved-face",!1,d);return u.default=w,u.getIconBytedRelievedFaceSvgHtml=d,Object.defineProperty(u,"__esModule",{value:!0}),u}({});