UNPKG

@fe6/icon-img

Version:

Water Icon 的纯 HTML 图标

21 lines (20 loc) 6.76 kB
var IconsBytedCubeFive=function(k){"use strict";var L={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"},g=function(){return"icon-"+((1+Math.random())*4294967296|0).toString(16).substring(1)},j=function(o,r,e){var t=r?.colors||[],n=[],i=r?.theme||e.theme;switch(i){case"outline":n.push(typeof t[0]=="string"?t[0]:e.colors.outline.outStrokeColor),n.push(typeof t[1]=="string"?t[1]:e.colors.outline.outFillColor),n.push(typeof t[0]=="string"?t[0]:e.colors.outline.outStrokeColor),n.push(typeof t[1]=="string"?t[1]:e.colors.outline.outFillColor);break;case"filled":n.push(typeof t[0]=="string"?t[0]:e.colors.filled.outStrokeColor),n.push(typeof t[0]=="string"?t[0]:e.colors.filled.outStrokeColor),n.push(typeof t[1]=="string"?t[1]:e.colors.filled.outFillColor),n.push(typeof t[1]=="string"?t[1]:e.colors.filled.outFillColor);break;case"twoTone":n.push(typeof t[0]=="string"?t[0]:e.colors.twoTone.outStrokeColor),n.push(typeof t[1]=="string"?t[1]:e.colors.twoTone.outFillColor),n.push(typeof t[0]=="string"?t[0]:e.colors.twoTone.outStrokeColor),n.push(typeof t[1]=="string"?t[1]:e.colors.twoTone.outFillColor);break;case"multiColor":n.push(typeof t[0]=="string"?t[0]:e.colors.multiColor.outStrokeColor),n.push(typeof t[1]=="string"?t[1]:e.colors.multiColor.outFillColor),n.push(typeof t[2]=="string"?t[2]:e.colors.multiColor.innerStrokeColor),n.push(typeof t[3]=="string"?t[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:n,svg:r?.svg||"",id:o}},w="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",m="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_",y=function(o,r){for(var e="",t=0,n=o.length,i,c,a,l=r?m:w;t<n;){if(i=o.charCodeAt(t++)&255,t===n){e+=l.charAt(i>>2),e+=l.charAt((i&3)<<4),e+="==";break}if(c=o.charCodeAt(t++),t===n){e+=l.charAt(i>>2),e+=l.charAt((i&3)<<4|(c&240)>>4),e+=l.charAt((c&15)<<2),e+="=";break}a=o.charCodeAt(t++),e+=l.charAt(i>>2),e+=l.charAt((i&3)<<4|(c&240)>>4),e+=l.charAt((c&15)<<2|(a&192)>>6),e+=l.charAt(a&63)}return e},b=function(o){var r="",e,t,n=o.length;for(e=0;e<n;e++)t=o.charCodeAt(e),t>=1&&t<=127?r+=o.charAt(e):t>2047?(r+=String.fromCharCode(224|t>>12&15),r+=String.fromCharCode(128|t>>6&63),r+=String.fromCharCode(128|t>>0&63)):(r+=String.fromCharCode(192|t>>6&31),r+=String.fromCharCode(128|t>>0&63));return r},S=L,F=function(){return S},W=function(o,r,e){return function(t){var n=F(),i=["".concat(n.prefix,"-icon")];i.push("".concat(n.prefix,"-icon-").concat(o)),r&&n.rtl&&i.push("".concat(n.prefix,"-icon-rtl")),t!=null&&t.spin&&i.push("".concat(n.prefix,"-icon-spin"));var c=j(g(),t,n),a=e(c),l=y(b(a)),d="data:image/svg+xml;base64,".concat(l);return t!=null&&t.base64?d:'<span class="'.concat(i.join(" "),`"> <img class="`).concat(n.prefix,'-icon-img" src="').concat(d,`" /> </span>`)}},f=function(o){var r,e,t,n,i,c,a,l,d,u,h,v,C;return`<?xml version="1.0" encoding="UTF-8"?> <svg width="`.concat(o.size,'" height="').concat(o.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="M48 0H0V48H48V0Z" fill="white" fill-opacity="0.01"/> <path d="M30 27L24 44" stroke="`).concat((r=o.colors)===null||r===void 0?void 0:r[0],'" stroke-width="').concat(o.strokeWidth,'" stroke-linecap="').concat(o.strokeLinecap,'" stroke-linejoin="').concat(o.strokeLinejoin,`"/> <path d="M18 27L24 44" stroke="`).concat((e=o.colors)===null||e===void 0?void 0:e[0],'" stroke-width="').concat(o.strokeWidth,'" stroke-linecap="').concat(o.strokeLinecap,'" stroke-linejoin="').concat(o.strokeLinejoin,`"/> <path d="M18 27L30 27" stroke="`).concat((t=o.colors)===null||t===void 0?void 0:t[0],'" stroke-width="').concat(o.strokeWidth,'" stroke-linecap="').concat(o.strokeLinecap,'" stroke-linejoin="').concat(o.strokeLinejoin,`"/> <path d="M41 34L30 27" stroke="`).concat((n=o.colors)===null||n===void 0?void 0:n[0],'" stroke-width="').concat(o.strokeWidth,'" stroke-linecap="').concat(o.strokeLinecap,'" stroke-linejoin="').concat(o.strokeLinejoin,`"/> <path d="M41 14L30 27" stroke="`).concat((i=o.colors)===null||i===void 0?void 0:i[0],'" stroke-width="').concat(o.strokeWidth,'" stroke-linecap="').concat(o.strokeLinecap,'" stroke-linejoin="').concat(o.strokeLinejoin,`"/> <path d="M41 14L24 17" stroke="`).concat((c=o.colors)===null||c===void 0?void 0:c[0],'" stroke-width="').concat(o.strokeWidth,'" stroke-linecap="').concat(o.strokeLinecap,'" stroke-linejoin="').concat(o.strokeLinejoin,`"/> <path d="M30 27L24 17" stroke="`).concat((a=o.colors)===null||a===void 0?void 0:a[0],'" stroke-width="').concat(o.strokeWidth,'" stroke-linecap="').concat(o.strokeLinecap,'" stroke-linejoin="').concat(o.strokeLinejoin,`"/> <path d="M24 4V17" stroke="`).concat((l=o.colors)===null||l===void 0?void 0:l[0],'" stroke-width="').concat(o.strokeWidth,'" stroke-linecap="').concat(o.strokeLinecap,'" stroke-linejoin="').concat(o.strokeLinejoin,`"/> <path d="M7 14L24 17" stroke="`).concat((d=o.colors)===null||d===void 0?void 0:d[0],'" stroke-width="').concat(o.strokeWidth,'" stroke-linecap="').concat(o.strokeLinecap,'" stroke-linejoin="').concat(o.strokeLinejoin,`"/> <path d="M18 27L24 17" stroke="`).concat((u=o.colors)===null||u===void 0?void 0:u[0],'" stroke-width="').concat(o.strokeWidth,'" stroke-linecap="').concat(o.strokeLinecap,'" stroke-linejoin="').concat(o.strokeLinejoin,`"/> <path d="M18 27L7 14" stroke="`).concat((h=o.colors)===null||h===void 0?void 0:h[0],'" stroke-width="').concat(o.strokeWidth,'" stroke-linecap="').concat(o.strokeLinecap,'" stroke-linejoin="').concat(o.strokeLinejoin,`"/> <path d="M18 27L7 34" stroke="`).concat((v=o.colors)===null||v===void 0?void 0:v[0],'" stroke-width="').concat(o.strokeWidth,'" stroke-linecap="').concat(o.strokeLinecap,'" stroke-linejoin="').concat(o.strokeLinejoin,`"/> <path d="M41.3207 14L24.0002 4L6.67969 14V34L24.0002 44L41.3207 34V14Z" stroke="`).concat((C=o.colors)===null||C===void 0?void 0:C[0],'" stroke-width="').concat(o.strokeWidth,'" stroke-linecap="').concat(o.strokeLinecap,'" stroke-linejoin="').concat(o.strokeLinejoin,`"/> </svg>`)},M=W("byted-cube-five",!1,f);return k.default=M,k.getIconBytedCubeFiveSvgHtml=f,Object.defineProperty(k,"__esModule",{value:!0}),k}({});