[eric] tree: group Dashboard geometry helpers into geometry/

This commit is contained in:
ciregenz
2026-05-23 12:23:01 -07:00
parent d2d6816d8a
commit f3206f3606
8 changed files with 7 additions and 7 deletions
@@ -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,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;