Skip to content

Commit 21f64e2

Browse files
committed
connection improvement when nodes are part of group ?
1 parent e21afcd commit 21f64e2

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

libs/visual-programming-system/src/components/connection.ts

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -504,6 +504,19 @@ export class Connection<T extends BaseNodeInfo> {
504504
let updateThumbs = false;
505505

506506
if (!target || x === undefined || y === undefined || !initiator) {
507+
(
508+
this.pathTransparentElement?.domElement as SVGPathElement
509+
).classList.remove('hidden');
510+
if (this.nodeComponent?.startNode && this.nodeComponent?.endNode) {
511+
if (
512+
this.nodeComponent.startNode.nodeInfo?.isInGroup ||
513+
this.nodeComponent.endNode.nodeInfo?.isInGroup
514+
) {
515+
(
516+
this.pathTransparentElement?.domElement as SVGPathElement
517+
).classList.add('hidden');
518+
}
519+
}
507520
// needed for updating without using parameters (...update() )
508521
if (this.nodeComponent?.startNode) {
509522
const start = this.onCalculateControlPoints(

0 commit comments

Comments
 (0)