Vizzuality/landgriffon

View on GitHub
cookie-traceability/src/lib/flowmap/data/FlowMapState.ts

Summary

Maintainability
A
0 mins
Test Coverage
import { LocationFilterMode, ViewportProps } from './types';

export interface FilterState {
  selectedLocations: string[] | undefined;
  selectedTimeRange: [Date, Date] | undefined;
  locationFilterMode: LocationFilterMode;
}

export interface SettingsState {
  animationEnabled: boolean;
  fadeEnabled: boolean;
  locationTotalsEnabled: boolean;
  adaptiveScalesEnabled: boolean;
  clusteringEnabled: boolean;
  clusteringAuto: boolean;
  clusteringLevel?: number;
  darkMode: boolean;
  fadeAmount: number;
  colorScheme: string | undefined;
}

export interface FlowMapState {
  filterState: FilterState;
  settingsState: SettingsState;
  viewport: ViewportProps;
}