mirror of
https://bitbucket.org/wisemapping/wisemapping-frontend.git
synced 2024-11-13 02:37:57 +01:00
Indent txt format
This commit is contained in:
parent
19d7706c1b
commit
6be62fe81b
@ -52,7 +52,7 @@ class TxtExporter implements Exporter {
|
||||
result = result + '\n';
|
||||
|
||||
if (node.getChildren().length > 0) {
|
||||
result = result + this.traverseBranch(`${prefix}${index+1}.`, node.getChildren());
|
||||
result = result + this.traverseBranch(`\t${prefix}${index+1}.`, node.getChildren());
|
||||
}
|
||||
});
|
||||
return result;
|
||||
|
@ -57,7 +57,7 @@ class RelationshipModel {
|
||||
}
|
||||
|
||||
/** */
|
||||
getId() {
|
||||
getId():number {
|
||||
$assert(this._id, 'id is null');
|
||||
return this._id;
|
||||
}
|
||||
@ -68,7 +68,7 @@ class RelationshipModel {
|
||||
}
|
||||
|
||||
/** */
|
||||
setLineType(lineType) {
|
||||
setLineType(lineType: number) {
|
||||
this._lineType = lineType;
|
||||
}
|
||||
|
||||
@ -98,7 +98,7 @@ class RelationshipModel {
|
||||
}
|
||||
|
||||
/** */
|
||||
setEndArrow(endArrow) {
|
||||
setEndArrow(endArrow: boolean) {
|
||||
this._endArrow = endArrow;
|
||||
}
|
||||
|
||||
@ -108,7 +108,7 @@ class RelationshipModel {
|
||||
}
|
||||
|
||||
/** */
|
||||
setStartArrow(startArrow) {
|
||||
setStartArrow(startArrow: boolean) {
|
||||
this._startArrow = startArrow;
|
||||
}
|
||||
|
||||
|
@ -22,7 +22,7 @@ import fs from 'fs';
|
||||
import { diff } from 'jest-diff';
|
||||
import { expect } from '@jest/globals';
|
||||
|
||||
const saveOutputRecord = false;
|
||||
const saveOutputRecord = true;
|
||||
|
||||
export const setupBlob = () => {
|
||||
// Workaround for partial implementations on Jest:
|
||||
|
Loading…
Reference in New Issue
Block a user