UNPKG

@fe6/icon-img

Version:

Water Icon 的纯 HTML 图标

13 lines (12 loc) 4.58 kB
var IconsBytedOceanengine=function(u){"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"},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,i,c,a=e?g:p;o<t;){if(n=l.charCodeAt(o++)&255,o===t){r+=a.charAt(n>>2),r+=a.charAt((n&3)<<4),r+="==";break}if(i=l.charCodeAt(o++),o===t){r+=a.charAt(n>>2),r+=a.charAt((n&3)<<4|(i&240)>>4),r+=a.charAt((i&15)<<2),r+="=";break}c=l.charCodeAt(o++),r+=a.charAt(n>>2),r+=a.charAt((n&3)<<4|(i&240)>>4),r+=a.charAt((i&15)<<2|(c&192)>>6),r+=a.charAt(c&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=h,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 i=C(f(),o,t),c=r(i),a=k(m(c)),v="data:image/svg+xml;base64,".concat(a);return o!=null&&o.base64?v:'<span class="'.concat(n.join(" "),`"> <img class="`).concat(t.prefix,'-icon-img" src="').concat(v,`" /> </span>`)}},d=function(l){var e,r,o,t,n,i;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.4824 8.47412L23.8802 16.6267H4.75757L7.21533 8.47412H21.4824Z" fill="`).concat((e=l.colors)===null||e===void 0?void 0:e[0],`"/> <path d="M9.1335 18.1253L17.3461 20.1035L7.81473 36.6485L2 30.4741L9.1335 18.1253Z" fill="`).concat((r=l.colors)===null||r===void 0?void 0:r[0],`"/> <path d="M11.2915 33.6512L17.1062 27.4768L26.6975 44.0218L18.425 46L11.2915 33.6512Z" fill="`).concat((o=l.colors)===null||o===void 0?void 0:o[0],`"/> <path d="M40.0655 39.4659H25.7985L23.4006 31.3733H42.5233" fill="`).concat((t=l.colors)===null||t===void 0?void 0:t[0],`"/> <path d="M45.2806 17.466L38.1471 29.8747L29.9346 27.8965L39.4659 11.3515" fill="`).concat((n=l.colors)===null||n===void 0?void 0:n[0],`"/> <path d="M35.989 14.3488L30.1743 20.5232L20.583 3.91825L28.8555 2L35.989 14.3488Z" fill="`).concat((i=l.colors)===null||i===void 0?void 0:i[0],`"/> </svg>`)},b=S("byted-oceanengine",!1,d);return u.default=b,u.getIconBytedOceanengineSvgHtml=d,Object.defineProperty(u,"__esModule",{value:!0}),u}({});