UNPKG

@fe6/icon-img

Version:

Water Icon 的纯 HTML 图标

8 lines (7 loc) 5.79 kB
var IconsAntdSlackSquare=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,i,u,a=t?k:p;o<e;){if(n=l.charCodeAt(o++)&255,o===e){r+=a.charAt(n>>2),r+=a.charAt((n&3)<<4),r+="==";break}if(i=l.charCodeAt(o++),o===e){r+=a.charAt(n>>2),r+=a.charAt((n&3)<<4|(i&240)>>4),r+=a.charAt((i&15)<<2),r+="=";break}u=l.charCodeAt(o++),r+=a.charAt(n>>2),r+=a.charAt((n&3)<<4|(i&240)>>4),r+=a.charAt((i&15)<<2|(u&192)>>6),r+=a.charAt(u&63)}return r},S=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=v,m=function(){return L},A=function(l,t,r){return function(o){var e=m(),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 i=f(h(),o,e),u=r(i),a=g(S(u)),d="data:image/svg+xml;base64,".concat(a);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="M46.205,0.125 L2.045,0.125 C0.983,0.125 0.125,0.983 0.125,2.045 L0.125,46.205 C0.125,47.267 0.983,48.125 2.045,48.125 L46.205,48.125 C47.267,48.125 48.125,47.267 48.125,46.205 L48.125,2.045 C48.125,0.983 47.267,0.125 46.205,0.125 Z M25.145,12.089 C25.145,10.421 26.495,9.065 28.163,9.065 C29.831,9.065 31.181,10.421 31.181,12.089 L31.181,20.153 C31.181,21.821 29.831,23.177 28.163,23.177 C26.495,23.177 25.145,21.821 25.145,20.153 L25.145,12.089 Z M15.095,28.217 C15.095,29.885 13.745,31.241 12.077,31.241 C11.279,31.241 10.511,30.923 9.941,30.353 C9.377,29.783 9.059,29.015 9.059,28.217 C9.059,26.549 10.409,25.193 12.077,25.193 L15.095,25.193 L15.095,28.217 Z M23.135,36.281 C23.135,37.949 21.785,39.305 20.117,39.305 C18.449,39.305 17.099,37.949 17.099,36.281 L17.099,28.217 C17.099,26.549 18.449,25.193 20.117,25.193 C20.915,25.193 21.683,25.511 22.253,26.081 C22.823,26.651 23.135,27.419 23.135,28.217 L23.135,36.281 Z M20.123,23.177 L12.083,23.177 C10.415,23.177 9.065,21.821 9.065,20.153 C9.065,18.485 10.415,17.129 12.083,17.129 L20.123,17.129 C21.791,17.129 23.141,18.485 23.141,20.153 C23.135,21.827 21.785,23.177 20.123,23.177 Z M20.123,15.113 C19.325,15.113 18.557,14.795 17.987,14.225 C17.417,13.655 17.105,12.893 17.105,12.089 C17.105,10.421 18.455,9.065 20.123,9.065 C21.791,9.065 23.141,10.421 23.141,12.089 L23.141,15.113 L20.123,15.113 L20.123,15.113 Z M28.163,39.305 C26.495,39.305 25.145,37.949 25.145,36.281 L25.145,33.257 L28.163,33.257 C29.831,33.257 31.181,34.613 31.181,36.281 C31.181,37.949 29.831,39.305 28.163,39.305 Z M36.203,31.241 L28.163,31.241 C27.365,31.241 26.597,30.923 26.027,30.353 C25.463,29.783 25.145,29.015 25.145,28.217 C25.145,26.549 26.495,25.193 28.163,25.193 L36.203,25.193 C37.871,25.193 39.221,26.549 39.221,28.217 C39.221,29.885 37.871,31.241 36.203,31.241 L36.203,31.241 Z M36.203,23.177 L33.185,23.177 L33.185,20.153 C33.185,18.485 34.535,17.129 36.203,17.129 C37.871,17.129 39.221,18.485 39.221,20.153 C39.221,21.821 37.871,23.177 36.203,23.177 Z"/> </svg>`)},y=A("antd-slack-square",!1,c);return C.default=y,C.getIconAntdSlackSquareSvgHtml=c,Object.defineProperty(C,"__esModule",{value:!0}),C}({});