function drawIcon(id, options) {
options = addDefaults(
options,
Object({
fill: 'black',
stroke: 'none',
width: 32,
height: 32
})
);
const info = ID_TO_INFO[id];
const svg = getSVG(options);
svg
.append('rect')
.attr('height', options.height)
.attr('width', options.width)
.attr('fill', 'rgba(255, 255, 255, 0)')
.attr('stroke', 'none');
svg
.append('path')
.attr('d', info.d)
.attr('fill', options.fill)
.attr('stroke', options.stroke);
svg.attr('viewBox', info.viewBox);
return svg.node();
}