@fe6/icon-img
Version:
Water Icon 的纯 HTML 图标
10 lines (9 loc) • 6.2 kB
JavaScript
var IconsAntdCoffee=function(C){"use strict";var f={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"},v=function(){return"icon-"+((1+Math.random())*4294967296|0).toString(16).substring(1)},h=function(l,t,r){var o=t?.colors||[],e=[],n=t?.theme||r.theme;switch(n){case"outline":e.push(typeof o[0]=="string"?o[0]:r.colors.outline.outStrokeColor),e.push(typeof o[1]=="string"?o[1]:r.colors.outline.outFillColor),e.push(typeof o[0]=="string"?o[0]:r.colors.outline.outStrokeColor),e.push(typeof o[1]=="string"?o[1]:r.colors.outline.outFillColor);break;case"filled":e.push(typeof o[0]=="string"?o[0]:r.colors.filled.outStrokeColor),e.push(typeof o[0]=="string"?o[0]:r.colors.filled.outStrokeColor),e.push(typeof o[1]=="string"?o[1]:r.colors.filled.outFillColor),e.push(typeof o[1]=="string"?o[1]:r.colors.filled.outFillColor);break;case"twoTone":e.push(typeof o[0]=="string"?o[0]:r.colors.twoTone.outStrokeColor),e.push(typeof o[1]=="string"?o[1]:r.colors.twoTone.outFillColor),e.push(typeof o[0]=="string"?o[0]:r.colors.twoTone.outStrokeColor),e.push(typeof o[1]=="string"?o[1]:r.colors.twoTone.outFillColor);break;case"multiColor":e.push(typeof o[0]=="string"?o[0]:r.colors.multiColor.outStrokeColor),e.push(typeof o[1]=="string"?o[1]:r.colors.multiColor.outFillColor),e.push(typeof o[2]=="string"?o[2]:r.colors.multiColor.innerStrokeColor),e.push(typeof o[3]=="string"?o[3]:r.colors.multiColor.innerFillColor);break}return{size:t?.size||r.size,strokeWidth:t?.strokeWidth||r.strokeWidth,strokeLinecap:t?.strokeLinecap||r.strokeLinecap,strokeLinejoin:t?.strokeLinejoin||r.strokeLinejoin,colors:e,svg:t?.svg||"",id:l}},p="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",g="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_",L=function(l,t){for(var r="",o=0,e=l.length,n,s,u,i=t?g:p;o<e;){if(n=l.charCodeAt(o++)&255,o===e){r+=i.charAt(n>>2),r+=i.charAt((n&3)<<4),r+="==";break}if(s=l.charCodeAt(o++),o===e){r+=i.charAt(n>>2),r+=i.charAt((n&3)<<4|(s&240)>>4),r+=i.charAt((s&15)<<2),r+="=";break}u=l.charCodeAt(o++),r+=i.charAt(n>>2),r+=i.charAt((n&3)<<4|(s&240)>>4),r+=i.charAt((s&15)<<2|(u&192)>>6),r+=i.charAt(u&63)}return r},k=function(l){var t="",r,o,e=l.length;for(r=0;r<e;r++)o=l.charCodeAt(r),o>=1&&o<=127?t+=l.charAt(r):o>2047?(t+=String.fromCharCode(224|o>>12&15),t+=String.fromCharCode(128|o>>6&63),t+=String.fromCharCode(128|o>>0&63)):(t+=String.fromCharCode(192|o>>6&31),t+=String.fromCharCode(128|o>>0&63));return t},m=f,S=function(){return m},y=function(l,t,r){return function(o){var e=S(),n=["".concat(e.prefix,"-icon")];n.push("".concat(e.prefix,"-icon-").concat(l)),t&&e.rtl&&n.push("".concat(e.prefix,"-icon-rtl")),o!=null&&o.spin&&n.push("".concat(e.prefix,"-icon-spin"));var s=h(v(),o,e),u=r(s),i=L(k(u)),d="data:image/svg+xml;base64,".concat(i);return o!=null&&o.base64?d:'<span class="'.concat(n.join(" "),`">
<img class="`).concat(e.prefix,'-icon-img" src="').concat(d,`" />
</span>`)}},c=function(l){var t,r,o;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"/>
<path d="M8.37499909,19.921875 L31.625,19.921875 L31.625,35.0162442 C30.6692503,38.18532 29.521074,40.4030512 28.1804711,41.6694378 C26.8398682,42.9358244 24.5974195,43.9210118 21.453125,44.625 C19.2370286,44.671248 17.5935104,44.5433007 16.5225702,44.2411581 C15.4516301,43.9390156 14.184768,43.2458621 12.721984,42.1616976 C11.1057801,40.7793514 10.0307589,39.6214355 9.49692026,38.6879498 C8.96308163,37.7544641 8.58910791,36.378626 8.37499909,34.5604355 L8.37499909,19.921875 Z" fill="`).concat((t=l.colors)===null||t===void 0?void 0:t[1],`"/>
<polygon fill="`).concat((r=l.colors)===null||r===void 0?void 0:r[1],`" points="34.7678571 22.546875 40.625 22.546875 40.625 31.546875 34.625 31.546875"/>
<path d="M11.890625,13.171875 C12.8234375,13.171875 13.578125,12.4171875 13.578125,11.484375 L13.578125,1.6875 C13.578125,0.7546875 12.8234375,0 11.890625,0 C10.9578125,0 10.203125,0.7546875 10.203125,1.6875 L10.203125,11.484375 C10.203125,12.4171875 10.9578125,13.171875 11.890625,13.171875 Z M40.625,19.921875 L35,19.921875 C35,18.05625 33.490625,16.546875 31.625,16.546875 L8.375,16.546875 C6.509375,16.546875 5,18.05625 5,19.921875 L5,31.546875 C5,31.70625 5.009375,31.8609375 5.0328125,32.0109375 C5.009375,32.3390625 5,32.6671875 5,33 C5,41.2828125 11.7171875,48 20,48 C27.5046875,48 33.7203125,42.4921875 34.8265625,35.296875 L40.625,35.296875 C42.490625,35.296875 44,33.7875 44,31.921875 L44,23.296875 C44,21.43125 42.490625,19.921875 40.625,19.921875 Z M31.625,31.921875 L31.5734375,31.921875 C31.60625,32.278125 31.625,32.634375 31.625,33 C31.625,39.421875 26.421875,44.625 20,44.625 C13.578125,44.625 8.375,39.421875 8.375,33 C8.375,32.634375 8.39375,32.278125 8.4265625,31.921875 L8.375,31.921875 L8.375,19.921875 L31.625,19.921875 L31.625,31.921875 Z M40.625,31.546875 L35.375,31.546875 L35.375,23.296875 L40.625,23.296875 L40.625,31.546875 Z M27.734375,13.171875 C28.6671875,13.171875 29.421875,12.4171875 29.421875,11.484375 L29.421875,1.6875 C29.421875,0.7546875 28.6671875,0 27.734375,0 C26.8015625,0 26.046875,0.7546875 26.046875,1.6875 L26.046875,11.484375 C26.046875,12.4171875 26.8015625,13.171875 27.734375,13.171875 Z M19.765625,13.171875 C20.6984375,13.171875 21.453125,12.4171875 21.453125,11.484375 L21.453125,1.6875 C21.453125,0.7546875 20.6984375,0 19.765625,0 C18.8328125,0 18.078125,0.7546875 18.078125,1.6875 L18.078125,11.484375 C18.078125,12.4171875 18.8328125,13.171875 19.765625,13.171875 Z" fill="`).concat((o=l.colors)===null||o===void 0?void 0:o[0],`"/>
</svg>`)},A=y("antd-coffee",!1,c);return C.default=A,C.getIconAntdCoffeeSvgHtml=c,Object.defineProperty(C,"__esModule",{value:!0}),C}({});