mirror of
https://bitbucket.org/wisemapping/wisemapping-frontend.git
synced 2024-11-22 06:37:56 +01:00
Fix file name
This commit is contained in:
parent
6b7a7660f1
commit
f8d2e4b77b
@ -36,7 +36,7 @@ import DragManager from './DragManager';
|
||||
import RelationshipPivot from './RelationshipPivot';
|
||||
import Relationship from './Relationship';
|
||||
import SVGExporter from './export/SVGExporter';
|
||||
import BinaryImageExporter from './export/PNGExporter';
|
||||
import BinaryImageExporter from './export/BinaryImageExporter';
|
||||
|
||||
import TopicEventDispatcher, { TopicEvent } from './TopicEventDispatcher';
|
||||
import TopicFeatureFactory from './TopicFeature';
|
||||
|
@ -3,7 +3,7 @@ import fs from 'fs';
|
||||
import path from 'path';
|
||||
import XMLSerializerFactory from '../../../src/components/persistence/XMLSerializerFactory';
|
||||
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 () => {
|
||||
// Load mindmap DOM ...
|
||||
@ -19,11 +19,11 @@ test('mindplot generation of simple maps', async () => {
|
||||
const svgDocument = parseXMLFile(svgPath, 'image/svg+xml');
|
||||
|
||||
// Inspect ...
|
||||
// const svgExporter = new SVGExporter(mindmap, svgDocument.documentElement);
|
||||
// console.log('Exported map:' + await svgExporter.export());
|
||||
const svgExporter = new SVGExporter(mindmap, svgDocument.documentElement);
|
||||
console.log('Exported map:' + await svgExporter.export());
|
||||
|
||||
// const pngExporter = new PNGExporter(mindmap, svgDocument.documentElement, 400, 400);
|
||||
// console.log('Exported map:' + await pngExporter.export());
|
||||
const pngExporter = new BinaryImageExporter(mindmap, svgDocument.documentElement, 400, 400, 'image/png');
|
||||
console.log('Exported map:' + await pngExporter.export());
|
||||
|
||||
});
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user