UNPKG

@fe6/icon-img

Version:

Water Icon 的纯 HTML 图标

10 lines (9 loc) 4.93 kB
var IconsBytedVrGlasses=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"},C=function(){return"icon-"+((1+Math.random())*4294967296|0).toString(16).substring(1)},f=function(l,r,e){var o=r?.colors||[],t=[],n=r?.theme||e.theme;switch(n){case"outline":t.push(typeof o[0]=="string"?o[0]:e.colors.outline.outStrokeColor),t.push(typeof o[1]=="string"?o[1]:e.colors.outline.outFillColor),t.push(typeof o[0]=="string"?o[0]:e.colors.outline.outStrokeColor),t.push(typeof o[1]=="string"?o[1]:e.colors.outline.outFillColor);break;case"filled":t.push(typeof o[0]=="string"?o[0]:e.colors.filled.outStrokeColor),t.push(typeof o[0]=="string"?o[0]:e.colors.filled.outStrokeColor),t.push(typeof o[1]=="string"?o[1]:e.colors.filled.outFillColor),t.push(typeof o[1]=="string"?o[1]:e.colors.filled.outFillColor);break;case"twoTone":t.push(typeof o[0]=="string"?o[0]:e.colors.twoTone.outStrokeColor),t.push(typeof o[1]=="string"?o[1]:e.colors.twoTone.outFillColor),t.push(typeof o[0]=="string"?o[0]:e.colors.twoTone.outStrokeColor),t.push(typeof o[1]=="string"?o[1]:e.colors.twoTone.outFillColor);break;case"multiColor":t.push(typeof o[0]=="string"?o[0]:e.colors.multiColor.outStrokeColor),t.push(typeof o[1]=="string"?o[1]:e.colors.multiColor.outFillColor),t.push(typeof o[2]=="string"?o[2]:e.colors.multiColor.innerStrokeColor),t.push(typeof o[3]=="string"?o[3]:e.colors.multiColor.innerFillColor);break}return{size:r?.size||e.size,strokeWidth:r?.strokeWidth||e.strokeWidth,strokeLinecap:r?.strokeLinecap||e.strokeLinecap,strokeLinejoin:r?.strokeLinejoin||e.strokeLinejoin,colors:t,svg:r?.svg||"",id:l}},k="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",g="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_",p=function(l,r){for(var e="",o=0,t=l.length,n,i,c,s=r?g:k;o<t;){if(n=l.charCodeAt(o++)&255,o===t){e+=s.charAt(n>>2),e+=s.charAt((n&3)<<4),e+="==";break}if(i=l.charCodeAt(o++),o===t){e+=s.charAt(n>>2),e+=s.charAt((n&3)<<4|(i&240)>>4),e+=s.charAt((i&15)<<2),e+="=";break}c=l.charCodeAt(o++),e+=s.charAt(n>>2),e+=s.charAt((n&3)<<4|(i&240)>>4),e+=s.charAt((i&15)<<2|(c&192)>>6),e+=s.charAt(c&63)}return e},m=function(l){var r="",e,o,t=l.length;for(e=0;e<t;e++)o=l.charCodeAt(e),o>=1&&o<=127?r+=l.charAt(e):o>2047?(r+=String.fromCharCode(224|o>>12&15),r+=String.fromCharCode(128|o>>6&63),r+=String.fromCharCode(128|o>>0&63)):(r+=String.fromCharCode(192|o>>6&31),r+=String.fromCharCode(128|o>>0&63));return r},y=h,S=function(){return y},w=function(l,r,e){return function(o){var t=S(),n=["".concat(t.prefix,"-icon")];n.push("".concat(t.prefix,"-icon-").concat(l)),r&&t.rtl&&n.push("".concat(t.prefix,"-icon-rtl")),o!=null&&o.spin&&n.push("".concat(t.prefix,"-icon-spin"));var i=f(C(),o,t),c=e(i),s=p(m(c)),v="data:image/svg+xml;base64,".concat(s);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 r,e,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 fill-rule="evenodd" clip-rule="evenodd" d="M2 12H46V36H30L24 30L18 36H2V12Z" fill="`).concat((r=l.colors)===null||r===void 0?void 0:r[1],'" stroke="').concat((e=l.colors)===null||e===void 0?void 0:e[0],'" stroke-width="').concat(l.strokeWidth,'" stroke-linecap="').concat(l.strokeLinecap,'" stroke-linejoin="').concat(l.strokeLinejoin,`"/> <path fill-rule="evenodd" clip-rule="evenodd" d="M13 28C15.2091 28 17 26.2091 17 24C17 21.7909 15.2091 20 13 20C10.7909 20 9 21.7909 9 24C9 26.2091 10.7909 28 13 28Z" fill="`).concat((o=l.colors)===null||o===void 0?void 0:o[3],'" stroke="').concat((t=l.colors)===null||t===void 0?void 0:t[2],'" stroke-width="').concat(l.strokeWidth,'" stroke-linecap="').concat(l.strokeLinecap,'" stroke-linejoin="').concat(l.strokeLinejoin,`"/> <path fill-rule="evenodd" clip-rule="evenodd" d="M35 28C37.2091 28 39 26.2091 39 24C39 21.7909 37.2091 20 35 20C32.7909 20 31 21.7909 31 24C31 26.2091 32.7909 28 35 28Z" fill="`).concat((n=l.colors)===null||n===void 0?void 0:n[3],'" stroke="').concat((i=l.colors)===null||i===void 0?void 0:i[2],'" stroke-width="').concat(l.strokeWidth,'" stroke-linecap="').concat(l.strokeLinecap,'" stroke-linejoin="').concat(l.strokeLinejoin,`"/> </svg>`)},b=w("byted-vr-glasses",!1,d);return u.default=b,u.getIconBytedVrGlassesSvgHtml=d,Object.defineProperty(u,"__esModule",{value:!0}),u}({});