@fe6/icon-img
Version:
Water Icon 的纯 HTML 图标
10 lines (9 loc) • 6.64 kB
JavaScript
var IconsAntdProfile=function(u){"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"},f=function(){return"icon-"+((1+Math.random())*4294967296|0).toString(16).substring(1)},h=function(l,t,r){var o=t?.colors||[],e=[],i=t?.theme||r.theme;switch(i){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,i,s,C,n=t?p:L;o<e;){if(i=l.charCodeAt(o++)&255,o===e){r+=n.charAt(i>>2),r+=n.charAt((i&3)<<4),r+="==";break}if(s=l.charCodeAt(o++),o===e){r+=n.charAt(i>>2),r+=n.charAt((i&3)<<4|(s&240)>>4),r+=n.charAt((s&15)<<2),r+="=";break}C=l.charCodeAt(o++),r+=n.charAt(i>>2),r+=n.charAt((i&3)<<4|(s&240)>>4),r+=n.charAt((s&15)<<2|(C&192)>>6),r+=n.charAt(C&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(),i=["".concat(e.prefix,"-icon")];i.push("".concat(e.prefix,"-icon-").concat(l)),t&&e.rtl&&i.push("".concat(e.prefix,"-icon-rtl")),o!=null&&o.spin&&i.push("".concat(e.prefix,"-icon-spin"));var s=h(f(),o,e),C=r(s),n=g(k(C)),d="data:image/svg+xml;base64,".concat(n);return o!=null&&o.base64?d:'<span class="'.concat(i.join(" "),`">
<img class="`).concat(e.prefix,'-icon-img" src="').concat(d,`" />
</span>`)}},c=function(l){var t,r,o;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="M46.08,0 L1.92,0 C0.858,0 0,0.858 0,1.92 L0,46.08 C0,47.142 0.858,48 1.92,48 L46.08,48 C47.142,48 48,47.142 48,46.08 L48,1.92 C48,0.858 47.142,0 46.08,0 Z M43.68,43.68 L4.32,43.68 L4.32,4.32 L43.68,4.32 L43.68,43.68 Z" fill="`).concat((t=l.colors)===null||t===void 0?void 0:t[0],`"/>
<path d="M4.32,43.68 L43.68,43.68 L43.68,4.32 L4.32,4.32 L4.32,43.68 Z M22.32,13.92 C22.32,13.656 22.536,13.44 22.8,13.44 L33.84,13.44 C34.104,13.44 34.32,13.656 34.32,13.92 L34.32,16.8 C34.32,17.064 34.104,17.28 33.84,17.28 L22.8,17.28 C22.536,17.28 22.32,17.064 22.32,16.8 L22.32,13.92 Z M22.32,22.56 C22.32,22.296 22.536,22.08 22.8,22.08 L33.84,22.08 C34.104,22.08 34.32,22.296 34.32,22.56 L34.32,25.44 C34.32,25.704 34.104,25.92 33.84,25.92 L22.8,25.92 C22.536,25.92 22.32,25.704 22.32,25.44 L22.32,22.56 Z M22.32,31.2 C22.32,30.936 22.536,30.72 22.8,30.72 L33.84,30.72 C34.104,30.72 34.32,30.936 34.32,31.2 L34.32,34.08 C34.32,34.344 34.104,34.56 33.84,34.56 L22.8,34.56 C22.536,34.56 22.32,34.344 22.32,34.08 L22.32,31.2 Z M16.08,12.96 C17.406,12.96 18.48,14.034 18.48,15.36 C18.48,16.686 17.406,17.76 16.08,17.76 C14.754,17.76 13.68,16.686 13.68,15.36 C13.68,14.034 14.754,12.96 16.08,12.96 Z M16.08,21.6 C17.406,21.6 18.48,22.674 18.48,24 C18.48,25.326 17.406,26.4 16.08,26.4 C14.754,26.4 13.68,25.326 13.68,24 C13.68,22.674 14.754,21.6 16.08,21.6 Z M16.08,30.24 C17.406,30.24 18.48,31.314 18.48,32.64 C18.48,33.966 17.406,35.04 16.08,35.04 C14.754,35.04 13.68,33.966 13.68,32.64 C13.68,31.314 14.754,30.24 16.08,30.24 Z" fill="`).concat((r=l.colors)===null||r===void 0?void 0:r[1],`"/>
<path d="M13.68,32.64 C13.68,33.9654834 14.7545166,35.04 16.08,35.04 C17.4054834,35.04 18.48,33.9654834 18.48,32.64 C18.48,31.3145166 17.4054834,30.24 16.08,30.24 C14.7545166,30.24 13.68,31.3145166 13.68,32.64 L13.68,32.64 Z M13.68,24 C13.68,25.3254834 14.7545166,26.4 16.08,26.4 C17.4054834,26.4 18.48,25.3254834 18.48,24 C18.48,22.6745166 17.4054834,21.6 16.08,21.6 C14.7545166,21.6 13.68,22.6745166 13.68,24 Z M13.68,15.36 C13.68,16.6854834 14.7545166,17.76 16.08,17.76 C17.4054834,17.76 18.48,16.6854834 18.48,15.36 C18.48,14.0345166 17.4054834,12.96 16.08,12.96 C14.7545166,12.96 13.68,14.0345166 13.68,15.36 L13.68,15.36 Z M22.8,34.56 L33.84,34.56 C34.104,34.56 34.32,34.344 34.32,34.08 L34.32,31.2 C34.32,30.936 34.104,30.72 33.84,30.72 L22.8,30.72 C22.536,30.72 22.32,30.936 22.32,31.2 L22.32,34.08 C22.32,34.344 22.536,34.56 22.8,34.56 Z M22.8,25.92 L33.84,25.92 C34.104,25.92 34.32,25.704 34.32,25.44 L34.32,22.56 C34.32,22.296 34.104,22.08 33.84,22.08 L22.8,22.08 C22.536,22.08 22.32,22.296 22.32,22.56 L22.32,25.44 C22.32,25.704 22.536,25.92 22.8,25.92 Z M22.8,17.28 L33.84,17.28 C34.104,17.28 34.32,17.064 34.32,16.8 L34.32,13.92 C34.32,13.656 34.104,13.44 33.84,13.44 L22.8,13.44 C22.536,13.44 22.32,13.656 22.32,13.92 L22.32,16.8 C22.32,17.064 22.536,17.28 22.8,17.28 Z" fill="`).concat((o=l.colors)===null||o===void 0?void 0:o[2],`"/>
</svg>`)},y=A("antd-profile",!1,c);return u.default=y,u.getIconAntdProfileSvgHtml=c,Object.defineProperty(u,"__esModule",{value:!0}),u}({});