mirror of
https://bitbucket.org/wisemapping/wisemapping-frontend.git
synced 2024-11-22 14:47: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 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';
|
||||||
|
@ -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());
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user