writeToDom(containerElement, contents, width, height, hints = null) {
			if (typeof containerElement === 'string') {
				containerElement = document.querySelector(containerElement);
			}
			const svgElement = this.write(contents, width, height, hints);
			if (containerElement)
				containerElement.appendChild(svgElement);
		}
Renders the result and then appends it to the DOM.