UNPKG

@fe6/icon-img

Version:

Water Icon 的纯 HTML 图标

11 lines (10 loc) 4.57 kB
var IconsBytedThreeTriangles=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"},f=function(){return"icon-"+((1+Math.random())*4294967296|0).toString(16).substring(1)},C=function(l,e,r){var o=e?.colors||[],t=[],n=e?.theme||r.theme;switch(n){case"outline":t.push(typeof o[0]=="string"?o[0]:r.colors.outline.outStrokeColor),t.push(typeof o[1]=="string"?o[1]:r.colors.outline.outFillColor),t.push(typeof o[0]=="string"?o[0]:r.colors.outline.outStrokeColor),t.push(typeof o[1]=="string"?o[1]:r.colors.outline.outFillColor);break;case"filled":t.push(typeof o[0]=="string"?o[0]:r.colors.filled.outStrokeColor),t.push(typeof o[0]=="string"?o[0]:r.colors.filled.outStrokeColor),t.push(typeof o[1]=="string"?o[1]:r.colors.filled.outFillColor),t.push(typeof o[1]=="string"?o[1]:r.colors.filled.outFillColor);break;case"twoTone":t.push(typeof o[0]=="string"?o[0]:r.colors.twoTone.outStrokeColor),t.push(typeof o[1]=="string"?o[1]:r.colors.twoTone.outFillColor),t.push(typeof o[0]=="string"?o[0]:r.colors.twoTone.outStrokeColor),t.push(typeof o[1]=="string"?o[1]:r.colors.twoTone.outFillColor);break;case"multiColor":t.push(typeof o[0]=="string"?o[0]:r.colors.multiColor.outStrokeColor),t.push(typeof o[1]=="string"?o[1]:r.colors.multiColor.outFillColor),t.push(typeof o[2]=="string"?o[2]:r.colors.multiColor.innerStrokeColor),t.push(typeof o[3]=="string"?o[3]:r.colors.multiColor.innerFillColor);break}return{size:e?.size||r.size,strokeWidth:e?.strokeWidth||r.strokeWidth,strokeLinecap:e?.strokeLinecap||r.strokeLinecap,strokeLinejoin:e?.strokeLinejoin||r.strokeLinejoin,colors:t,svg:e?.svg||"",id:l}},p="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",g="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_",k=function(l,e){for(var r="",o=0,t=l.length,n,s,u,i=e?g:p;o<t;){if(n=l.charCodeAt(o++)&255,o===t){r+=i.charAt(n>>2),r+=i.charAt((n&3)<<4),r+="==";break}if(s=l.charCodeAt(o++),o===t){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},m=function(l){var e="",r,o,t=l.length;for(r=0;r<t;r++)o=l.charCodeAt(r),o>=1&&o<=127?e+=l.charAt(r):o>2047?(e+=String.fromCharCode(224|o>>12&15),e+=String.fromCharCode(128|o>>6&63),e+=String.fromCharCode(128|o>>0&63)):(e+=String.fromCharCode(192|o>>6&31),e+=String.fromCharCode(128|o>>0&63));return e},L=v,y=function(){return L},S=function(l,e,r){return function(o){var t=y(),n=["".concat(t.prefix,"-icon")];n.push("".concat(t.prefix,"-icon-").concat(l)),e&&t.rtl&&n.push("".concat(t.prefix,"-icon-rtl")),o!=null&&o.spin&&n.push("".concat(t.prefix,"-icon-spin"));var s=C(f(),o,t),u=r(s),i=k(m(u)),h="data:image/svg+xml;base64,".concat(i);return o!=null&&o.base64?h:'<span class="'.concat(n.join(" "),`"> <img class="`).concat(t.prefix,'-icon-img" src="').concat(h,`" /> </span>`)}},d=function(l){var e,r,o,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="M17.0001 7L24.0001 19.1244L29.9905 29.5H4.00977L17.0001 7Z" fill="`).concat((e=l.colors)===null||e===void 0?void 0:e[1],`"/> <path d="M31.0001 7L43.9905 29.5H18.0098L24.0001 19.1244L31.0001 7Z" fill="`).concat((r=l.colors)===null||r===void 0?void 0:r[1],`"/> <path d="M11.0098 41.5H36.9905L29.9905 29.5H18.0098L11.0098 41.5Z" fill="`).concat((o=l.colors)===null||o===void 0?void 0:o[1],`"/> <path d="M18.0098 29.5L11.0098 41.5H36.9905L29.9905 29.5M18.0098 29.5H43.9905L31.0001 7L24.0001 19.1244M18.0098 29.5L24.0001 19.1244M18.0098 29.5H29.9905M29.9905 29.5H4.00977L17.0001 7L24.0001 19.1244M29.9905 29.5L24.0001 19.1244" stroke="`).concat((t=l.colors)===null||t===void 0?void 0:t[0],'" stroke-width="').concat(l.strokeWidth,'" stroke-linecap="').concat(l.strokeLinecap,'" stroke-linejoin="').concat(l.strokeLinejoin,`"/> </svg>`)},T=S("byted-three-triangles",!1,d);return c.default=T,c.getIconBytedThreeTrianglesSvgHtml=d,Object.defineProperty(c,"__esModule",{value:!0}),c}({});