mirror of
https://github.com/openswarm-ai/openswarm.git
synced 2026-09-12 12:47:42 +02:00
[eric] tree: group Dashboard geometry helpers into geometry/
This commit is contained in:
@@ -16,7 +16,7 @@ import type {
|
||||
import type { Output } from '@/shared/state/outputsSlice';
|
||||
import type { CardType, useDashboardSelection } from './useDashboardSelection';
|
||||
import type { useCanvasControls } from './useCanvasControls';
|
||||
import type { Tether } from './dashboardTethers';
|
||||
import type { Tether } from './geometry/dashboardTethers';
|
||||
|
||||
type Selection = ReturnType<typeof useDashboardSelection>;
|
||||
type Canvas = ReturnType<typeof useCanvasControls>;
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import React from 'react';
|
||||
import type { ClaudeTokens } from '@/shared/styles/claudeTokens';
|
||||
import type { Tether } from './dashboardTethers';
|
||||
import type { Tether } from './geometry/dashboardTethers';
|
||||
|
||||
const TETHER_FADE_MS = 2500;
|
||||
|
||||
|
||||
+1
-1
@@ -1,5 +1,5 @@
|
||||
import { store } from '@/shared/state/store';
|
||||
import type { CardType } from './useDashboardSelection';
|
||||
import type { CardType } from '../useDashboardSelection';
|
||||
|
||||
// Reads a card's rect straight from the live Redux store (collapsed height,
|
||||
// which is what the zoom math wants). Module-level + store.getState() so the
|
||||
@@ -4,11 +4,11 @@ import { useElementSelection } from '@/app/components/ElementSelectionContext';
|
||||
import { useCanvasControls } from './useCanvasControls';
|
||||
import { useDashboardSelection } from './useDashboardSelection';
|
||||
import { useDashboardSelectors } from './useDashboardSelectors';
|
||||
import { getCardRect } from './getCardRect';
|
||||
import { computeContentBounds } from './contentBounds';
|
||||
import { getCardRect } from './geometry/getCardRect';
|
||||
import { computeContentBounds } from './geometry/contentBounds';
|
||||
import { useDashboardUiState } from './useDashboardUiState';
|
||||
import { useLayoutSave } from './useLayoutSave';
|
||||
import { useTethers } from './dashboardTethers';
|
||||
import { useTethers } from './geometry/dashboardTethers';
|
||||
import { useArrowNav } from './useArrowNav';
|
||||
import { useDashboardShortcuts } from './useDashboardShortcuts';
|
||||
import { useDashboardClipboard } from './useDashboardClipboard';
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import { useCallback, useEffect, useRef, type RefObject } from 'react';
|
||||
import { store } from '@/shared/state/store';
|
||||
import { updateDashboardThumbnail } from '@/shared/state/dashboardsSlice';
|
||||
import { captureDashboardThumbnail } from './captureDashboardThumbnail';
|
||||
import { captureDashboardThumbnail } from './geometry/captureDashboardThumbnail';
|
||||
|
||||
interface UseDashboardThumbnailArgs {
|
||||
isActive: boolean;
|
||||
|
||||
Reference in New Issue
Block a user