UNPKG

@fe6/icon-img

Version:

Water Icon 的纯 HTML 图标

8 lines (7 loc) 5.01 kB
var IconsAntdShrink=function(c){"use strict";var C={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+/",k="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_",g=function(l,t){for(var r="",o=0,e=l.length,n,s,u,i=t?k: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},m=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},S=C,L=function(){return S},A=function(l,t,r){return function(o){var e=L(),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=g(m(u)),h="data:image/svg+xml;base64,".concat(i);return o!=null&&o.base64?h:'<span class="'.concat(n.join(" "),`"> <img class="`).concat(e.prefix,'-icon-img" src="').concat(h,`" /> </span>`)}},d=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.8491961,3.05935957 L44.9397598,0.149923263 C44.737881,-0.049974421 44.4126668,-0.049974421 44.210788,0.149923263 L34.0503397,10.3168226 L30.5215998,6.78808282 C30.3826764,6.64923012 30.1765857,6.60204809 29.9910886,6.66662854 C29.8055915,6.731209 29.6733605,6.89617714 29.6507043,7.0912835 L28.1347009,19.2902725 C28.0959944,19.6257286 28.3733908,19.903125 28.7088468,19.8644185 L40.914287,18.3484151 C41.3400581,18.2968065 41.5142373,17.7807202 41.2174876,17.4775195 L37.6887478,13.9487797 L47.8556472,3.78188034 C48.0491796,3.58834799 48.0491796,3.259343 47.8491961,3.05935957 Z M19.2902725,28.1347009 L7.08483242,29.6507043 C6.65906126,29.7023129 6.48488214,30.2248502 6.78163174,30.5215998 L10.3103716,34.0503397 L0.149923263,44.210788 C-0.049974421,44.4126668 -0.049974421,44.737881 0.149923263,44.9397598 L3.05935957,47.8491961 C3.259343,48.0491796 3.58834799,48.0491796 3.78833142,47.8491961 L13.9552308,37.6822967 L17.4839706,41.2110366 C17.6228941,41.3498893 17.8289848,41.3970713 18.0144819,41.3324908 C18.1999789,41.2679104 18.33221,41.1029423 18.3548662,40.9078359 L19.8644185,28.7088468 C19.886074,28.5509213 19.8325899,28.3919599 19.7198747,28.2792447 C19.6071595,28.1665295 19.4481981,28.1130454 19.2902725,28.1347009 Z"/> </svg>`)},y=A("antd-shrink",!1,d);return c.default=y,c.getIconAntdShrinkSvgHtml=d,Object.defineProperty(c,"__esModule",{value:!0}),c}({});