merge: combine all features from both codebases - mobile dashboard + layer panel + notifications + shares + all fixes

This commit is contained in:
Leopoldadmin
2026-07-04 16:43:55 +02:00
parent 0606dbb501
commit be62470b53
79 changed files with 9562 additions and 3132 deletions
@@ -81,6 +81,7 @@ export class GroupManager {
/**
* Move all elements in a group by dx, dy.
* Returns the list of element IDs that need to be modified.
* Also returns the delta values so the caller can apply the actual movement.
*/
moveGroup(groupId: string, _dx: number, _dy: number): string[] {
const group = this.groups.get(groupId);
@@ -88,6 +89,18 @@ export class GroupManager {
return [...group.elementIds];
}
/**
* Get all element IDs belonging to the same group as the given element ID.
* Returns an array including the element itself if it's in a group.
*/
getGroupElements(elementId: string): string[] {
const groupId = this.getGroupForElement(elementId);
if (!groupId) return [elementId];
const group = this.groups.get(groupId);
if (!group) return [elementId];
return [...group.elementIds];
}
/**
* Set parent group (nesting).
*/