Skip to content

Commit

Permalink
Deprecate old chart for analysis
Browse files Browse the repository at this point in the history
  • Loading branch information
hanbyul-here committed Sep 26, 2024
1 parent 8b51d78 commit 94126b5
Show file tree
Hide file tree
Showing 16 changed files with 64 additions and 1,232 deletions.
8 changes: 7 additions & 1 deletion app/scripts/components/common/aoi/use-aoi-controls.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { RefObject, useCallback, useState } from 'react';
import { useDeepCompareEffect } from 'use-deep-compare';
import { Map as MapboxMap } from 'mapbox-gl';

import { MapboxMapRef } from '../mapbox';
import { AoiChangeListenerOverload, AoiState } from './types';
import { makeFeatureCollection } from './utils';

Expand All @@ -13,6 +13,12 @@ const DEFAULT_PARAMETERS = {
actionOrigin: null
};

export interface MapboxMapRef {
resize: () => void;
instance: MapboxMap | null;
compareInstance: MapboxMap | null;
}

export function useAoiControls(
mapRef: RefObject<MapboxMapRef>,
initialState: Partial<AoiState> = {}
Expand Down
53 changes: 0 additions & 53 deletions app/scripts/components/common/chart/analysis/control.tsx

This file was deleted.

77 changes: 0 additions & 77 deletions app/scripts/components/common/chart/analysis/index.tsx

This file was deleted.

32 changes: 0 additions & 32 deletions app/scripts/components/common/chart/analysis/svg-legend.tsx

This file was deleted.

Loading

0 comments on commit 94126b5

Please sign in to comment.