v-simple-icons
Version:
Simply beautiful open source icons as Vue functional components.
32 lines • 2.18 kB
JavaScript
import _mergeJSXProps from "babel-helper-vue-jsx-merge-props";
export default {
name: 'GoogleMapsIcon',
props: {
size: {
type: String,
default: '24',
validator: function validator(s) {
return !isNaN(s) || s.length >= 2 && !isNaN(s.slice(0, s.length - 1)) && s.slice(-1) === 'x';
}
}
},
functional: true,
render: function render(h, ctx) {
var size = ctx.props.size.slice(-1) === 'x' ? ctx.props.size.slice(0, ctx.props.size.length - 1) + 'em' : parseInt(ctx.props.size) + 'px';
var attrs = ctx.data.attrs || {};
attrs.width = attrs.width || size;
attrs.height = attrs.height || size;
ctx.data.attrs = attrs;
return h("svg", _mergeJSXProps([{
attrs: {
role: "img",
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg"
}
}, ctx.data]), [h("title", ["Google Maps icon"]), h("path", {
attrs: {
d: "M18.475 0h-.055a5.496 5.496 0 0 0-3.015.91 5.569 5.569 0 0 0-2.32 3.221 5.564 5.564 0 0 0-.04 2.662c.22.962.685 1.848 1.206 2.679.554.879 1.168 1.718 1.732 2.59.62.956 1.18 1.958 1.587 3.024.4 1.039.655 2.133.758 3.241 0 .069.064.126.131.122.071 0 .125-.073.12-.142.117-1.273.44-2.526.95-3.699.431-1.002.99-1.945 1.592-2.852.545-.823 1.125-1.622 1.642-2.463.51-.832.954-1.73 1.137-2.697a5.57 5.57 0 0 0-.206-2.87A5.558 5.558 0 0 0 19.31.065 5.818 5.818 0 0 0 18.475 0zM1.73 2.09C.778 2.09 0 2.868 0 3.82v18.45L13.557 8.713c-.522-.982-.872-1.998-.872-3.164 0-1.299.43-2.496 1.152-3.46zm16.724 1.224a2.23 2.23 0 0 1 2.072 1.407c.18.447.209.94.084 1.406a2.237 2.237 0 0 1-2.112 1.656c-.308 0-.617-.05-.9-.17a2.208 2.208 0 0 1-1.293-1.447 2.214 2.214 0 0 1 .146-1.61 2.237 2.237 0 0 1 2.005-1.242zM4.901 3.82c.856 0 1.571.314 2.122.83l-.908.908A1.73 1.73 0 0 0 4.9 5.084c-1.035 0-1.877.877-1.877 1.91 0 1.031.842 1.908 1.877 1.908.931 0 1.571-.53 1.707-1.26H4.9V6.414h2.987c.037.207.058.423.058.648 0 1.81-1.214 3.1-3.045 3.1A3.17 3.17 0 0 1 1.73 6.99a3.17 3.17 0 0 1 3.171-3.17zm17.01 7.23c-1.339 1.956-2.818 4.126-3.12 7.382-.032.42-.648.42-.68 0-.3-3.24-1.766-5.404-3.1-7.352l-2.27 2.27 9.17 9.114zm-10.956 4.014L2.018 24h17.875z"
}
})]);
}
};