UNPKG

@fe6/icon-img

Version:

Water Icon 的纯 HTML 图标

8 lines (7 loc) 5.51 kB
var IconsAntdCluster=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}},L="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",p="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_",g=function(l,t){for(var r="",o=0,e=l.length,n,s,u,i=t?p:L;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=v,S=function(){return m},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(h(),o,e),u=r(s),i=g(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 d="M47.5,33 L44.125,33 L44.125,24.25 L26.125,24.25 L26.125,18.5 L41,18.5 C41.55,18.5 42,18.05 42,17.5 L42,1 C42,0.45 41.55,0 41,0 L7,0 C6.45,0 6,0.45 6,1 L6,17.5 C6,18.05 6.45,18.5 7,18.5 L21.875,18.5 L21.875,24.25 L3.875,24.25 L3.875,33 L0.5,33 C0.225,33 0,33.225 0,33.5 L0,44.5 C0,44.775 0.225,45 0.5,45 L11.5,45 C11.775,45 12,44.775 12,44.5 L12,33.5 C12,33.225 11.775,33 11.5,33 L8.125,33 L8.125,28.5 L21.875,28.5 L21.875,33 L18.5,33 C18.225,33 18,33.225 18,33.5 L18,44.5 C18,44.775 18.225,45 18.5,45 L29.5,45 C29.775,45 30,44.775 30,44.5 L30,33.5 C30,33.225 29.775,33 29.5,33 L26.125,33 L26.125,28.5 L39.875,28.5 L39.875,33 L36.5,33 C36.225,33 36,33.225 36,33.5 L36,44.5 C36,44.775 36.225,45 36.5,45 L47.5,45 C47.775,45 48,44.775 48,44.5 L48,33.5 C48,33.225 47.775,33 47.5,33 Z M8,40.83125 C8,40.925 7.925,41 7.83125,41 L4.1625,41 C4.06875,41 3.99375,40.925 3.99375,40.83125 L3.99375,37.1625 C3.99375,37.06875 4.06875,36.99375 4.1625,36.99375 L7.83125,36.99375 C7.925,36.99375 8,37.06875 8,37.1625 L8,40.83125 Z M26,40.83125 C26,40.925 25.925,41 25.83125,41 L22.1625,41 C22.06875,41 21.99375,40.925 21.99375,40.83125 L21.99375,37.1625 C21.99375,37.06875 22.06875,36.99375 22.1625,36.99375 L25.83125,36.99375 C25.925,36.99375 26,37.06875 26,37.1625 L26,40.83125 Z M10,14.5 L10,4 L38,4 L38,14.5 L10,14.5 Z M44,40.83125 C44,40.925 43.925,41 43.83125,41 L40.1625,41 C40.06875,41 39.99375,40.925 39.99375,40.83125 L39.99375,37.1625 C39.99375,37.06875 40.06875,36.99375 40.1625,36.99375 L43.83125,36.99375 C43.925,36.99375 44,37.06875 44,37.1625 L44,40.83125 Z M14.5,9.25 C14.5,10.6307119 15.6192881,11.75 17,11.75 C18.3807119,11.75 19.5,10.6307119 19.5,9.25 C19.5,7.86928813 18.3807119,6.75 17,6.75 C15.6192881,6.75 14.5,7.86928813 14.5,9.25 Z" fill="`).concat((t=l.colors)===null||t===void 0?void 0:t[0],`"/> </svg>`)},y=A("antd-cluster",!1,c);return C.default=y,C.getIconAntdClusterSvgHtml=c,Object.defineProperty(C,"__esModule",{value:!0}),C}({});