update useNodeConnections

This commit is contained in:
peterkogo
2025-01-09 16:15:10 +01:00
11 changed files with 98 additions and 78 deletions
+14
View File
@@ -263,3 +263,17 @@ export function evaluateAbsolutePosition(
return positionAbsolute;
}
export function areSetsEqual(a: Set<string>, b: Set<string>) {
if (a.size !== b.size) {
return false;
}
for (const item of a) {
if (!b.has(item)) {
return false;
}
}
return true;
}