merge: combine all features from both codebases - mobile dashboard + layer panel + notifications + shares + all fixes
This commit is contained in:
@@ -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).
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user