UNPKG

@fe6/icon-img

Version:

Water Icon 的纯 HTML 图标

8 lines (7 loc) 5.66 kB
var IconsAntdChrome=function(C){"use strict";var h={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)},f=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-_",m=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},L=h,S=function(){return L},A=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=f(v(),o,e),u=r(s),i=m(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;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 fill="`).concat((t=l.colors)===null||t===void 0?void 0:t[0],`" d="M47.9769342,24.0057665 L47.9769342,23.9884671 C47.9769342,10.7371456 37.2397886,0 23.9884671,0 C10.7371456,0 0,10.7371456 0,23.9884671 L0,24.0115329 C0,37.2628544 10.7371456,48 23.9884671,48 C37.2397886,48 47.9769342,37.2628544 47.9769342,24.0115329 L47.9769342,23.9942335 L47.9769342,24.0057665 L47.9769342,24.0057665 Z M47.5990485,19.7039885 L47.6590485,19.8942816 L47.5990485,19.7039885 Z M33.4858241,31.2657376 C36.5708794,26.5257088 36.5132148,20.3440654 32.8457472,16.0595867 L42.2104757,15.5752042 C43.3925997,18.1355118 44.0557424,20.9841422 44.0557424,23.9884671 C44.0557424,34.6679481 35.7174435,43.3983662 25.1936569,44.0211437 L33.4858241,31.2657376 Z M23.9884671,32.0788083 C19.5194618,32.0788083 15.9038924,28.4632388 15.9038924,23.9942335 C15.9038924,19.5136953 19.5194618,15.9096588 23.9884671,15.9096588 C28.4574724,15.9096588 32.0730418,19.5194618 32.0730418,23.9884671 C32.0730418,28.4574724 28.4574724,32.0788083 23.9884671,32.0788083 Z M45.2782316,12.9514656 L45.1052379,12.6227775 L45.2782316,12.9514656 Z M23.9884671,3.92119173 C30.9831812,3.92119173 37.1475252,7.50216242 40.7342624,12.9283998 L25.5338779,12.1268621 C19.911581,11.798174 14.566074,14.9639596 12.7150408,20.2633349 L7.60019222,12.3978856 C11.2388275,7.27150408 17.2244113,3.92119173 23.9884671,3.92119173 Z M0.374819798,28.2441134 C1.87409899,36.6054781 7.70398847,43.4675637 15.4598751,46.4142239 C7.70398847,43.4790966 1.87409899,36.6170111 0.374819798,28.2441134 Z M3.92119173,23.9884671 C3.92119173,20.7650168 4.68236425,17.7203268 6.03171552,15.0216242 L12.9341663,28.5958674 C15.4771744,33.5953868 20.8572802,36.6516098 26.427679,35.6078808 L22.1604998,43.975012 C11.9308025,43.0466122 3.92119173,34.4545891 3.92119173,23.9884671 Z M22.6448823,47.9529193 C22.8755406,47.9729193 23.1061989,47.9929193 23.3368573,48.0029193 C23.1061989,47.9829193 22.8755406,47.9729193 22.6448823,47.9529193 Z"/> </svg>`)},y=A("antd-chrome",!1,c);return C.default=y,C.getIconAntdChromeSvgHtml=c,Object.defineProperty(C,"__esModule",{value:!0}),C}({});