UNPKG

@fe6/icon-img

Version:

Water Icon 的纯 HTML 图标

8 lines (7 loc) 4.08 kB
var IconsBytedPerspective=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"},f=function(){return"icon-"+((1+Math.random())*4294967296|0).toString(16).substring(1)},C=function(l,e,r){var o=e?.colors||[],t=[],i=e?.theme||r.theme;switch(i){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+/",k="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_",g=function(l,e){for(var r="",o=0,t=l.length,i,s,u,n=e?k:p;o<t;){if(i=l.charCodeAt(o++)&255,o===t){r+=n.charAt(i>>2),r+=n.charAt((i&3)<<4),r+="==";break}if(s=l.charCodeAt(o++),o===t){r+=n.charAt(i>>2),r+=n.charAt((i&3)<<4|(s&240)>>4),r+=n.charAt((s&15)<<2),r+="=";break}u=l.charCodeAt(o++),r+=n.charAt(i>>2),r+=n.charAt((i&3)<<4|(s&240)>>4),r+=n.charAt((s&15)<<2|(u&192)>>6),r+=n.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},y=h,S=function(){return y},L=function(l,e,r){return function(o){var t=S(),i=["".concat(t.prefix,"-icon")];i.push("".concat(t.prefix,"-icon-").concat(l)),e&&t.rtl&&i.push("".concat(t.prefix,"-icon-rtl")),o!=null&&o.spin&&i.push("".concat(t.prefix,"-icon-spin"));var s=C(f(),o,t),u=r(s),n=g(m(u)),d="data:image/svg+xml;base64,".concat(n);return o!=null&&o.base64?d:'<span class="'.concat(i.join(" "),`"> <img class="`).concat(t.prefix,'-icon-img" src="').concat(d,`" /> </span>`)}},v=function(l){var e;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="M44 28V36L31 38.6M44 28L4 32M44 28V20M4 32V44L17 41.4M4 32V16M44 20V12L31 9.4M44 20L4 16M4 16V4L17 6.6M31 9.4V38.6M31 9.4L17 6.6M31 38.6L17 41.4M17 6.6V41.4" 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,`"/> </svg>`)},b=L("byted-perspective",!1,v);return c.default=b,c.getIconBytedPerspectiveSvgHtml=v,Object.defineProperty(c,"__esModule",{value:!0}),c}({});