Skip to content

Commit

Permalink
fix: don't import the entire damn geo component structure to get a value
Browse files Browse the repository at this point in the history
  • Loading branch information
hoorayimhelping committed Feb 26, 2021
1 parent 066329f commit 370281a
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
1 change: 0 additions & 1 deletion giraffe/src/components/Geo.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ import {
import {Config, Table} from '../types'

// Constants
export const LEAFLET_Z_INDEX = 399
const ZOOM_FRACTION = 8

interface Props extends Partial<GeoLayerConfig> {
Expand Down
3 changes: 3 additions & 0 deletions giraffe/src/constants/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -138,3 +138,6 @@ export const ANNOTATION_DEFAULT_HOVER_MARGIN = 20

export const ANNOTATION_TOOLTIP_CONTAINER_NAME =
'giraffe-annotation-tooltip-container'

// Geo stuff
export const LEAFLET_Z_INDEX = 399
3 changes: 1 addition & 2 deletions giraffe/src/utils/useTooltipStyle.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import {useLayoutStyle} from './useLayoutStyle'
import {useRefMousePos} from './useMousePos'
import {LEAFLET_Z_INDEX} from '../components/Geo'
import {CLOCKFACE_Z_INDEX} from '../constants'
import {CLOCKFACE_Z_INDEX, LEAFLET_Z_INDEX} from '../constants'
import {AnnotationTooltipOptions} from '../types'

const MARGIN_X = 30
Expand Down

0 comments on commit 370281a

Please sign in to comment.