@fe6/icon-img
Version:
Water Icon 的纯 HTML 图标
10 lines (9 loc) • 4.64 kB
JavaScript
var IconsBytedPaintedEggshell=function(c){"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,e,r){var o=e?.colors||[],t=[],i=e?.theme||r.theme;switch(i){case"outline":t.push(typeof o[0]=="string"?o[0]:r.colors.outline.outStrokeColor),t.push(typeof o[1]=="string"?o[1]:r.colors.outline.outFillColor),t.push(typeof o[0]=="string"?o[0]:r.colors.outline.outStrokeColor),t.push(typeof o[1]=="string"?o[1]:r.colors.outline.outFillColor);break;case"filled":t.push(typeof o[0]=="string"?o[0]:r.colors.filled.outStrokeColor),t.push(typeof o[0]=="string"?o[0]:r.colors.filled.outStrokeColor),t.push(typeof o[1]=="string"?o[1]:r.colors.filled.outFillColor),t.push(typeof o[1]=="string"?o[1]:r.colors.filled.outFillColor);break;case"twoTone":t.push(typeof o[0]=="string"?o[0]:r.colors.twoTone.outStrokeColor),t.push(typeof o[1]=="string"?o[1]:r.colors.twoTone.outFillColor),t.push(typeof o[0]=="string"?o[0]:r.colors.twoTone.outStrokeColor),t.push(typeof o[1]=="string"?o[1]:r.colors.twoTone.outFillColor);break;case"multiColor":t.push(typeof o[0]=="string"?o[0]:r.colors.multiColor.outStrokeColor),t.push(typeof o[1]=="string"?o[1]:r.colors.multiColor.outFillColor),t.push(typeof o[2]=="string"?o[2]:r.colors.multiColor.innerStrokeColor),t.push(typeof o[3]=="string"?o[3]:r.colors.multiColor.innerFillColor);break}return{size:e?.size||r.size,strokeWidth:e?.strokeWidth||r.strokeWidth,strokeLinecap:e?.strokeLinecap||r.strokeLinecap,strokeLinejoin:e?.strokeLinejoin||r.strokeLinejoin,colors:t,svg:e?.svg||"",id:l}},g="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",p="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_",k=function(l,e){for(var r="",o=0,t=l.length,i,s,u,n=e?p:g;o<t;){if(i=l.charCodeAt(o++)&255,o===t){r+=n.charAt(i>>2),r+=n.charAt((i&3)<<4),r+="==";break}if(s=l.charCodeAt(o++),o===t){r+=n.charAt(i>>2),r+=n.charAt((i&3)<<4|(s&240)>>4),r+=n.charAt((s&15)<<2),r+="=";break}u=l.charCodeAt(o++),r+=n.charAt(i>>2),r+=n.charAt((i&3)<<4|(s&240)>>4),r+=n.charAt((s&15)<<2|(u&192)>>6),r+=n.charAt(u&63)}return r},m=function(l){var e="",r,o,t=l.length;for(r=0;r<t;r++)o=l.charCodeAt(r),o>=1&&o<=127?e+=l.charAt(r):o>2047?(e+=String.fromCharCode(224|o>>12&15),e+=String.fromCharCode(128|o>>6&63),e+=String.fromCharCode(128|o>>0&63)):(e+=String.fromCharCode(192|o>>6&31),e+=String.fromCharCode(128|o>>0&63));return e},y=h,S=function(){return y},b=function(l,e,r){return function(o){var t=S(),i=["".concat(t.prefix,"-icon")];i.push("".concat(t.prefix,"-icon-").concat(l)),e&&t.rtl&&i.push("".concat(t.prefix,"-icon-rtl")),o!=null&&o.spin&&i.push("".concat(t.prefix,"-icon-spin"));var s=f(C(),o,t),u=r(s),n=k(m(u)),v="data:image/svg+xml;base64,".concat(n);return o!=null&&o.base64?v:'<span class="'.concat(i.join(" "),`">
<img class="`).concat(t.prefix,'-icon-img" src="').concat(v,`" />
</span>`)}},d=function(l){var e,r,o,t;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 fill-rule="evenodd" clip-rule="evenodd" d="M24 43.9998C34.2524 43.9998 40 37.0455 40 25.9998C40 14.9542 31.1316 3.99985 24 3.99985C16.8684 3.99985 8 14.9542 8 25.9998C8 37.0455 13.7476 43.9998 24 43.9998Z" fill="`).concat((e=l.colors)===null||e===void 0?void 0:e[1],'" stroke="').concat((r=l.colors)===null||r===void 0?void 0:r[0],'" stroke-width="').concat(l.strokeWidth,`"/>
<path d="M21 37.9998C22.6569 37.9998 24 36.6567 24 34.9998C24 33.343 22.6569 31.9998 21 31.9998C19.3431 31.9998 18 33.343 18 34.9998C18 36.6567 19.3431 37.9998 21 37.9998Z" fill="`).concat((o=l.colors)===null||o===void 0?void 0:o[2],`"/>
<path fill-rule="evenodd" clip-rule="evenodd" d="M16 29.6673C17.1046 29.6673 18 28.7719 18 27.6673C18 26.5628 17.1046 25.6673 16 25.6673C14.8954 25.6673 14 26.5628 14 27.6673C14 28.7719 14.8954 29.6673 16 29.6673Z" fill="`).concat((t=l.colors)===null||t===void 0?void 0:t[2],`"/>
</svg>`)},w=b("byted-painted-eggshell",!1,d);return c.default=w,c.getIconBytedPaintedEggshellSvgHtml=d,Object.defineProperty(c,"__esModule",{value:!0}),c}({});