@fe6/icon-img
Version:
Water Icon 的纯 HTML 图标
10 lines (9 loc) • 5.15 kB
JavaScript
var IconsBytedWindmill=function(d){"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"},f=function(){return"icon-"+((1+Math.random())*4294967296|0).toString(16).substring(1)},k=function(r,t,e){var o=t?.colors||[],l=[],n=t?.theme||e.theme;switch(n){case"outline":l.push(typeof o[0]=="string"?o[0]:e.colors.outline.outStrokeColor),l.push(typeof o[1]=="string"?o[1]:e.colors.outline.outFillColor),l.push(typeof o[0]=="string"?o[0]:e.colors.outline.outStrokeColor),l.push(typeof o[1]=="string"?o[1]:e.colors.outline.outFillColor);break;case"filled":l.push(typeof o[0]=="string"?o[0]:e.colors.filled.outStrokeColor),l.push(typeof o[0]=="string"?o[0]:e.colors.filled.outStrokeColor),l.push(typeof o[1]=="string"?o[1]:e.colors.filled.outFillColor),l.push(typeof o[1]=="string"?o[1]:e.colors.filled.outFillColor);break;case"twoTone":l.push(typeof o[0]=="string"?o[0]:e.colors.twoTone.outStrokeColor),l.push(typeof o[1]=="string"?o[1]:e.colors.twoTone.outFillColor),l.push(typeof o[0]=="string"?o[0]:e.colors.twoTone.outStrokeColor),l.push(typeof o[1]=="string"?o[1]:e.colors.twoTone.outFillColor);break;case"multiColor":l.push(typeof o[0]=="string"?o[0]:e.colors.multiColor.outStrokeColor),l.push(typeof o[1]=="string"?o[1]:e.colors.multiColor.outFillColor),l.push(typeof o[2]=="string"?o[2]:e.colors.multiColor.innerStrokeColor),l.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:l,svg:t?.svg||"",id:r}},C="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",m="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_",L=function(r,t){for(var e="",o=0,l=r.length,n,s,c,i=t?m:C;o<l;){if(n=r.charCodeAt(o++)&255,o===l){e+=i.charAt(n>>2),e+=i.charAt((n&3)<<4),e+="==";break}if(s=r.charCodeAt(o++),o===l){e+=i.charAt(n>>2),e+=i.charAt((n&3)<<4|(s&240)>>4),e+=i.charAt((s&15)<<2),e+="=";break}c=r.charCodeAt(o++),e+=i.charAt(n>>2),e+=i.charAt((n&3)<<4|(s&240)>>4),e+=i.charAt((s&15)<<2|(c&192)>>6),e+=i.charAt(c&63)}return e},g=function(r){var t="",e,o,l=r.length;for(e=0;e<l;e++)o=r.charCodeAt(e),o>=1&&o<=127?t+=r.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},p=h,y=function(){return p},S=function(r,t,e){return function(o){var l=y(),n=["".concat(l.prefix,"-icon")];n.push("".concat(l.prefix,"-icon-").concat(r)),t&&l.rtl&&n.push("".concat(l.prefix,"-icon-rtl")),o!=null&&o.spin&&n.push("".concat(l.prefix,"-icon-spin"));var s=k(f(),o,l),c=e(s),i=L(g(c)),v="data:image/svg+xml;base64,".concat(i);return o!=null&&o.base64?v:'<span class="'.concat(n.join(" "),`">
<img class="`).concat(l.prefix,'-icon-img" src="').concat(v,`" />
</span>`)}},u=function(r){var t,e,o,l,n,s,c,i;return`<?xml version="1.0" encoding="UTF-8"?>
<svg width="`.concat(r.size,'" height="').concat(r.size,`" viewBox="0 0 48 48" fill="none" xmlns="http://www.w3.org/2000/svg">
<path fill-rule="evenodd" clip-rule="evenodd" d="M24 23.9917L23.9707 13.9958L23.9415 4L12 14V24L24 23.9917Z" fill="`).concat((t=r.colors)===null||t===void 0?void 0:t[1],'" stroke="').concat((e=r.colors)===null||e===void 0?void 0:e[0],'" stroke-width="').concat(r.strokeWidth,'" stroke-linecap="').concat(r.strokeLinecap,'" stroke-linejoin="').concat(r.strokeLinejoin,`"/>
<path fill-rule="evenodd" clip-rule="evenodd" d="M24.0083 24L34.0042 23.9707L44 23.9415L34 12L24 12L24.0083 24Z" fill="`).concat((o=r.colors)===null||o===void 0?void 0:o[1],'" stroke="').concat((l=r.colors)===null||l===void 0?void 0:l[0],'" stroke-width="').concat(r.strokeWidth,'" stroke-linecap="').concat(r.strokeLinecap,'" stroke-linejoin="').concat(r.strokeLinejoin,`"/>
<path fill-rule="evenodd" clip-rule="evenodd" d="M24 24.0083L24.0293 34.0042L24.0585 44L36 34V24L24 24.0083Z" fill="`).concat((n=r.colors)===null||n===void 0?void 0:n[1],'" stroke="').concat((s=r.colors)===null||s===void 0?void 0:s[0],'" stroke-width="').concat(r.strokeWidth,'" stroke-linecap="').concat(r.strokeLinecap,'" stroke-linejoin="').concat(r.strokeLinejoin,`"/>
<path fill-rule="evenodd" clip-rule="evenodd" d="M23.9917 24L13.9958 24.0293L4 24.0585L14 36L24 36L23.9917 24Z" fill="`).concat((c=r.colors)===null||c===void 0?void 0:c[1],'" stroke="').concat((i=r.colors)===null||i===void 0?void 0:i[0],'" stroke-width="').concat(r.strokeWidth,'" stroke-linecap="').concat(r.strokeLinecap,'" stroke-linejoin="').concat(r.strokeLinejoin,`"/>
</svg>`)},w=S("byted-windmill",!1,u);return d.default=w,d.getIconBytedWindmillSvgHtml=u,Object.defineProperty(d,"__esModule",{value:!0}),d}({});