code: function generateSVGObject(parent, type) {
    let namespace = parent.namespaceURI;
    let node = namespace ? document.createElementNS(namespace, type)
      : document.createElement(type);
    parent.appendChild(node);
    return node;
  }
docs: /*
  Given a parent SVG node, create and append the child.