mirror of
https://bitbucket.org/wisemapping/wisemapping-frontend.git
synced 2025-01-11 04:35:11 +01:00
23 lines
584 B
TypeScript
23 lines
584 B
TypeScript
|
|
||
|
import { Mindmap } from "../..";
|
||
|
import Exporter from "./Exporter";
|
||
|
|
||
|
class SVGExporter implements Exporter {
|
||
|
svgElement: Element;
|
||
|
constructor(mindmap: Mindmap, svgElement: Element) {
|
||
|
this.svgElement = svgElement;
|
||
|
}
|
||
|
|
||
|
export(): string {
|
||
|
// Replace all images for in-line images ...
|
||
|
const imagesElements:HTMLCollection = this.svgElement.children
|
||
|
console.log(imagesElements.length);
|
||
|
Array.from(imagesElements).forEach((image) => {
|
||
|
console.log(image);
|
||
|
|
||
|
});
|
||
|
return "";
|
||
|
|
||
|
}
|
||
|
}
|
||
|
export default SVGExporter;
|