maille
Version:
Component library for MithrilJS
50 lines (49 loc) • 2.99 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 3333 3317", "shape-rendering": "geometricPrecision", "text-rendering": "geometricPrecision", "image-rendering": "optimizeQuality", "fill-rule": "evenodd", "clip-rule": "evenodd" };
class PhoneHandsetOutline {
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="M917 1364c112 202 241 396 409 573 168 178 377 340 648 478 20 10 39 10 56 3 26-10 52-31 78-57 20-20 45-52 71-87 104-137 233-307 415-222 4 2 7 4 11 6l607 349c2 1 4 3 6 4 80 55 113 140 114 236 0 98-36 208-89 301-70 123-173 204-292 258-113 52-239 80-360 98-190 28-368 10-550-46-178-55-357-146-553-267l-14-9c-90-56-187-116-282-187-349-263-704-643-935-1061C63 1383-43 1004 15 643c32-198 117-378 265-497C409 42 583-15 808 5c26 2 49 17 61 39l389 658c57 74 64 147 33 220-26 60-78 115-149 167-21 18-46 36-72 55-87 63-186 136-152 222zm294 682c-179-189-316-394-433-606-2-3-4-7-5-11-86-202 68-315 203-414 23-17 45-33 65-50 1-1 2-2 4-3 50-37 86-72 100-104 8-18 5-39-13-61-3-4-6-7-8-11L754 159c-159-7-283 36-374 110-115 93-182 238-208 399-52 323 47 667 225 990 219 397 558 759 891 1010 92 69 184 126 269 179l14 9c185 115 353 200 517 251 159 49 316 65 481 40 109-16 220-40 317-85 91-42 169-103 221-193 41-72 69-153 68-223 0-44-13-82-44-104l-604-347c-67-29-153 84-222 175-30 39-58 76-86 104-40 40-85 74-135 93-58 22-119 23-183-10-288-146-510-319-691-510z" 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 phone-handset-outline";
attrs.className = attrs.className ? (attrs.className + " " + additionalClasses) : additionalClasses;
return attrs;
}
}
exports.default = PhoneHandsetOutline;