File size: 439 Bytes
1e92f2d
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
import { INDICATOR_PADDING } from '../components/devtools-indicator/devtools-indicator'
import type { OverlayState } from '../shared'

export const BASE_LOGO_SIZE = 36
const INDICATOR_GAP = 9

export function getIndicatorSquare(state: OverlayState): number {
  return BASE_LOGO_SIZE / state.scale
}

export function getIndicatorOffset(state: OverlayState): number {
  return INDICATOR_PADDING + getIndicatorSquare(state) + INDICATOR_GAP
}