feat(network): add group/ungroup commands with bounding box calculation

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
chihlasm
2026-04-13 20:14:26 +00:00
parent a4512dcf90
commit b7b0d41f92
3 changed files with 73 additions and 5 deletions

View File

@@ -1,5 +1,5 @@
import { memo, useState, useRef, useEffect } from 'react'
import { NodeProps, NodeResizer, useReactFlow } from '@xyflow/react'
import { NodeResizer, useReactFlow, type NodeProps } from '@xyflow/react'
import type { GroupNodeData } from '@/types/network-diagram'
const GROUP_COLORS: Record<string, string> = {