UNPKG

maille

Version:

Component library for MithrilJS

50 lines (49 loc) 3 kB
"use strict"; // THIS FILE WAS AUTO-GENERATED FOR PACKAGING, DO NOT MODIFY Object.defineProperty(exports, "__esModule", { value: true }); const types_1 = require("../../../types"); // tslint:disable-next-line const SVG_PROPS = { "xmlns": "http://www.w3.org/2000/svg", "width": "64", "height": "64", "shape-rendering": "geometricPrecision", "text-rendering": "geometricPrecision", "image-rendering": "optimizeQuality", "fill-rule": "evenodd", "clip-rule": "evenodd", "viewBox": "0 0 640 640" }; class InternetExplorerLogo { constructor() { this.defaults = { height: "1em", width: "1em", fill: "black", }; } view(vnode) { return m("svg", Object.assign({}, this.genAttrs(vnode)), // tslint:disable-next-line m.trust('<path d="M483.03 369.453h155.293c1.181-10.772 1.689-21.768 1.689-33 0-52.75-14.15-102.273-38.918-144.923 25.56-67.95 24.674-125.647-9.555-160.124C558.987-1.016 471.62 4.24 372.843 47.988c-7.323-.543-14.693-.85-22.158-.85-135.58 0-249.298 93.308-280.716 219.003 42.52-54.45 87.237-93.946 147.037-122.659-5.433 5.103-37.146 36.638-42.496 41.942C16.914 342.973-32.776 548.794 20.693 602.264c40.63 40.63 114.32 33.78 198.97-7.666 39.32 20.032 83.883 31.335 131.058 31.335 127.076 0 234.747-81.769 273.736-195.71H467.959c-21.52 39.708-63.674 66.768-112.005 66.768-48.32 0-90.427-27.036-111.994-66.769a128.008 128.008 0 0 1-15.072-60.308v-.46H483.03zm-253.881-76.288c3.579-63.887 56.717-114.875 121.549-114.875 64.855 0 117.994 50.941 121.572 114.875H229.149zM590.122 63.52c22.052 22.276 21.508 63.284 2.658 114.486-32.34-49.277-79.289-88.135-134.754-110.27 59.28-25.429 107.505-28.807 132.096-4.216zM61.525 592.117c-28.122-28.17-19.677-87.25 16.583-158.447 22.56 63.32 66.568 116.505 123.238 150.793-62.788 28.5-114.202 33.354-139.844 7.665l.024-.012z"/>')); } genAttrs(vnode) { const overrides = Object.values(types_1.GeneralIconAttrName) .reduce((acc, name) => { if (!name) { return acc; } if (vnode && vnode && vnode.attrs[name]) { acc[name] = vnode.attrs[name]; return acc; } if (name in this.defaults) { acc[name] = this.defaults[name]; } return acc; }, {}); const attrs = Object.assign({}, SVG_PROPS, overrides); if (!("style" in attrs) || !attrs.style) { attrs.style = {}; } if (attrs.style && typeof attrs.style !== "object") { throw new Error("attr.style must be an object for icons"); } attrs.style["vertical-align"] = "middle"; attrs.style["min-width"] = "1.25em"; const additionalClasses = "maille maille-uxwing-icon internet-explorer-logo"; attrs.className = attrs.className ? (attrs.className + " " + additionalClasses) : additionalClasses; return attrs; } } exports.default = InternetExplorerLogo;