maille
Version:
Component library for MithrilJS
50 lines (49 loc) • 3.03 kB
JavaScript
;
// 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", "viewBox": "0 0 7046 6928", "shape-rendering": "geometricPrecision", "text-rendering": "geometricPrecision", "image-rendering": "optimizeQuality", "fill-rule": "evenodd", "clip-rule": "evenodd" };
class RocketOutline {
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="M885 4922c72-56 177-43 233 29s43 177-29 233l-751 583-6 768 905-51 500-795c49-77 151-101 228-52s101 151 52 228l-543 863c-27 46-76 79-134 82l-1166 65h-10c-91 0-165-75-165-166l8-1012c-4-53 18-108 64-143l814-632zm1424-1836c378-1129 887-1929 1603-2433C4656 130 5611-69 6863 22c86 6 153 77 154 162 121 1355-142 2317-703 3045-539 700-1349 1174-2354 1571v1323c0 65-37 121-92 148l-1023 632c-78 48-180 24-228-54-13-21-20-43-23-65-226-1731-467-1814-1883-2304-169-59-352-122-475-166-86-30-132-125-101-211 7-19 16-35 28-50l674-961c34-48 89-73 143-70l1328 65zm2546-1611c193 0 367 78 493 204s204 300 204 493c0 192-78 367-204 493s-300 204-493 204-367-78-493-204-204-300-204-493 78-367 204-493 300-204 493-204zm332 365c-85-85-203-138-332-138-130 0-247 53-332 138s-138 203-138 332c0 130 53 247 138 332s203 138 332 138c130 0 247-53 332-138s138-203 138-332c0-130-53-247-138-332zM4102 924c-677 477-1157 1258-1516 2376-19 74-88 127-168 123l-1363-66-504 718c106 37 189 66 267 93 1509 522 1823 630 2068 2321l740-457V4688h1c0-66 40-129 106-154 1001-385 1801-837 2317-1507 492-639 731-1488 646-2683-1103-61-1945 123-2595 581z" 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 rocket-outline";
attrs.className = attrs.className ? (attrs.className + " " + additionalClasses) : additionalClasses;
return attrs;
}
}
exports.default = RocketOutline;