import { Mindmap } from "../.."; import Exporter from "./Exporter"; class SVGExporter implements Exporter { svgElement: Element; constructor(mindmap: Mindmap, svgElement: Element) { this.svgElement = svgElement; } export(): Promise { // Replace all images for in-line images ... const imagesElements: HTMLCollection = this.svgElement.getElementsByTagName('image'); let svgTxt:string = new XMLSerializer().serializeToString(this.svgElement); // Are namespace declared ?. Otherwise, force the declaration ... if(svgTxt.indexOf('xmlns:xlink=')!==-1){ svgTxt.replace('