Fix file name

This commit is contained in:
Paulo Gustavo Veiga 2021-12-31 02:02:29 -08:00
parent 6b7a7660f1
commit f8d2e4b77b
3 changed files with 6 additions and 6 deletions

View File

@ -36,7 +36,7 @@ import DragManager from './DragManager';
import RelationshipPivot from './RelationshipPivot'; import RelationshipPivot from './RelationshipPivot';
import Relationship from './Relationship'; import Relationship from './Relationship';
import SVGExporter from './export/SVGExporter'; import SVGExporter from './export/SVGExporter';
import BinaryImageExporter from './export/PNGExporter'; import BinaryImageExporter from './export/BinaryImageExporter';
import TopicEventDispatcher, { TopicEvent } from './TopicEventDispatcher'; import TopicEventDispatcher, { TopicEvent } from './TopicEventDispatcher';
import TopicFeatureFactory from './TopicFeature'; import TopicFeatureFactory from './TopicFeature';

View File

@ -3,7 +3,7 @@ import fs from 'fs';
import path from 'path'; import path from 'path';
import XMLSerializerFactory from '../../../src/components/persistence/XMLSerializerFactory'; import XMLSerializerFactory from '../../../src/components/persistence/XMLSerializerFactory';
import SVGExporter from '../../../src/components/export/SVGExporter'; import SVGExporter from '../../../src/components/export/SVGExporter';
import BinaryImageExporter from '../../../src/components/export/PNGExporter'; import BinaryImageExporter from '../../../src/components/export/BinaryImageExporter';
test('mindplot generation of simple maps', async () => { test('mindplot generation of simple maps', async () => {
// Load mindmap DOM ... // Load mindmap DOM ...
@ -19,11 +19,11 @@ test('mindplot generation of simple maps', async () => {
const svgDocument = parseXMLFile(svgPath, 'image/svg+xml'); const svgDocument = parseXMLFile(svgPath, 'image/svg+xml');
// Inspect ... // Inspect ...
// const svgExporter = new SVGExporter(mindmap, svgDocument.documentElement); const svgExporter = new SVGExporter(mindmap, svgDocument.documentElement);
// console.log('Exported map:' + await svgExporter.export()); console.log('Exported map:' + await svgExporter.export());
// const pngExporter = new PNGExporter(mindmap, svgDocument.documentElement, 400, 400); const pngExporter = new BinaryImageExporter(mindmap, svgDocument.documentElement, 400, 400, 'image/png');
// console.log('Exported map:' + await pngExporter.export()); console.log('Exported map:' + await pngExporter.export());
}); });