import { Size, Coords, SceneInput } from 'src/types'; import { customVars } from './styles/theme'; export const UNPROJECTED_TILE_SIZE = 100; export const TILE_PROJECTION_MULTIPLIERS: Size = { width: 1.415, height: 0.819 }; export const DEFAULT_COLOR = customVars.diagramPalette.blue; interface ConnectorDefaults { width: number; searchOffset: Coords; } export const CONNECTOR_DEFAULTS: ConnectorDefaults = { width: 4, // The boundaries of the search area for the pathfinder algorithm // is the grid that encompasses the two nodes + the offset below. searchOffset: { x: 3, y: 3 } }; export const NODE_DEFAULTS = { label: '', labelHeight: 140, color: DEFAULT_COLOR }; export const ZOOM_INCREMENT = 0.2; export const MIN_ZOOM = 0.2; export const MAX_ZOOM = 1; export const EMPTY_SCENE: SceneInput = { icons: [], nodes: [], connectors: [], groups: [] };