@fe6/icon-img
Version:
Water Icon 的纯 HTML 图标
24 lines (23 loc) • 7.38 kB
JavaScript
var IconsBytedTriangleRuler=function(u){"use strict";var w={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"},y=function(){return"icon-"+((1+Math.random())*4294967296|0).toString(16).substring(1)},S=function(o,r,t){var e=r?.colors||[],l=[],n=r?.theme||t.theme;switch(n){case"outline":l.push(typeof e[0]=="string"?e[0]:t.colors.outline.outStrokeColor),l.push(typeof e[1]=="string"?e[1]:t.colors.outline.outFillColor),l.push(typeof e[0]=="string"?e[0]:t.colors.outline.outStrokeColor),l.push(typeof e[1]=="string"?e[1]:t.colors.outline.outFillColor);break;case"filled":l.push(typeof e[0]=="string"?e[0]:t.colors.filled.outStrokeColor),l.push(typeof e[0]=="string"?e[0]:t.colors.filled.outStrokeColor),l.push(typeof e[1]=="string"?e[1]:t.colors.filled.outFillColor),l.push(typeof e[1]=="string"?e[1]:t.colors.filled.outFillColor);break;case"twoTone":l.push(typeof e[0]=="string"?e[0]:t.colors.twoTone.outStrokeColor),l.push(typeof e[1]=="string"?e[1]:t.colors.twoTone.outFillColor),l.push(typeof e[0]=="string"?e[0]:t.colors.twoTone.outStrokeColor),l.push(typeof e[1]=="string"?e[1]:t.colors.twoTone.outFillColor);break;case"multiColor":l.push(typeof e[0]=="string"?e[0]:t.colors.multiColor.outStrokeColor),l.push(typeof e[1]=="string"?e[1]:t.colors.multiColor.outFillColor),l.push(typeof e[2]=="string"?e[2]:t.colors.multiColor.innerStrokeColor),l.push(typeof e[3]=="string"?e[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:l,svg:r?.svg||"",id:o}},_="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",M="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_",W=function(o,r){for(var t="",e=0,l=o.length,n,c,a,i=r?M:_;e<l;){if(n=o.charCodeAt(e++)&255,e===l){t+=i.charAt(n>>2),t+=i.charAt((n&3)<<4),t+="==";break}if(c=o.charCodeAt(e++),e===l){t+=i.charAt(n>>2),t+=i.charAt((n&3)<<4|(c&240)>>4),t+=i.charAt((c&15)<<2),t+="=";break}a=o.charCodeAt(e++),t+=i.charAt(n>>2),t+=i.charAt((n&3)<<4|(c&240)>>4),t+=i.charAt((c&15)<<2|(a&192)>>6),t+=i.charAt(a&63)}return t},b=function(o){var r="",t,e,l=o.length;for(t=0;t<l;t++)e=o.charCodeAt(t),e>=1&&e<=127?r+=o.charAt(t):e>2047?(r+=String.fromCharCode(224|e>>12&15),r+=String.fromCharCode(128|e>>6&63),r+=String.fromCharCode(128|e>>0&63)):(r+=String.fromCharCode(192|e>>6&31),r+=String.fromCharCode(128|e>>0&63));return r},H=w,F=function(){return H},p=function(o,r,t){return function(e){var l=F(),n=["".concat(l.prefix,"-icon")];n.push("".concat(l.prefix,"-icon-").concat(o)),r&&l.rtl&&n.push("".concat(l.prefix,"-icon-rtl")),e!=null&&e.spin&&n.push("".concat(l.prefix,"-icon-spin"));var c=S(y(),e,l),a=t(c),i=W(b(a)),d="data:image/svg+xml;base64,".concat(i);return e!=null&&e.base64?d:'<span class="'.concat(n.join(" "),`">
<img class="`).concat(l.prefix,'-icon-img" src="').concat(d,`" />
</span>`)}},m=function(o){var r,t,e,l,n,c,a,i,d,k,v,h,f,C,L,g,j;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="M44 44L4 4V44H44Z" 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 fill-rule="evenodd" clip-rule="evenodd" d="M13 35H25L13 23V35Z" fill="`).concat((t=o.colors)===null||t===void 0?void 0:t[1],`"/>
<path fill-rule="evenodd" clip-rule="evenodd" d="M13 35H25L13 23V35Z" fill="`).concat((e=o.colors)===null||e===void 0?void 0:e[1],`"/>
<path fill-rule="evenodd" clip-rule="evenodd" d="M13 35H25L13 23V35Z" fill="`).concat((l=o.colors)===null||l===void 0?void 0:l[1],`"/>
<path fill-rule="evenodd" clip-rule="evenodd" d="M13 35H25L13 23V35Z" fill="`).concat((n=o.colors)===null||n===void 0?void 0:n[1],`"/>
<path fill-rule="evenodd" clip-rule="evenodd" d="M13 35H25L13 23V35Z" 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 fill-rule="evenodd" clip-rule="evenodd" d="M13 35H25L13 23V35Z" 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 fill-rule="evenodd" clip-rule="evenodd" d="M13 35H25L13 23V35Z" 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 fill-rule="evenodd" clip-rule="evenodd" d="M13 35H25L13 23V35Z" 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="M30 44V41" stroke="`).concat((k=o.colors)===null||k===void 0?void 0:k[0],'" stroke-width="').concat(o.strokeWidth,'" stroke-linecap="').concat(o.strokeLinecap,'" stroke-linejoin="').concat(o.strokeLinejoin,`"/>
<path d="M24 44V41" 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="M18 44V41" 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="M12 44V41" stroke="`).concat((f=o.colors)===null||f===void 0?void 0:f[0],'" stroke-width="').concat(o.strokeWidth,'" stroke-linecap="').concat(o.strokeLinecap,'" stroke-linejoin="').concat(o.strokeLinejoin,`"/>
<path d="M4 36H7" 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="M4 30H7" 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="M4 24H7" stroke="`).concat((g=o.colors)===null||g===void 0?void 0:g[0],'" stroke-width="').concat(o.strokeWidth,'" stroke-linecap="').concat(o.strokeLinecap,'" stroke-linejoin="').concat(o.strokeLinejoin,`"/>
<path d="M4 18H7" stroke="`).concat((j=o.colors)===null||j===void 0?void 0:j[0],'" stroke-width="').concat(o.strokeWidth,'" stroke-linecap="').concat(o.strokeLinecap,'" stroke-linejoin="').concat(o.strokeLinejoin,`"/>
</svg>`)},A=p("byted-triangle-ruler",!1,m);return u.default=A,u.getIconBytedTriangleRulerSvgHtml=m,Object.defineProperty(u,"__esModule",{value:!0}),u}({});