UNPKG

maille

Version:

Component library for MithrilJS

50 lines (49 loc) 4.81 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 StackedCoins { 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="M633.185 292.622c4.43 7.417 6.815 15.32 6.815 23.504 0 43.418-67.17 78.627-150.002 78.627-82.832 0-150.014-35.209-150.014-78.627 0-8.185 2.398-16.087 6.827-23.504 19.063 31.95 75.957 55.135 143.187 55.135 67.217 0 124.124-23.186 143.187-55.135zM293.189 409.753c4.43 7.43 6.827 15.32 6.827 23.504 0 43.418-67.182 78.639-150.014 78.639C67.17 511.896 0 476.676 0 433.257c0-8.185 2.386-16.075 6.815-23.504 19.063 31.95 75.97 55.146 143.187 55.146 67.23 0 124.124-23.197 143.187-55.146zM171.794 294.759l-.307-19.465c4.405-.165 8.008-1.512 10.784-4.004 2.81-2.48 4.346-5.504 4.653-9.035.354-4.04-.992-7.619-4.027-10.713-3.048-3.083-7.89-4.925-14.505-5.504-6.189-.532-10.972.449-14.326 2.976-3.343 2.516-5.21 6-5.599 10.453-.484 5.552 1.56 10.76 6.095 15.615l-3.65 15.52-51.745-14.505 4.453-51.236 18.118 1.57-3.177 36.556 16.914 4.524c-1.784-4.512-2.48-9.012-2.09-13.536.743-8.587 4.511-15.614 11.267-21.024 6.78-5.433 15.166-7.724 25.134-6.85 8.315.72 15.544 3.768 21.638 9.165 8.35 7.359 12.012 16.855 10.997 28.536-.815 9.343-3.969 16.725-9.497 22.17-5.515 5.456-12.555 8.397-21.13 8.787zm-21.792-78.12c68.08 0 123.297 21.663 123.297 48.356 0 26.705-55.217 48.355-123.297 48.355S26.717 291.7 26.717 264.995c0-26.693 55.206-48.355 123.285-48.355zm0-16.015c82.832 0 150.014 35.21 150.014 78.639 0 43.418-67.182 78.627-150.014 78.627C67.171 357.89 0 322.68 0 279.263c0-43.43 67.17-78.639 150.002-78.639zM293.72 331.693c4.087 7.146 6.296 14.717 6.296 22.571 0 43.418-67.182 78.627-150.014 78.627C67.17 432.891 0 397.682 0 354.264c0-7.854 2.208-15.425 6.283-22.571 18.52 32.41 75.852 56.044 143.718 56.044 67.867 0 125.21-23.634 143.718-56.044zm250.468-201.569l-1.7 19.524-73.62-6.39c6.072 7.713 10.276 16.547 12.603 26.504l-17.717-1.547c-1.216-5.209-3.897-11.043-8.02-17.421-4.157-6.39-9.236-10.961-15.26-13.713l1.382-15.85 102.332 8.893zm-54.19-30.614c68.08 0 123.286 21.65 123.286 48.354 0 26.694-55.206 48.343-123.285 48.343-68.08 0-123.285-21.65-123.285-48.343 0-26.705 55.205-48.355 123.285-48.355zm0-16.016c82.833 0 150.003 35.209 150.003 78.627 0 43.417-67.17 78.627-150.002 78.627-82.832 0-150.014-35.21-150.014-78.627 0-43.418 67.182-78.627 150.014-78.627zM633.718 214.55c4.086 7.157 6.283 14.728 6.283 22.57 0 43.419-67.17 78.64-150.002 78.64-82.831 0-150.014-35.221-150.014-78.64 0-7.842 2.209-15.413 6.296-22.57 18.508 32.421 75.851 56.055 143.718 56.055 67.867 0 125.198-23.634 143.718-56.055zm-1.465 238.326c5.02 7.854 7.748 16.264 7.748 25.004 0 43.418-67.17 78.627-150.002 78.627-82.831 0-150.014-35.21-150.014-78.627 0-8.74 2.729-17.15 7.76-25.004 19.926 31.17 76.088 53.634 142.254 53.634 66.155 0 122.328-22.465 142.254-53.634zm.697-80.872c4.583 7.536 7.051 15.544 7.051 23.87 0 43.419-67.17 78.628-150.002 78.628-82.831 0-150.014-35.21-150.014-78.627 0-8.327 2.48-16.335 7.052-23.87 19.287 31.748 76.005 54.756 142.962 54.756s123.663-23.008 142.95-54.757z"/>')); } 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 stacked-coins"; attrs.className = attrs.className ? (attrs.className + " " + additionalClasses) : additionalClasses; return attrs; } } exports.default = StackedCoins;