UNPKG

@fe6/icon-img

Version:

Water Icon 的纯 HTML 图标

9 lines (8 loc) 4.61 kB
var IconsBytedMoreThree=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}},p="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",k="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_",g=function(l,e){for(var r="",o=0,t=l.length,i,s,u,n=e?k:p;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=g(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;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 d="M24 44C35.0457 44 44 35.0457 44 24C44 12.9543 35.0457 4 24 4C12.9543 4 4 12.9543 4 24C4 35.0457 12.9543 44 24 44Z" 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,'" stroke-linejoin="').concat(l.strokeLinejoin,`"/> <path fill-rule="evenodd" clip-rule="evenodd" d="M21.5 14C21.5 15.3807 22.6193 16.5 24 16.5C25.3807 16.5 26.5 15.3807 26.5 14C26.5 12.6193 25.3807 11.5 24 11.5C22.6193 11.5 21.5 12.6193 21.5 14ZM21.5 24C21.5 25.3807 22.6193 26.5 24 26.5C25.3807 26.5 26.5 25.3807 26.5 24C26.5 22.6193 25.3807 21.5 24 21.5C22.6193 21.5 21.5 22.6193 21.5 24ZM24 36.5C22.6193 36.5 21.5 35.3807 21.5 34C21.5 32.6193 22.6193 31.5 24 31.5C25.3807 31.5 26.5 32.6193 26.5 34C26.5 35.3807 25.3807 36.5 24 36.5Z" fill="`).concat((o=l.colors)===null||o===void 0?void 0:o[2],`"/> </svg>`)},w=b("byted-more-three",!1,d);return c.default=w,c.getIconBytedMoreThreeSvgHtml=d,Object.defineProperty(c,"__esModule",{value:!0}),c}({});