@fe6/icon-img
Version:
Water Icon 的纯 HTML 图标
12 lines (11 loc) • 4.98 kB
JavaScript
var IconsBytedMaterialThree=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"},C=function(){return"icon-"+((1+Math.random())*4294967296|0).toString(16).substring(1)},f=function(l,e,t){var o=e?.colors||[],r=[],i=e?.theme||t.theme;switch(i){case"outline":r.push(typeof o[0]=="string"?o[0]:t.colors.outline.outStrokeColor),r.push(typeof o[1]=="string"?o[1]:t.colors.outline.outFillColor),r.push(typeof o[0]=="string"?o[0]:t.colors.outline.outStrokeColor),r.push(typeof o[1]=="string"?o[1]:t.colors.outline.outFillColor);break;case"filled":r.push(typeof o[0]=="string"?o[0]:t.colors.filled.outStrokeColor),r.push(typeof o[0]=="string"?o[0]:t.colors.filled.outStrokeColor),r.push(typeof o[1]=="string"?o[1]:t.colors.filled.outFillColor),r.push(typeof o[1]=="string"?o[1]:t.colors.filled.outFillColor);break;case"twoTone":r.push(typeof o[0]=="string"?o[0]:t.colors.twoTone.outStrokeColor),r.push(typeof o[1]=="string"?o[1]:t.colors.twoTone.outFillColor),r.push(typeof o[0]=="string"?o[0]:t.colors.twoTone.outStrokeColor),r.push(typeof o[1]=="string"?o[1]:t.colors.twoTone.outFillColor);break;case"multiColor":r.push(typeof o[0]=="string"?o[0]:t.colors.multiColor.outStrokeColor),r.push(typeof o[1]=="string"?o[1]:t.colors.multiColor.outFillColor),r.push(typeof o[2]=="string"?o[2]:t.colors.multiColor.innerStrokeColor),r.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:r,svg:e?.svg||"",id:l}},k="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",g="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_",p=function(l,e){for(var t="",o=0,r=l.length,i,a,c,n=e?g:k;o<r;){if(i=l.charCodeAt(o++)&255,o===r){t+=n.charAt(i>>2),t+=n.charAt((i&3)<<4),t+="==";break}if(a=l.charCodeAt(o++),o===r){t+=n.charAt(i>>2),t+=n.charAt((i&3)<<4|(a&240)>>4),t+=n.charAt((a&15)<<2),t+="=";break}c=l.charCodeAt(o++),t+=n.charAt(i>>2),t+=n.charAt((i&3)<<4|(a&240)>>4),t+=n.charAt((a&15)<<2|(c&192)>>6),t+=n.charAt(c&63)}return t},m=function(l){var e="",t,o,r=l.length;for(t=0;t<r;t++)o=l.charCodeAt(t),o>=1&&o<=127?e+=l.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,S=function(){return y},w=function(l,e,t){return function(o){var r=S(),i=["".concat(r.prefix,"-icon")];i.push("".concat(r.prefix,"-icon-").concat(l)),e&&r.rtl&&i.push("".concat(r.prefix,"-icon-rtl")),o!=null&&o.spin&&i.push("".concat(r.prefix,"-icon-spin"));var a=f(C(),o,r),c=t(a),n=p(m(c)),h="data:image/svg+xml;base64,".concat(n);return o!=null&&o.base64?h:'<span class="'.concat(i.join(" "),`">
<img class="`).concat(r.prefix,'-icon-img" src="').concat(h,`" />
</span>`)}},d=function(l){var e,t,o,r;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"/>
<rect width="48" height="48" fill="white" fill-opacity="0.01"/>
<path d="M9 15V9.56389C9 8.67237 9.08702 8.34908 9.25044 8.02315C9.41385 7.69723 9.65365 7.44144 9.95921 7.26713C10.2648 7.09283 10.5678 7 11.4036 7H36.5964C37.4322 7 37.7352 7.09283 38.0408 7.26713C38.3463 7.44144 38.5862 7.69723 38.7496 8.02315C38.913 8.34908 39 8.67237 39 9.56389V15" stroke="`).concat((e=l.colors)===null||e===void 0?void 0:e[0],'" stroke-width="').concat(l.strokeWidth,'" stroke-linecap="').concat(l.strokeLinecap,'" stroke-linejoin="').concat(l.strokeLinejoin,`"/>
<path d="M5 15H43V41H5V15Z" stroke="`).concat((t=l.colors)===null||t===void 0?void 0:t[0],'" stroke-width="').concat(l.strokeWidth,'" stroke-linejoin="').concat(l.strokeLinejoin,`"/>
<path fill-rule="evenodd" clip-rule="evenodd" d="M13 26C14.6569 26 16 24.6569 16 23C16 21.3431 14.6569 20 13 20C11.3431 20 10 21.3431 10 23C10 24.6569 11.3431 26 13 26Z" fill="`).concat((o=l.colors)===null||o===void 0?void 0:o[0],`"/>
<path d="M5.56885 40.39L14.9999 30L19.9999 34L25.9999 27L42.3937 40.39" 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,`"/>
</svg>`)},L=w("byted-material-three",!1,d);return u.default=L,u.getIconBytedMaterialThreeSvgHtml=d,Object.defineProperty(u,"__esModule",{value:!0}),u}({});