UNPKG

@fe6/icon-img

Version:

Water Icon 的纯 HTML 图标

14 lines (13 loc) 4.96 kB
var IconsBytedThermometer=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"},f=function(){return"icon-"+((1+Math.random())*4294967296|0).toString(16).substring(1)},C=function(l,e,r){var o=e?.colors||[],t=[],n=e?.theme||r.theme;switch(n){case"outline":t.push(typeof o[0]=="string"?o[0]:r.colors.outline.outStrokeColor),t.push(typeof o[1]=="string"?o[1]:r.colors.outline.outFillColor),t.push(typeof o[0]=="string"?o[0]:r.colors.outline.outStrokeColor),t.push(typeof o[1]=="string"?o[1]:r.colors.outline.outFillColor);break;case"filled":t.push(typeof o[0]=="string"?o[0]:r.colors.filled.outStrokeColor),t.push(typeof o[0]=="string"?o[0]:r.colors.filled.outStrokeColor),t.push(typeof o[1]=="string"?o[1]:r.colors.filled.outFillColor),t.push(typeof o[1]=="string"?o[1]:r.colors.filled.outFillColor);break;case"twoTone":t.push(typeof o[0]=="string"?o[0]:r.colors.twoTone.outStrokeColor),t.push(typeof o[1]=="string"?o[1]:r.colors.twoTone.outFillColor),t.push(typeof o[0]=="string"?o[0]:r.colors.twoTone.outStrokeColor),t.push(typeof o[1]=="string"?o[1]:r.colors.twoTone.outFillColor);break;case"multiColor":t.push(typeof o[0]=="string"?o[0]:r.colors.multiColor.outStrokeColor),t.push(typeof o[1]=="string"?o[1]:r.colors.multiColor.outFillColor),t.push(typeof o[2]=="string"?o[2]:r.colors.multiColor.innerStrokeColor),t.push(typeof o[3]=="string"?o[3]:r.colors.multiColor.innerFillColor);break}return{size:e?.size||r.size,strokeWidth:e?.strokeWidth||r.strokeWidth,strokeLinecap:e?.strokeLinecap||r.strokeLinecap,strokeLinejoin:e?.strokeLinejoin||r.strokeLinejoin,colors:t,svg:e?.svg||"",id:l}},k="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",m="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_",g=function(l,e){for(var r="",o=0,t=l.length,n,s,c,i=e?m:k;o<t;){if(n=l.charCodeAt(o++)&255,o===t){r+=i.charAt(n>>2),r+=i.charAt((n&3)<<4),r+="==";break}if(s=l.charCodeAt(o++),o===t){r+=i.charAt(n>>2),r+=i.charAt((n&3)<<4|(s&240)>>4),r+=i.charAt((s&15)<<2),r+="=";break}c=l.charCodeAt(o++),r+=i.charAt(n>>2),r+=i.charAt((n&3)<<4|(s&240)>>4),r+=i.charAt((s&15)<<2|(c&192)>>6),r+=i.charAt(c&63)}return r},p=function(l){var e="",r,o,t=l.length;for(r=0;r<t;r++)o=l.charCodeAt(r),o>=1&&o<=127?e+=l.charAt(r):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,r){return function(o){var t=S(),n=["".concat(t.prefix,"-icon")];n.push("".concat(t.prefix,"-icon-").concat(l)),e&&t.rtl&&n.push("".concat(t.prefix,"-icon-rtl")),o!=null&&o.spin&&n.push("".concat(t.prefix,"-icon-spin"));var s=C(f(),o,t),c=r(s),i=g(p(c)),h="data:image/svg+xml;base64,".concat(i);return o!=null&&o.base64?h:'<span class="'.concat(n.join(" "),`"> <img class="`).concat(t.prefix,'-icon-img" src="').concat(h,`" /> </span>`)}},d=function(l){var e,r,o,t,n;return`<?xml version="1.0" encoding="UTF-8"?> <svg width="`.concat(l.size,'" height="').concat(l.size,`" viewBox="0 0 48 48" xmlns="http://www.w3.org/2000/svg"> <g> <rect width="48" height="48" fill="white" fill-opacity="0.01" stroke-linejoin="`).concat(l.strokeLinejoin,'" stroke-width="').concat(l.strokeWidth,`" stroke="none" fill-rule="evenodd"/> <g transform="translate(14.000000, 6.000000)"> <path d="M4,19.9992676 L4,4 C4,0.686291501 6.6862915,-2 10,-2 C13.3137085,-2 16,0.686291501 16,4 L16,19.9992676 C18.4288934,21.8236803 20,24.7283643 20,28 C20,33.5228475 15.5228475,38 10,38 C4.4771525,38 0,33.5228475 0,28 C0,24.7283643 1.5711066,21.8236803 4,19.9992676 Z" stroke="`).concat((e=l.colors)===null||e===void 0?void 0:e[0],'" fill="').concat((r=l.colors)===null||r===void 0?void 0:r[1],'" fill-rule="nonzero" stroke-linejoin="').concat(l.strokeLinejoin,'" stroke-width="').concat(l.strokeWidth,`"/> <path d="M10,11 L10,24" stroke="`).concat((o=l.colors)===null||o===void 0?void 0:o[2],'" stroke-linecap="').concat(l.strokeLinecap,'" stroke-linejoin="').concat(l.strokeLinejoin,'" stroke-width="').concat(l.strokeWidth,`" fill="none" fill-rule="evenodd"/> <circle stroke="`).concat((t=l.colors)===null||t===void 0?void 0:t[2],'" fill="').concat((n=l.colors)===null||n===void 0?void 0:n[3],'" fill-rule="nonzero" cx="10" cy="28" r="4" stroke-linejoin="').concat(l.strokeLinejoin,'" stroke-width="').concat(l.strokeWidth,`"/> </g>; </g>; </svg>`)},b=w("byted-thermometer",!1,d);return u.default=b,u.getIconBytedThermometerSvgHtml=d,Object.defineProperty(u,"__esModule",{value:!0}),u}({});