mirror of
https://bitbucket.org/wisemapping/wisemapping-frontend.git
synced 2024-11-22 14:47:56 +01:00
Fix compilation
This commit is contained in:
parent
1367321ea5
commit
f0c4c46a5d
@ -38,7 +38,7 @@ class Relationship extends ConnectionLine {
|
|||||||
|
|
||||||
private _endArrow: Arrow;
|
private _endArrow: Arrow;
|
||||||
|
|
||||||
private _controlPointControllerListener: any;
|
private _controlPointControllerListener;
|
||||||
|
|
||||||
private _showStartArrow: Arrow;
|
private _showStartArrow: Arrow;
|
||||||
|
|
||||||
|
@ -1058,7 +1058,7 @@ abstract class Topic extends NodeGraph {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
setSize(size: SizeType, force: boolean): void {
|
setSize(size: SizeType, force?: boolean): void {
|
||||||
$assert(size, 'size can not be null');
|
$assert(size, 'size can not be null');
|
||||||
$assert($defined(size.width), 'size seem not to be a valid element');
|
$assert($defined(size.width), 'size seem not to be a valid element');
|
||||||
const roundedSize = {
|
const roundedSize = {
|
||||||
|
@ -20,6 +20,7 @@ import Command from '../Command';
|
|||||||
import CommandContext from '../CommandContext';
|
import CommandContext from '../CommandContext';
|
||||||
import NodeModel from '../model/NodeModel';
|
import NodeModel from '../model/NodeModel';
|
||||||
import RelationshipModel from '../model/RelationshipModel';
|
import RelationshipModel from '../model/RelationshipModel';
|
||||||
|
import Relationship from '../Relationship';
|
||||||
import Topic from '../Topic';
|
import Topic from '../Topic';
|
||||||
|
|
||||||
class DeleteCommand extends Command {
|
class DeleteCommand extends Command {
|
||||||
@ -159,13 +160,16 @@ class DeleteCommand extends Command {
|
|||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
_collectInDepthRelationships(topic: Topic) {
|
private _collectInDepthRelationships(topic: Topic): Relationship[] {
|
||||||
let result = [];
|
let result = [];
|
||||||
result = result.concat(topic.getRelationships());
|
result = result.concat(topic.getRelationships());
|
||||||
|
|
||||||
const children = topic.getChildren();
|
const children = topic.getChildren();
|
||||||
const rels = children.map(((t) => this._collectInDepthRelationships(t)));
|
const rels: (Relationship[])[] = children
|
||||||
result = result.concat(rels.flat());
|
.map(((t: Topic) => this._collectInDepthRelationships(t)));
|
||||||
|
|
||||||
|
// flatten and concact
|
||||||
|
result = result.concat(([].concat(...rels)));
|
||||||
|
|
||||||
if (result.length > 0) {
|
if (result.length > 0) {
|
||||||
// Filter for unique ...
|
// Filter for unique ...
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
"noImplicitAny": false,
|
"noImplicitAny": false,
|
||||||
"module": "amd",
|
"module": "amd",
|
||||||
"moduleResolution": "node",
|
"moduleResolution": "node",
|
||||||
"target": "es6",
|
"target": "ES2020",
|
||||||
"allowJs": true,
|
"allowJs": true,
|
||||||
"esModuleInterop": true,
|
"esModuleInterop": true,
|
||||||
"declaration": true,
|
"declaration": true,
|
||||||
|
Loading…
Reference in New Issue
Block a user