UNPKG

maille

Version:

Component library for MithrilJS

50 lines (49 loc) 3.44 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", "viewBox": "0 0 640 640", "shape-rendering": "geometricPrecision", "text-rendering": "geometricPrecision", "image-rendering": "optimizeQuality", "fill-rule": "evenodd", "clip-rule": "evenodd" }; class SpeechBubbleOutline { 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="M466.116 26.445H173.884c-65.056 0-118.289 53.233-118.289 118.29v208.75c0 65.044 53.233 118.29 118.289 118.29h91.89c-13.145 52.004-29.066 98.74-77.717 141.875 93.013-23.788 164.813-71.87 217.503-141.876h15.886c65.056 0 162.96-53.233 162.96-118.289v-208.75c0-65.057-53.233-118.29-118.29-118.29zM451.706 213.9c-23.705 0-42.921 19.229-42.921 42.934s19.216 42.922 42.921 42.922 42.934-19.217 42.934-42.922-19.229-42.934-42.934-42.934zm-263.413 0c-23.705 0-42.921 19.229-42.921 42.934s19.216 42.922 42.921 42.922 42.934-19.217 42.934-42.922-19.229-42.934-42.934-42.934zm131.706 0c-23.705 0-42.933 19.229-42.933 42.934s19.228 42.922 42.933 42.922 42.934-19.217 42.934-42.922-19.229-42.934-42.934-42.934zM173.883 0H466.151v.095c39.886.012 76.064 16.24 102.202 42.39l-.047.059c26.185 26.209 42.437 62.375 42.449 102.178h.094v.012h-.094v208.75h.094v.024h-.094c-.012 42.556-29.575 79.631-68.966 105.521-36.673 24.119-82.985 39.084-120.332 39.095v.095h-.011v-.095h-3c-26.375 32.86-56.99 60.899-92.057 83.93-38.764 25.454-82.619 44.647-131.824 57.226l-.011-.083c-9.26 2.35-19.465-.437-26.233-8.079-9.638-10.901-8.622-27.567 2.268-37.205 21.449-19.016 35.681-38.811 45.969-59.552 5.74-11.551 10.346-23.622 14.362-36.142H173.85v-.095c-39.887-.011-76.052-16.252-102.202-42.39-26.15-26.162-42.39-62.34-42.402-102.237h-.095v-.012h.095v-208.75h-.095v-.036h.095c.011-39.071 15.65-74.6 40.937-100.62.46-.542.945-1.074 1.453-1.582C97.785 16.347 133.975.107 173.86.095V.001h.023z" fill-rule="nonzero"/>')); } 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 speech-bubble-outline"; attrs.className = attrs.className ? (attrs.className + " " + additionalClasses) : additionalClasses; return attrs; } } exports.default = SpeechBubbleOutline;