Skip to content
This repository was archived by the owner on Oct 21, 2025. It is now read-only.
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions src/features/dfdElements/portSnapper.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,11 @@ export class PortAwareSnapper implements ISnapper {
private snapPort(position: Point, element: SPortImpl): Point {
const parentElement = element.parent;

if (parentElement instanceof SPortImpl) {
// Parent is not a node, so we cannot snap the port to the node edges
return position;
}

if (!isBoundsAware(parentElement)) {
// Cannot get the parent size, just return the original position and don't snap
return position;
Expand Down