/*global ks_global*/ export const COLOR_PALETTE = [ "rgb(104, 169, 77)", "rgb(102, 75, 154)", "rgb(41, 171, 226)", "rgb(224, 133, 35)", "rgb(214, 207, 126)", "rgb(239, 65, 35)", "rgb(255, 255, 255)", ]; export const LINK_WIDTH = 3; export const HOVER_LINK_WIDTH = 6; export const NODE_SIZE: [number, number, number] = [8, 8, 8]; export const HIGHLIGHTED_NODE_SIZE: [number, number, number] = [12, 12, 12]; // Just renaming a variable which is given by the PHP script. This avoids errors in all other files. // eslint-disable-next-line @typescript-eslint/ban-ts-comment // @ts-ignore export const PLUGIN_PATH = ks_global.plugin_path; // eslint-disable-next-line @typescript-eslint/ban-ts-comment // @ts-ignore export let SPACE = ks_global.space_id; // eslint-disable-next-line @typescript-eslint/ban-ts-comment // @ts-ignore export const MODE = ks_global.mode; export function setSpace(space: string) { SPACE = space; } export const DRAG_THRESHOLD_3D = 10; export const DRAG_THRESHOLD_2D = 5;