Variables
Const ACTIVE_CLASS
ACTIVE_CLASS: "active" = "active"
Const BOX_BORDER
BOX_BORDER: 2 = 2
Const DEFAULT_FONT_FAMILY
DEFAULT_FONT_FAMILY: "Lucida Console" = "Lucida Console"
Const DESIRED_LABELS_COUNT
DESIRED_LABELS_COUNT: 6 = 6
Const FPS_INTERVAL
FPS_INTERVAL: number = 1000 / 60
Const LINE_GAP
LINE_GAP: 10 = 10
Const LOCALES
LOCALES: string[] = ['en-GB', 'en-US', 'ru-RU']
Const LONG_PRESS_DURATION
LONG_PRESS_DURATION: 1000 = 1000
Const MOUSE_MOVE_THROTTLE
MOUSE_MOVE_THROTTLE: number = 1000 / 100
Let _canvas
_canvas: HTMLCanvasElement | undefined
Const chartAnimator
Const dateDayMonthFormatter
dateDayMonthFormatter: DateTimeFormat = new Intl.DateTimeFormat(LOCALES, {day: 'numeric',month: 'short',})
Const dateFullFormatter
dateFullFormatter: DateTimeFormat = new Intl.DateTimeFormat(LOCALES, {day: '2-digit',month: 'short',year: 'numeric',weekday: 'short',})
Const halfBar
halfBar: 0.5 = 0.5
Let handleColor
handleColor: string = ""
Const numberLocalFormatter
numberLocalFormatter: NumberFormat = new Intl.NumberFormat(['ru-RU'], { useGrouping: true })
Const svg
svg: SVGSVGElement = document.createElementNS('http://www.w3.org/2000/svg', 'svg')