UNPKG

@fe6/icon-img

Version:

Water Icon 的纯 HTML 图标

9 lines (8 loc) 4.6 kB
var IconsBytedPieFive=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,r,e){var o=r?.colors||[],t=[],i=r?.theme||e.theme;switch(i){case"outline":t.push(typeof o[0]=="string"?o[0]:e.colors.outline.outStrokeColor),t.push(typeof o[1]=="string"?o[1]:e.colors.outline.outFillColor),t.push(typeof o[0]=="string"?o[0]:e.colors.outline.outStrokeColor),t.push(typeof o[1]=="string"?o[1]:e.colors.outline.outFillColor);break;case"filled":t.push(typeof o[0]=="string"?o[0]:e.colors.filled.outStrokeColor),t.push(typeof o[0]=="string"?o[0]:e.colors.filled.outStrokeColor),t.push(typeof o[1]=="string"?o[1]:e.colors.filled.outFillColor),t.push(typeof o[1]=="string"?o[1]:e.colors.filled.outFillColor);break;case"twoTone":t.push(typeof o[0]=="string"?o[0]:e.colors.twoTone.outStrokeColor),t.push(typeof o[1]=="string"?o[1]:e.colors.twoTone.outFillColor),t.push(typeof o[0]=="string"?o[0]:e.colors.twoTone.outStrokeColor),t.push(typeof o[1]=="string"?o[1]:e.colors.twoTone.outFillColor);break;case"multiColor":t.push(typeof o[0]=="string"?o[0]:e.colors.multiColor.outStrokeColor),t.push(typeof o[1]=="string"?o[1]:e.colors.multiColor.outFillColor),t.push(typeof o[2]=="string"?o[2]:e.colors.multiColor.innerStrokeColor),t.push(typeof o[3]=="string"?o[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:t,svg:r?.svg||"",id:l}},k="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",p="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_",g=function(l,r){for(var e="",o=0,t=l.length,i,s,c,n=r?p:k;o<t;){if(i=l.charCodeAt(o++)&255,o===t){e+=n.charAt(i>>2),e+=n.charAt((i&3)<<4),e+="==";break}if(s=l.charCodeAt(o++),o===t){e+=n.charAt(i>>2),e+=n.charAt((i&3)<<4|(s&240)>>4),e+=n.charAt((s&15)<<2),e+="=";break}c=l.charCodeAt(o++),e+=n.charAt(i>>2),e+=n.charAt((i&3)<<4|(s&240)>>4),e+=n.charAt((s&15)<<2|(c&192)>>6),e+=n.charAt(c&63)}return e},m=function(l){var r="",e,o,t=l.length;for(e=0;e<t;e++)o=l.charCodeAt(e),o>=1&&o<=127?r+=l.charAt(e):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},y=h,S=function(){return y},F=function(l,r,e){return function(o){var t=S(),i=["".concat(t.prefix,"-icon")];i.push("".concat(t.prefix,"-icon-").concat(l)),r&&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),c=e(s),n=g(m(c)),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 r,e,o;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"/> <circle cx="24" cy="24" r="20" stroke="`).concat((r=l.colors)===null||r===void 0?void 0:r[0],'" stroke-width="').concat(l.strokeWidth,'" stroke-linecap="').concat(l.strokeLinecap,'" stroke-linejoin="').concat(l.strokeLinejoin,`"/> <path d="M24 4C27.2624 4 30.4754 4.79809 33.3586 6.32469C36.2418 7.85128 38.7078 10.06 40.5416 12.7583C42.3754 15.4566 43.5212 18.5626 43.8792 21.8053C44.2372 25.0481 43.7965 28.3291 42.5955 31.3625C41.3945 34.3958 39.4697 37.0893 36.989 39.2081C34.5082 41.3269 31.5467 42.8067 28.3629 43.5183C25.179 44.23 21.8694 44.152 18.7225 43.2911C15.5757 42.4303 12.6873 40.8127 10.3091 38.5794L24 24V4Z" fill="`).concat((e=l.colors)===null||e===void 0?void 0:e[1],'" stroke="').concat((o=l.colors)===null||o===void 0?void 0:o[0],'" stroke-width="').concat(l.strokeWidth,'" stroke-linecap="').concat(l.strokeLinecap,'" stroke-linejoin="').concat(l.strokeLinejoin,`"/> </svg>`)},w=F("byted-pie-five",!1,d);return u.default=w,u.getIconBytedPieFiveSvgHtml=d,Object.defineProperty(u,"__esModule",{value:!0}),u}({});