From 9b55f554483202aae839e272b9e482d4aaeacc4c Mon Sep 17 00:00:00 2001 From: Maximilian Giller <m.giller@tu-bs.de> Date: Sun, 4 Sep 2022 23:32:35 +0200 Subject: [PATCH] Added some details to documentation --- src/editor/js/structures/graph/node.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/editor/js/structures/graph/node.ts b/src/editor/js/structures/graph/node.ts index dfa16a2..e79dbc7 100644 --- a/src/editor/js/structures/graph/node.ts +++ b/src/editor/js/structures/graph/node.ts @@ -115,8 +115,8 @@ export class Node extends GraphElement implements Common.Node { } /** - * Connects a given node to itself. Only works if they are in the same graph. - * @param node Other node to connect. + * Connects a given node to itself. Only works if they are in the same graph. This node will be source. + * @param node Other node to connect. Will be target. * @returns The created link, if successful, otherwise undefined. */ public connect(node: Node): Link { -- GitLab