UNPKG

@fe6/icon-img

Version:

Water Icon 的纯 HTML 图标

14 lines (13 loc) 5.63 kB
var IconsBytedSunny=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"},h=function(){return"icon-"+((1+Math.random())*4294967296|0).toString(16).substring(1)},f=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+/",p="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_",g=function(l,r){for(var t="",o=0,e=l.length,n,i,a,s=r?p:k;o<e;){if(n=l.charCodeAt(o++)&255,o===e){t+=s.charAt(n>>2),t+=s.charAt((n&3)<<4),t+="==";break}if(i=l.charCodeAt(o++),o===e){t+=s.charAt(n>>2),t+=s.charAt((n&3)<<4|(i&240)>>4),t+=s.charAt((i&15)<<2),t+="=";break}a=l.charCodeAt(o++),t+=s.charAt(n>>2),t+=s.charAt((n&3)<<4|(i&240)>>4),t+=s.charAt((i&15)<<2|(a&192)>>6),t+=s.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},m=v,S=function(){return m},w=function(l,r,t){return function(o){var e=S(),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 i=f(h(),o,e),a=t(i),s=g(y(a)),C="data:image/svg+xml;base64,".concat(s);return o!=null&&o.base64?C:'<span class="'.concat(n.join(" "),`"> <img class="`).concat(e.prefix,'-icon-img" src="').concat(C,`" /> </span>`)}},d=function(l){var r,t,o,e,n,i,a;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="M30.7826 24.5652C34.5285 24.5652 37.5652 21.5285 37.5652 17.7826C37.5652 14.0367 34.5285 11 30.7826 11C27.4338 11 24.6518 13.427 24.0996 16.618" 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="M33 7C34.1046 7 35 6.10457 35 5C35 3.89543 34.1046 3 33 3C31.8954 3 31 3.89543 31 5C31 6.10457 31.8954 7 33 7Z" fill="`).concat((t=l.colors)===null||t===void 0?void 0:t[0],`"/> <path d="M42 12C43.1046 12 44 11.1046 44 10C44 8.89543 43.1046 8 42 8C40.8954 8 40 8.89543 40 10C40 11.1046 40.8954 12 42 12Z" fill="`).concat((o=l.colors)===null||o===void 0?void 0:o[0],`"/> <path d="M44 21C45.1046 21 46 20.1046 46 19C46 17.8954 45.1046 17 44 17C42.8954 17 42 17.8954 42 19C42 20.1046 42.8954 21 44 21Z" fill="`).concat((e=l.colors)===null||e===void 0?void 0:e[0],`"/> <path d="M22 10C23.1046 10 24 9.10457 24 8C24 6.89543 23.1046 6 22 6C20.8954 6 20 6.89543 20 8C20 9.10457 20.8954 10 22 10Z" fill="`).concat((n=l.colors)===null||n===void 0?void 0:n[0],`"/> <path d="M9.45455 39.9942C6.14242 37.461 4 33.4278 4 28.8851C4 21.2166 10.1052 15 17.6364 15C23.9334 15 29.2336 19.3462 30.8015 25.2533C32.0353 24.6159 33.431 24.2567 34.9091 24.2567C39.9299 24.2567 44 28.4011 44 33.5135C44 37.3094 41.7562 40.5716 38.5455 42" stroke="`).concat((i=l.colors)===null||i===void 0?void 0:i[0],'" stroke-width="').concat(l.strokeWidth,'" stroke-linecap="').concat(l.strokeLinecap,'" stroke-linejoin="').concat(l.strokeLinejoin,`"/> <path d="M22.2426 24.7574C21.1569 23.6716 19.6569 23 18 23C14.6863 23 12 25.6863 12 29C12 30.6569 12.6716 32.1569 13.7574 33.2426" 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,`"/> </svg>`)},b=w("byted-sunny",!1,d);return u.default=b,u.getIconBytedSunnySvgHtml=d,Object.defineProperty(u,"__esModule",{value:!0}),u}({});