@fe6/icon-img
Version:
Water Icon 的纯 HTML 图标
13 lines (12 loc) • 5.36 kB
JavaScript
var IconsBytedHoneyOne=function(u){"use strict";var v={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"},f=function(){return"icon-"+((1+Math.random())*4294967296|0).toString(16).substring(1)},C=function(l,r,t){var o=r?.colors||[],e=[],n=r?.theme||t.theme;switch(n){case"outline":e.push(typeof o[0]=="string"?o[0]:t.colors.outline.outStrokeColor),e.push(typeof o[1]=="string"?o[1]:t.colors.outline.outFillColor),e.push(typeof o[0]=="string"?o[0]:t.colors.outline.outStrokeColor),e.push(typeof o[1]=="string"?o[1]:t.colors.outline.outFillColor);break;case"filled":e.push(typeof o[0]=="string"?o[0]:t.colors.filled.outStrokeColor),e.push(typeof o[0]=="string"?o[0]:t.colors.filled.outStrokeColor),e.push(typeof o[1]=="string"?o[1]:t.colors.filled.outFillColor),e.push(typeof o[1]=="string"?o[1]:t.colors.filled.outFillColor);break;case"twoTone":e.push(typeof o[0]=="string"?o[0]:t.colors.twoTone.outStrokeColor),e.push(typeof o[1]=="string"?o[1]:t.colors.twoTone.outFillColor),e.push(typeof o[0]=="string"?o[0]:t.colors.twoTone.outStrokeColor),e.push(typeof o[1]=="string"?o[1]:t.colors.twoTone.outFillColor);break;case"multiColor":e.push(typeof o[0]=="string"?o[0]:t.colors.multiColor.outStrokeColor),e.push(typeof o[1]=="string"?o[1]:t.colors.multiColor.outFillColor),e.push(typeof o[2]=="string"?o[2]:t.colors.multiColor.innerStrokeColor),e.push(typeof o[3]=="string"?o[3]:t.colors.multiColor.innerFillColor);break}return{size:r?.size||t.size,strokeWidth:r?.strokeWidth||t.strokeWidth,strokeLinecap:r?.strokeLinecap||t.strokeLinecap,strokeLinejoin:r?.strokeLinejoin||t.strokeLinejoin,colors:e,svg:r?.svg||"",id:l}},k="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",g="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_",m=function(l,r){for(var t="",o=0,e=l.length,n,s,a,i=r?g:k;o<e;){if(n=l.charCodeAt(o++)&255,o===e){t+=i.charAt(n>>2),t+=i.charAt((n&3)<<4),t+="==";break}if(s=l.charCodeAt(o++),o===e){t+=i.charAt(n>>2),t+=i.charAt((n&3)<<4|(s&240)>>4),t+=i.charAt((s&15)<<2),t+="=";break}a=l.charCodeAt(o++),t+=i.charAt(n>>2),t+=i.charAt((n&3)<<4|(s&240)>>4),t+=i.charAt((s&15)<<2|(a&192)>>6),t+=i.charAt(a&63)}return t},y=function(l){var r="",t,o,e=l.length;for(t=0;t<e;t++)o=l.charCodeAt(t),o>=1&&o<=127?r+=l.charAt(t):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},w=v,p=function(){return w},S=function(l,r,t){return function(o){var e=p(),n=["".concat(e.prefix,"-icon")];n.push("".concat(e.prefix,"-icon-").concat(l)),r&&e.rtl&&n.push("".concat(e.prefix,"-icon-rtl")),o!=null&&o.spin&&n.push("".concat(e.prefix,"-icon-spin"));var s=C(f(),o,e),a=t(s),i=m(y(a)),h="data:image/svg+xml;base64,".concat(i);return o!=null&&o.base64?h:'<span class="'.concat(n.join(" "),`">
<img class="`).concat(e.prefix,'-icon-img" src="').concat(h,`" />
</span>`)}},d=function(l){var r,t,o,e,n,s,a,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 x="4.92847" y="13.2239" width="11" height="5" rx="2" transform="rotate(-46.0247 4.92847 13.2239)" stroke="`).concat((r=l.colors)===null||r===void 0?void 0:r[0],'" stroke-width="').concat(l.strokeWidth,`"/>
<rect x="19.3213" y="27.1108" width="11" height="5" rx="2" transform="rotate(-46.0247 19.3213 27.1108)" stroke="`).concat((t=l.colors)===null||t===void 0?void 0:t[0],'" stroke-width="').concat(l.strokeWidth,`"/>
<rect x="6.4436" y="18.8546" width="17" height="5" rx="2" transform="rotate(-46.0247 6.4436 18.8546)" stroke="`).concat((o=l.colors)===null||o===void 0?void 0:o[0],'" stroke-width="').concat(l.strokeWidth,`"/>
<rect x="13.6401" y="25.798" width="17" height="5" rx="2" transform="rotate(-46.0247 13.6401 25.798)" stroke="`).concat((e=l.colors)===null||e===void 0?void 0:e[0],'" stroke-width="').concat(l.strokeWidth,`"/>
<rect x="7.2644" y="25.2048" width="25" height="5" rx="2" transform="rotate(-46.0247 7.2644 25.2048)" stroke="`).concat((n=l.colors)===null||n===void 0?void 0:n[0],'" stroke-width="').concat(l.strokeWidth,`"/>
<path d="M25.0024 28.4237L29.1685 24.1058L43.5751 38.0061L39.409 42.3239L25.0024 28.4237Z" fill="`).concat((s=l.colors)===null||s===void 0?void 0:s[1],'" stroke="').concat((a=l.colors)===null||a===void 0?void 0:a[0],'" stroke-width="').concat(l.strokeWidth,'" stroke-linecap="').concat(l.strokeLinecap,'" stroke-linejoin="').concat(l.strokeLinejoin,`"/>
<path d="M21 40.25C21 42.3211 19.2091 44 17 44C14.7909 44 13 42.3211 13 40.25C13 38.1789 17 34 17 34C17 34 21 38.1789 21 40.25Z" stroke="`).concat((i=l.colors)===null||i===void 0?void 0:i[0],'" stroke-width="').concat(l.strokeWidth,'" stroke-linejoin="').concat(l.strokeLinejoin,`"/>
</svg>`)},x=S("byted-honey-one",!1,d);return u.default=x,u.getIconBytedHoneyOneSvgHtml=d,Object.defineProperty(u,"__esModule",{value:!0}),u}({});