@fe6/icon-img
Version:
Water Icon 的纯 HTML 图标
9 lines (8 loc) • 5.95 kB
JavaScript
var IconsAntdPushpin=function(c){"use strict";var h={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+/",g="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_",L=function(l,t){for(var r="",o=0,e=l.length,n,s,u,i=t?g: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},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=h,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(v(),o,e),u=r(s),i=L(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,r;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="M21.6255319,14.1510638 L20.0617021,15.7148936 L17.8659574,15.4723404 C17.2531915,15.4021277 16.6340426,15.3702128 16.0212766,15.3702128 C14.1702128,15.3702128 12.3510638,15.6702128 10.6148936,16.2702128 C9.7212766,16.5765957 8.86595745,16.9595745 8.04255319,17.412766 L30.5808511,39.9638298 C32.2239526,36.9673595 32.9016351,33.5365916 32.5212766,30.1404255 L32.2787234,27.9446809 L33.8425532,26.3808511 L42.3829787,17.8404255 L30.1595745,5.61702128 L21.6255319,14.1510638 Z" fill="`).concat((t=l.colors)===null||t===void 0?void 0:t[1],`"/>
<path d="M47.3808511,16.3468085 L31.6531915,0.619148936 C31.2382979,0.204255319 30.6957447,0 30.1531915,0 C29.6106383,0 29.0680851,0.204255319 28.6531915,0.619148936 L18.3702128,10.9085106 C17.5914894,10.8191489 16.806383,10.7808511 16.0212766,10.7808511 C11.3489362,10.7808511 6.67659574,12.3191489 2.84042553,15.3957447 C2.37060531,15.7729879 2.0833987,16.332244 2.05051593,16.9338769 C2.01763316,17.5355099 2.24217778,18.1227362 2.66808511,18.5489362 L14.2659574,30.1468085 L0.517021277,43.8829787 C0.348539867,44.050407 0.244559923,44.2719295 0.223404255,44.5085106 L0.00638297872,46.8829787 C-0.0510638298,47.4829787 0.427659574,47.993617 1.0212766,47.993617 C1.05319149,47.993617 1.08510638,47.993617 1.11702128,47.987234 L3.49148936,47.7702128 C3.72765957,47.7510638 3.95106383,47.6425532 4.11702128,47.4765957 L17.8659574,33.7276596 L29.4638298,45.3255319 C29.8787234,45.7404255 30.4212766,45.9446809 30.9638298,45.9446809 C31.5829787,45.9446809 32.1957447,45.6765957 32.6170213,45.1531915 C36.2106383,40.6659574 37.7042553,35.0489362 37.0978723,29.6170213 L47.3808511,19.3340426 C48.2042553,18.5170213 48.2042553,17.1765957 47.3808511,16.3468085 Z M33.8425532,26.3808511 L32.2787234,27.9446809 L32.5212766,30.1404255 C32.9016351,33.5365916 32.2239526,36.9673595 30.5808511,39.9638298 L8.04255319,17.412766 C8.86595745,16.9595745 9.7212766,16.5765957 10.6148936,16.2702128 C12.3510638,15.6702128 14.1702128,15.3702128 16.0212766,15.3702128 C16.6340426,15.3702128 17.2531915,15.4021277 17.8659574,15.4723404 L20.0617021,15.7148936 L21.6255319,14.1510638 L30.1595745,5.61702128 L42.3829787,17.8404255 L33.8425532,26.3808511 Z" fill="`).concat((r=l.colors)===null||r===void 0?void 0:r[0],`"/>
</svg>`)},y=A("antd-pushpin",!1,C);return c.default=y,c.getIconAntdPushpinSvgHtml=C,Object.defineProperty(c,"__esModule",{value:!0}),c}({});