system-canvas-standalone 0.2.43 → 0.2.44

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -15447,7 +15447,15 @@ var SystemCanvas = (() => {
15447
15447
  continue;
15448
15448
  if (y < n.y || y > n.y + n.height)
15449
15449
  continue;
15450
- if (cb([st.source], n))
15450
+ const movingNodes = [st.source];
15451
+ for (const [id2] of st.moving) {
15452
+ if (id2 !== st.source.id) {
15453
+ const mn = nodesRef.current?.find((r) => r.id === id2);
15454
+ if (mn)
15455
+ movingNodes.push(mn);
15456
+ }
15457
+ }
15458
+ if (cb(movingNodes, n))
15451
15459
  return n.id;
15452
15460
  return null;
15453
15461
  }
@@ -15499,7 +15507,15 @@ var SystemCanvas = (() => {
15499
15507
  const nodes = nodesRef.current;
15500
15508
  const target = nodes?.find((n) => n.id === dropTarget) ?? null;
15501
15509
  if (target && onNodeDropRef.current) {
15502
- onNodeDropRef.current([st.source], target);
15510
+ const movingNodes = [st.source];
15511
+ for (const [id2] of st.moving) {
15512
+ if (id2 !== st.source.id) {
15513
+ const mn = nodesRef.current?.find((r) => r.id === id2);
15514
+ if (mn)
15515
+ movingNodes.push(mn);
15516
+ }
15517
+ }
15518
+ onNodeDropRef.current(movingNodes, target);
15503
15519
  stateRef.current = null;
15504
15520
  movedRef.current = false;
15505
15521
  dropTargetIdRef.current = null;