All files / web/src/arcade-games/know-your-world/features/labels index.ts

100% Statements 39/39
100% Branches 0/0
100% Functions 0/0
100% Lines 39/39

Press n or j to go to the next uncovered block, b, p or k for the previous block.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 401x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x  
/**
 * Labels feature module
 *
 * This module handles all label-related functionality for the Know Your World game:
 * - D3 force simulation for label positioning
 * - Label rendering (regular and small region labels with arrows)
 * - Cursor proximity fading
 * - Viewport calculations for SVG coordinate conversion
 */
 
// Components
export { LabelLayer } from './LabelLayer'
export type { LabelLayerProps } from './LabelLayer'
 
// Hooks
export { useD3ForceLabels } from './useD3ForceLabels'
export type {
  GuessHistoryItem,
  UseD3ForceLabelsParams,
  UseD3ForceLabelsReturn,
} from './useD3ForceLabels'
 
// Utilities
export {
  calculateLabelOpacity,
  getArrowStartPoint,
  getRenderedViewport,
  LABEL_FADE_RADIUS,
  LABEL_MIN_OPACITY,
} from './labelUtils'
 
// Types
export type {
  ForceTuningConfig,
  PlayerMetadata,
  RegionLabelPosition,
  RenderedViewport,
  SmallRegionLabelPosition,
} from './types'