mirror of
https://bitbucket.org/wisemapping/wisemapping-frontend.git
synced 2024-11-24 23:37:57 +01:00
Fix typo
This commit is contained in:
parent
18673fd0d1
commit
19c163b26f
@ -72,7 +72,7 @@ const ExportDialog = ({
|
|||||||
const exporter = (formatType: ExportFormat) => {
|
const exporter = (formatType: ExportFormat) => {
|
||||||
let svgElement: Element | null = null;
|
let svgElement: Element | null = null;
|
||||||
let size;
|
let size;
|
||||||
let mindmpap: MindMap;
|
let mindmap: MindMap;
|
||||||
|
|
||||||
const designer: Designer = global.designer;
|
const designer: Designer = global.designer;
|
||||||
if (designer != null) {
|
if (designer != null) {
|
||||||
@ -80,7 +80,7 @@ const ExportDialog = ({
|
|||||||
const workspace = designer.getWorkspace();
|
const workspace = designer.getWorkspace();
|
||||||
svgElement = workspace.getSVGElement();
|
svgElement = workspace.getSVGElement();
|
||||||
size = workspace.getSize();
|
size = workspace.getSize();
|
||||||
mindmpap = designer.getMindmap();
|
mindmap = designer.getMindmap();
|
||||||
} else {
|
} else {
|
||||||
// Load mindmap ...
|
// Load mindmap ...
|
||||||
const persistence = new RESTPersistenceManager({
|
const persistence = new RESTPersistenceManager({
|
||||||
@ -99,13 +99,13 @@ const ExportDialog = ({
|
|||||||
case 'png':
|
case 'png':
|
||||||
case 'jpg':
|
case 'jpg':
|
||||||
case 'svg': {
|
case 'svg': {
|
||||||
exporter = ImageExpoterFactory.create(formatType, mindmpap, svgElement, size.width, size.height);
|
exporter = ImageExpoterFactory.create(formatType, mindmap, svgElement, size.width, size.height);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
case 'wxml':
|
case 'wxml':
|
||||||
case 'md':
|
case 'md':
|
||||||
case 'txt': {
|
case 'txt': {
|
||||||
exporter = TextExporterFactory.create(formatType, mindmpap);
|
exporter = TextExporterFactory.create(formatType, mindmap);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
default:
|
default:
|
||||||
|
Loading…
Reference in New Issue
Block a user