export const COLORS = ['#FF6600', '#0088FF', '#03DC03']; // none, res, enl export const COLORS_FRACTION = { 'N': COLORS[0], 'R': COLORS[1], 'E': COLORS[2] }; // none, res, enl export const COLORS_LVL = ['#000', '#FECE5A', '#FFA630', '#FF7315', '#E40000', '#FD2992', '#EB26CD', '#C124E0', '#9627F4']; export const COLORS_MOD = { VERY_RARE: '#b08cff', RARE: '#73a8ff', COMMON: '#8cffbf' }; export const RESO_NRG = [0, 1000, 1500, 2000, 2500, 3000, 4000, 5000, 6000]; export const MOD_TYPE = { RES_SHIELD: 'Shield', MULTIHACK: 'Multi-hack', FORCE_AMP: 'Force Amp', HEATSINK: 'Heat Sink', TURRET: 'Turret', LINK_AMPLIFIER: 'Link Amp' }; export const DEFAULT_ZOOM_TO_LEVEL = [8,8,8,8,7,7,7,6,6,5,4,4,3,2,2,1,1,1,1,1,1,1,1]; export const DEFAULT_ZOOM_TO_LINK_LENGTH = [200000,200000,200000,200000,200000,60000,60000,10000,5000,2500,2500,800,300,0,0]; export const NAVIGATORS = { "ymaps": "yandexnavi://build_route_on_map?lat_to=&lon_to=&no-balloon=0&desc=", "2gis": "dgis://2gis.ru/routeSearch/rsType/car/to/<lon>,<lat>", "maps.me": "https://dlink.maps.me/map?v=1&ll=<lat>,<lon>&n=<title>&id=<title>&appname=IngressHelper&type=vehicle", "default": "geo:<lat>,<lon>" } export const NavTo = (lat, lon, title, by) => { if (!by) { by = 'default' } return NAVIGATORS[by].replace('<lat>', lat).replace('<lon>', lon).replace('<title>', title) }