UNPKG

@fe6/icon-img

Version:

Water Icon 的纯 HTML 图标

16 lines (15 loc) 5.18 kB
var IconsBytedMaslowPyramids=function(d){"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"},k=function(){return"icon-"+((1+Math.random())*4294967296|0).toString(16).substring(1)},f=function(r,e,t){var o=e?.colors||[],l=[],n=e?.theme||t.theme;switch(n){case"outline":l.push(typeof o[0]=="string"?o[0]:t.colors.outline.outStrokeColor),l.push(typeof o[1]=="string"?o[1]:t.colors.outline.outFillColor),l.push(typeof o[0]=="string"?o[0]:t.colors.outline.outStrokeColor),l.push(typeof o[1]=="string"?o[1]:t.colors.outline.outFillColor);break;case"filled":l.push(typeof o[0]=="string"?o[0]:t.colors.filled.outStrokeColor),l.push(typeof o[0]=="string"?o[0]:t.colors.filled.outStrokeColor),l.push(typeof o[1]=="string"?o[1]:t.colors.filled.outFillColor),l.push(typeof o[1]=="string"?o[1]:t.colors.filled.outFillColor);break;case"twoTone":l.push(typeof o[0]=="string"?o[0]:t.colors.twoTone.outStrokeColor),l.push(typeof o[1]=="string"?o[1]:t.colors.twoTone.outFillColor),l.push(typeof o[0]=="string"?o[0]:t.colors.twoTone.outStrokeColor),l.push(typeof o[1]=="string"?o[1]:t.colors.twoTone.outFillColor);break;case"multiColor":l.push(typeof o[0]=="string"?o[0]:t.colors.multiColor.outStrokeColor),l.push(typeof o[1]=="string"?o[1]:t.colors.multiColor.outFillColor),l.push(typeof o[2]=="string"?o[2]:t.colors.multiColor.innerStrokeColor),l.push(typeof o[3]=="string"?o[3]:t.colors.multiColor.innerFillColor);break}return{size:e?.size||t.size,strokeWidth:e?.strokeWidth||t.strokeWidth,strokeLinecap:e?.strokeLinecap||t.strokeLinecap,strokeLinejoin:e?.strokeLinejoin||t.strokeLinejoin,colors:l,svg:e?.svg||"",id:r}},C="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",g="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_",m=function(r,e){for(var t="",o=0,l=r.length,n,i,s,a=e?g:C;o<l;){if(n=r.charCodeAt(o++)&255,o===l){t+=a.charAt(n>>2),t+=a.charAt((n&3)<<4),t+="==";break}if(i=r.charCodeAt(o++),o===l){t+=a.charAt(n>>2),t+=a.charAt((n&3)<<4|(i&240)>>4),t+=a.charAt((i&15)<<2),t+="=";break}s=r.charCodeAt(o++),t+=a.charAt(n>>2),t+=a.charAt((n&3)<<4|(i&240)>>4),t+=a.charAt((i&15)<<2|(s&192)>>6),t+=a.charAt(s&63)}return t},p=function(r){var e="",t,o,l=r.length;for(t=0;t<l;t++)o=r.charCodeAt(t),o>=1&&o<=127?e+=r.charAt(t):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=v,w=function(){return y},S=function(r,e,t){return function(o){var l=w(),n=["".concat(l.prefix,"-icon")];n.push("".concat(l.prefix,"-icon-").concat(r)),e&&l.rtl&&n.push("".concat(l.prefix,"-icon-rtl")),o!=null&&o.spin&&n.push("".concat(l.prefix,"-icon-spin"));var i=f(k(),o,l),s=t(i),a=m(p(s)),h="data:image/svg+xml;base64,".concat(a);return o!=null&&o.base64?h:'<span class="'.concat(n.join(" "),`"> <img class="`).concat(l.prefix,'-icon-img" src="').concat(h,`" /> </span>`)}},u=function(r){var e,t,o,l,n,i,s;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"> <g clip-path="`,"url(#".concat(r.id,"img0)"),`"> <rect width="48" height="48" fill="white" fill-opacity="0.01"/> <path fill-rule="evenodd" clip-rule="evenodd" d="M24 4L15 19.9803H33L24 4Z" fill="`).concat((e=r.colors)===null||e===void 0?void 0:e[1],'" stroke="').concat((t=r.colors)===null||t===void 0?void 0:t[0],'" stroke-width="').concat(r.strokeWidth,'" stroke-linejoin="').concat(r.strokeLinejoin,`"/> <path d="M24 19.9805L24.0083 44.0001" stroke="`).concat((o=r.colors)===null||o===void 0?void 0:o[0],'" stroke-width="').concat(r.strokeWidth,'" stroke-linecap="').concat(r.strokeLinecap,`"/> <path d="M11.3466 25.9746L2 42.0001H17.0046" 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 d="M9.10059 30.9951H17.0049" stroke="`).concat((n=r.colors)===null||n===void 0?void 0:n[0],'" stroke-width="').concat(r.strokeWidth,'" stroke-linecap="').concat(r.strokeLinecap,`"/> <path d="M36.7481 25.9746L46.0947 42.0001H31.0004" 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,`"/> <path d="M39.0947 30.9951H31.1007" stroke="`).concat((s=r.colors)===null||s===void 0?void 0:s[0],'" stroke-width="').concat(r.strokeWidth,'" stroke-linecap="').concat(r.strokeLinecap,`"/> </g>; <defs/> </svg>`)},L=S("byted-maslow-pyramids",!1,u);return d.default=L,d.getIconBytedMaslowPyramidsSvgHtml=u,Object.defineProperty(d,"__esModule",{value:!0}),d}({});