@fe6/icon-img
Version:
Water Icon 的纯 HTML 图标
21 lines (20 loc) • 6.99 kB
JavaScript
var IconsBytedLightHouse=function(k){"use strict";var m={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-_",_=function(o,r){for(var e="",t=0,n=o.length,i,c,s,l=r?W:S;t<n;){if(i=o.charCodeAt(t++)&255,t===n){e+=l.charAt(i>>2),e+=l.charAt((i&3)<<4),e+="==";break}if(c=o.charCodeAt(t++),t===n){e+=l.charAt(i>>2),e+=l.charAt((i&3)<<4|(c&240)>>4),e+=l.charAt((c&15)<<2),e+="=";break}s=o.charCodeAt(t++),e+=l.charAt(i>>2),e+=l.charAt((i&3)<<4|(c&240)>>4),e+=l.charAt((c&15)<<2|(s&192)>>6),e+=l.charAt(s&63)}return e},H=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=m,M=function(){return b},F=function(o,r,e){return function(t){var n=M(),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 c=y(w(),t,n),s=e(c),l=_(H(s)),d="data:image/svg+xml;base64,".concat(l);return t!=null&&t.base64?d:'<span class="'.concat(i.join(" "),`">
<img class="`).concat(n.prefix,'-icon-img" src="').concat(d,`" />
</span>`)}},j=function(o){var r,e,t,n,i,c,s,l,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">
<path d="M6 44H42" stroke="`).concat((r=o.colors)===null||r===void 0?void 0:r[0],'" stroke-width="').concat(o.strokeWidth,'" stroke-linecap="').concat(o.strokeLinecap,'" stroke-linejoin="').concat(o.strokeLinejoin,`"/>
<path d="M17 20H31" 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="M19 20H24H29L32 44H16L19 20Z" fill="`).concat((t=o.colors)===null||t===void 0?void 0:t[1],'" stroke="').concat((n=o.colors)===null||n===void 0?void 0:n[0],'" stroke-width="').concat(o.strokeWidth,'" stroke-linejoin="').concat(o.strokeLinejoin,`"/>
<path d="M19 9L21 20H27L29 9" stroke="`).concat((i=o.colors)===null||i===void 0?void 0:i[0],'" stroke-width="').concat(o.strokeWidth,'" stroke-linecap="').concat(o.strokeLinecap,'" stroke-linejoin="').concat(o.strokeLinejoin,`"/>
<path d="M32 12L29 9L24 4L19 9L16 12" 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="M37 7L40 4" 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 d="M11 7L8 4" 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="M37 19L40 22" 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 d="M11 19L8 22" stroke="`).concat((u=o.colors)===null||u===void 0?void 0:u[0],'" stroke-width="').concat(o.strokeWidth,'" stroke-linecap="').concat(o.strokeLinecap,'" stroke-linejoin="').concat(o.strokeLinejoin,`"/>
<path d="M38 13H42" stroke="`).concat((h=o.colors)===null||h===void 0?void 0:h[0],'" stroke-width="').concat(o.strokeWidth,'" stroke-linecap="').concat(o.strokeLinecap,'" stroke-linejoin="').concat(o.strokeLinejoin,`"/>
<path d="M10 13H6" stroke="`).concat((v=o.colors)===null||v===void 0?void 0:v[0],'" stroke-width="').concat(o.strokeWidth,'" stroke-linecap="').concat(o.strokeLinecap,'" stroke-linejoin="').concat(o.strokeLinejoin,`"/>
<path d="M18 28L30 28" stroke="`).concat((f=o.colors)===null||f===void 0?void 0:f[2],'" stroke-width="').concat(o.strokeWidth,'" stroke-linecap="').concat(o.strokeLinecap,'" stroke-linejoin="').concat(o.strokeLinejoin,`"/>
<path d="M17 36H31" 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="M29 20L32 44" stroke="`).concat((L=o.colors)===null||L===void 0?void 0:L[0],'" stroke-width="').concat(o.strokeWidth,'" stroke-linejoin="').concat(o.strokeLinejoin,`"/>
<path d="M19 20L16 44" stroke="`).concat((g=o.colors)===null||g===void 0?void 0:g[0],'" stroke-width="').concat(o.strokeWidth,'" stroke-linejoin="').concat(o.strokeLinejoin,`"/>
</svg>`)},A=F("byted-light-house",!1,j);return k.default=A,k.getIconBytedLightHouseSvgHtml=j,Object.defineProperty(k,"__esModule",{value:!0}),k}({});