UNPKG

maille

Version:

Component library for MithrilJS

50 lines (49 loc) 3.98 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", "viewBox": "0 0 3333 3333", "shape-rendering": "geometricPrecision", "text-rendering": "geometricPrecision", "image-rendering": "optimizeQuality", "fill-rule": "evenodd", "clip-rule": "evenodd" }; class GlobeOutline { 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="M2969 2428c5 0 10 0 14 1 31-54 59-111 85-171 1-1 1-2 2-3 38-91 68-185 87-283 15-76 25-153 28-233h-458c-8 233-78 462-207 688h449zm-80 146h-461c-140 203-329 403-565 601 37-5 74-11 110-18 99-20 194-49 286-89 93-40 180-87 261-141s155-115 224-184c53-53 102-109 146-169zm-1419 601c-236-198-425-398-565-601H444c44 60 93 116 146 169 69 69 143 130 224 184 80 54 167 101 261 141 1 1 2 1 3 2 91 38 185 68 283 87 36 7 73 13 110 18zM348 2428h464c-129-226-199-456-207-688H147c4 80 13 157 28 233 20 99 49 194 89 286 25 59 53 115 84 169zm-201-834h461c17-228 93-457 228-688H348c-31 54-59 110-84 169-1 1-1 2-2 3-38 91-68 185-87 283-15 76-25 153-28 233zm296-834h487c139-200 322-401 550-603-41 5-81 11-120 19-99 20-194 49-286 89-93 40-180 87-261 141S658 521 589 590c-53 53-102 109-146 169zm1409-603c229 202 412 403 550 603h487c-44-60-93-116-146-169-69-69-143-130-224-184-80-54-167-101-261-141-1-1-2-1-3-2-91-38-185-68-283-87-40-8-80-14-120-19zm1132 749h-488c135 231 211 460 228 688h461c-4-80-13-157-28-233-20-99-49-194-89-286-25-59-53-115-84-169zM1331 33c108-22 220-33 335-33s226 11 335 33c107 21 210 53 311 96 1 0 3 1 4 2 100 43 195 95 284 154s171 127 246 202c76 75 143 157 202 246 60 89 111 184 154 284 44 102 76 207 98 315s33 220 33 335-11 226-33 335c-21 107-53 210-96 311 0 1-1 3-2 4-43 101-95 195-154 284s-127 171-202 246c-75 76-157 143-246 202-89 60-184 111-284 154-102 44-207 76-315 98s-220 33-335 33-226-11-335-33c-107-21-210-53-311-96-1 0-3-1-4-2-100-43-195-95-284-154s-171-127-246-202c-76-75-143-157-202-246-60-89-111-184-154-284-44-102-76-207-98-315s-33-220-33-335 11-226 33-335c21-107 53-210 96-311 0-1 1-3 2-4 43-101 95-195 154-284s127-171 202-246c75-76 157-143 246-202 89-60 184-111 284-154 102-44 207-76 315-98zm408 219v508h484c-127-168-288-337-484-508zm0 654v688h839c-19-226-103-455-253-688h-586zm0 834v688h611c145-228 222-457 231-688h-842zm0 834v514c207-170 377-342 509-514h-509zm-146 514v-514h-509c131 172 301 344 509 514zm0-660v-688H751c9 231 87 460 231 688h611zm0-834V906h-586c-150 233-234 462-253 688h839zm0-834V252c-196 171-357 340-484 508h484z" 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 globe-outline"; attrs.className = attrs.className ? (attrs.className + " " + additionalClasses) : additionalClasses; return attrs; } } exports.default = GlobeOutline;