UNPKG

@fe6/icon-img

Version:

Water Icon 的纯 HTML 图标

16 lines (15 loc) 5.87 kB
var IconsBytedKeyboard=function(u){"use strict";var C={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"},h=function(){return"icon-"+((1+Math.random())*4294967296|0).toString(16).substring(1)},f=function(t,r,e){var o=r?.colors||[],l=[],i=r?.theme||e.theme;switch(i){case"outline":l.push(typeof o[0]=="string"?o[0]:e.colors.outline.outStrokeColor),l.push(typeof o[1]=="string"?o[1]:e.colors.outline.outFillColor),l.push(typeof o[0]=="string"?o[0]:e.colors.outline.outStrokeColor),l.push(typeof o[1]=="string"?o[1]:e.colors.outline.outFillColor);break;case"filled":l.push(typeof o[0]=="string"?o[0]:e.colors.filled.outStrokeColor),l.push(typeof o[0]=="string"?o[0]:e.colors.filled.outStrokeColor),l.push(typeof o[1]=="string"?o[1]:e.colors.filled.outFillColor),l.push(typeof o[1]=="string"?o[1]:e.colors.filled.outFillColor);break;case"twoTone":l.push(typeof o[0]=="string"?o[0]:e.colors.twoTone.outStrokeColor),l.push(typeof o[1]=="string"?o[1]:e.colors.twoTone.outFillColor),l.push(typeof o[0]=="string"?o[0]:e.colors.twoTone.outStrokeColor),l.push(typeof o[1]=="string"?o[1]:e.colors.twoTone.outFillColor);break;case"multiColor":l.push(typeof o[0]=="string"?o[0]:e.colors.multiColor.outStrokeColor),l.push(typeof o[1]=="string"?o[1]:e.colors.multiColor.outFillColor),l.push(typeof o[2]=="string"?o[2]:e.colors.multiColor.innerStrokeColor),l.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:l,svg:r?.svg||"",id:t}},p="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",k="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_",g=function(t,r){for(var e="",o=0,l=t.length,i,a,s,n=r?k:p;o<l;){if(i=t.charCodeAt(o++)&255,o===l){e+=n.charAt(i>>2),e+=n.charAt((i&3)<<4),e+="==";break}if(a=t.charCodeAt(o++),o===l){e+=n.charAt(i>>2),e+=n.charAt((i&3)<<4|(a&240)>>4),e+=n.charAt((a&15)<<2),e+="=";break}s=t.charCodeAt(o++),e+=n.charAt(i>>2),e+=n.charAt((i&3)<<4|(a&240)>>4),e+=n.charAt((a&15)<<2|(s&192)>>6),e+=n.charAt(s&63)}return e},y=function(t){var r="",e,o,l=t.length;for(e=0;e<l;e++)o=t.charCodeAt(e),o>=1&&o<=127?r+=t.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},m=C,b=function(){return m},S=function(t,r,e){return function(o){var l=b(),i=["".concat(l.prefix,"-icon")];i.push("".concat(l.prefix,"-icon-").concat(t)),r&&l.rtl&&i.push("".concat(l.prefix,"-icon-rtl")),o!=null&&o.spin&&i.push("".concat(l.prefix,"-icon-spin"));var a=f(h(),o,l),s=e(a),n=g(y(s)),d="data:image/svg+xml;base64,".concat(n);return o!=null&&o.base64?d:'<span class="'.concat(i.join(" "),`"> <img class="`).concat(l.prefix,'-icon-img" src="').concat(d,`" /> </span>`)}},v=function(t){var r,e,o,l,i,a,s,n,d;return`<?xml version="1.0" encoding="UTF-8"?> <svg width="`.concat(t.size,'" height="').concat(t.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"/> <rect width="48" height="48" fill="white" fill-opacity="0.01"/> <path d="M24 44C35.0457 44 44 35.0457 44 24C44 12.9543 35.0457 4 24 4C12.9543 4 4 12.9543 4 24C4 35.0457 12.9543 44 24 44Z" fill="`).concat((r=t.colors)===null||r===void 0?void 0:r[1],'" stroke="').concat((e=t.colors)===null||e===void 0?void 0:e[0],'" stroke-width="').concat(t.strokeWidth,'" stroke-linejoin="').concat(t.strokeLinejoin,`"/> <path fill-rule="evenodd" clip-rule="evenodd" d="M15 19C16.3807 19 17.5 17.8807 17.5 16.5C17.5 15.1193 16.3807 14 15 14C13.6193 14 12.5 15.1193 12.5 16.5C12.5 17.8807 13.6193 19 15 19Z" fill="`).concat((o=t.colors)===null||o===void 0?void 0:o[2],`"/> <path fill-rule="evenodd" clip-rule="evenodd" d="M15 27C16.3807 27 17.5 25.8807 17.5 24.5C17.5 23.1193 16.3807 22 15 22C13.6193 22 12.5 23.1193 12.5 24.5C12.5 25.8807 13.6193 27 15 27Z" fill="`).concat((l=t.colors)===null||l===void 0?void 0:l[2],`"/> <path fill-rule="evenodd" clip-rule="evenodd" d="M24 19C25.3807 19 26.5 17.8807 26.5 16.5C26.5 15.1193 25.3807 14 24 14C22.6193 14 21.5 15.1193 21.5 16.5C21.5 17.8807 22.6193 19 24 19Z" fill="`).concat((i=t.colors)===null||i===void 0?void 0:i[2],`"/> <path fill-rule="evenodd" clip-rule="evenodd" d="M24 27C25.3807 27 26.5 25.8807 26.5 24.5C26.5 23.1193 25.3807 22 24 22C22.6193 22 21.5 23.1193 21.5 24.5C21.5 25.8807 22.6193 27 24 27Z" fill="`).concat((a=t.colors)===null||a===void 0?void 0:a[2],`"/> <path fill-rule="evenodd" clip-rule="evenodd" d="M33 19C34.3807 19 35.5 17.8807 35.5 16.5C35.5 15.1193 34.3807 14 33 14C31.6193 14 30.5 15.1193 30.5 16.5C30.5 17.8807 31.6193 19 33 19Z" fill="`).concat((s=t.colors)===null||s===void 0?void 0:s[2],`"/> <path fill-rule="evenodd" clip-rule="evenodd" d="M33 27C34.3807 27 35.5 25.8807 35.5 24.5C35.5 23.1193 34.3807 22 33 22C31.6193 22 30.5 23.1193 30.5 24.5C30.5 25.8807 31.6193 27 33 27Z" fill="`).concat((n=t.colors)===null||n===void 0?void 0:n[2],`"/> <path d="M17 33H31" stroke="`).concat((d=t.colors)===null||d===void 0?void 0:d[2],'" stroke-width="').concat(t.strokeWidth,'" stroke-linecap="').concat(t.strokeLinecap,'" stroke-linejoin="').concat(t.strokeLinejoin,`"/> </svg>`)},w=S("byted-keyboard",!1,v);return u.default=w,u.getIconBytedKeyboardSvgHtml=v,Object.defineProperty(u,"__esModule",{value:!0}),u}({});