From 560aa567c55ced8a83b7389647dbec73a0cabf14 Mon Sep 17 00:00:00 2001 From: Paulo Gustavo Veiga Date: Mon, 24 Jan 2022 11:51:20 -0800 Subject: [PATCH] Fix compilation --- packages/mindplot/src/components/model/IMindmap.ts | 3 +-- packages/mindplot/src/components/model/Mindmap.ts | 7 ------- 2 files changed, 1 insertion(+), 9 deletions(-) diff --git a/packages/mindplot/src/components/model/IMindmap.ts b/packages/mindplot/src/components/model/IMindmap.ts index 133d833d..a13edab3 100644 --- a/packages/mindplot/src/components/model/IMindmap.ts +++ b/packages/mindplot/src/components/model/IMindmap.ts @@ -19,7 +19,6 @@ */ import { $assert } from '@wisemapping/core-js'; import INodeModel, { NodeModelType as NodeType } from './INodeModel'; -import NodeModel from './NodeModel'; import RelationshipModel from './RelationshipModel'; abstract class IMindmap { @@ -76,7 +75,7 @@ abstract class IMindmap { abstract createNode(type: NodeType, id: number): INodeModel - abstract createRelationship(fromNode: NodeModel, toNode: NodeModel): void; + abstract createRelationship(fromNodeId: number, toNodeId: number): void; abstract addRelationship(rel: RelationshipModel): void; diff --git a/packages/mindplot/src/components/model/Mindmap.ts b/packages/mindplot/src/components/model/Mindmap.ts index 39c01a21..1c92b580 100644 --- a/packages/mindplot/src/components/model/Mindmap.ts +++ b/packages/mindplot/src/components/model/Mindmap.ts @@ -126,13 +126,6 @@ class Mindmap extends IMindmap { return new NodeModel(type, this, id); } - /** - * @param sourceNodeId - * @param targetNodeId - * @throws will throw an error if source node is null or undefined - * @throws will throw an error if target node is null or undefined - * @return the relationship model created - */ createRelationship(sourceNodeId: number, targetNodeId: number):RelationshipModel { $assert($defined(sourceNodeId), 'from node cannot be null'); $assert($defined(targetNodeId), 'to node cannot be null');