UNPKG

@fe6/icon-img

Version:

Water Icon 的纯 HTML 图标

8 lines (7 loc) 5.48 kB
var IconsAntdSlack=function(C){"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"},h=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,a,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(a=l.charCodeAt(o++),o===e){r+=i.charAt(n>>2),r+=i.charAt((n&3)<<4|(a&240)>>4),r+=i.charAt((a&15)<<2),r+="=";break}u=l.charCodeAt(o++),r+=i.charAt(n>>2),r+=i.charAt((n&3)<<4|(a&240)>>4),r+=i.charAt((a&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=v,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 a=f(h(),o,e),u=r(a),i=g(m(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="M17.5875,0 C14.9375,0 12.79375,2.15 12.79375,4.8 C12.79375,6.06875 13.3,7.29375 14.19375,8.19375 C15.09375,9.09375 16.3125,9.6 17.5875,9.6 L22.38125,9.6 L22.38125,4.8 C22.38125,2.15625 20.2375,0.00625 17.5875,0 Z M17.5875,12.8 L4.79375,12.8 C2.14375,12.8 0,14.95 0,17.6 C0,20.25 2.15,22.4 4.79375,22.4 L17.58125,22.4 C20.23125,22.4 22.3750136,20.25 22.3750136,17.6 C22.38125,14.95 20.23125,12.8 17.5875,12.8 Z M30.375,22.4 C33.025,22.4 35.175,20.25 35.1687636,17.6 L35.1687636,4.8 C35.1687636,2.15 33.025,0 30.375,0 C27.725,0 25.58125,2.15 25.58125,4.8 L25.58125,17.6 C25.58125,20.25625 27.725,22.4 30.375,22.4 Z M47.9625,17.6 C47.9625,14.95 45.8125,12.8 43.16875,12.8 C40.525,12.8 38.375,14.95 38.375,17.6 L38.375,22.4 L43.16875,22.4 C45.8125,22.4 47.9625,20.25 47.9625,17.6 L47.9625,17.6 Z M43.1625,25.6 L30.375,25.6 C27.725,25.6 25.58125,27.75 25.58125,30.4 C25.58125,31.66875 26.0875,32.89375 26.98125,33.79375 C27.88125,34.69375 29.1,35.2 30.375,35.2 L43.1625,35.2 C45.8125,35.2 47.9562636,33.05 47.9562636,30.4 C47.9625,27.75 45.8125,25.60625 43.1625,25.6 L43.1625,25.6 Z M30.375,38.4 L25.58125,38.4 L25.58125,43.2 C25.58125,45.85 27.73125,48 30.375,48 C33.025,48 35.175,45.85 35.1687636,43.2 C35.175,40.55 33.025,38.40625 30.375,38.4 Z M17.5875,25.6 C14.9375,25.6 12.79375,27.75 12.79375,30.4 L12.79375,43.2 C12.79375,45.85 14.94375,48 17.5875,48 C20.2375,48 22.3875,45.85 22.3812636,43.2 L22.3812636,30.4 C22.3812636,29.13125 21.875,27.90625 20.98125,27.00625 C20.08125,26.10625 18.85625,25.6 17.5875,25.6 Z M0,30.4 C0,31.66875 0.50625,32.89375 1.4,33.79375 C2.3,34.69375 3.51875,35.2 4.79375,35.2 C7.44375,35.2 9.59375,33.05 9.58751359,30.4 L9.58751359,25.6 L4.79375,25.6 C2.15,25.6 0,27.75 0,30.4 Z"/> </svg>`)},y=A("antd-slack",!1,c);return C.default=y,C.getIconAntdSlackSvgHtml=c,Object.defineProperty(C,"__esModule",{value:!0}),C}({});