-
Notifications
You must be signed in to change notification settings - Fork 4
/
constants.js
62 lines (56 loc) · 1.95 KB
/
constants.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
export const
SHAPE_SQUARE = 'square',
SHAPE_TRIANGLE = 'triangle',
SHAPE_HEXAGON = 'hexagon',
SHAPE_CIRCLE = 'circle',
ALGORITHM_NONE = 'none',
ALGORITHM_BINARY_TREE = 'binaryTree',
ALGORITHM_SIDEWINDER = 'sidewinder',
ALGORITHM_ALDOUS_BRODER = 'aldousBroder',
ALGORITHM_WILSON = 'wilson',
ALGORITHM_HUNT_AND_KILL = 'huntAndKill',
ALGORITHM_RECURSIVE_BACKTRACK = 'recursiveBacktrack',
ALGORITHM_KRUSKAL = 'kruskal',
ALGORITHM_SIMPLIFIED_PRIMS = 'simplifiedPrims',
ALGORITHM_TRUE_PRIMS = 'truePrims',
ALGORITHM_ELLERS = 'ellers',
DIRECTION_NORTH = 'n',
DIRECTION_SOUTH = 's',
DIRECTION_EAST = 'e',
DIRECTION_WEST = 'w',
DIRECTION_NORTH_WEST = 'nw',
DIRECTION_NORTH_EAST = 'ne',
DIRECTION_SOUTH_WEST = 'sw',
DIRECTION_SOUTH_EAST = 'se',
DIRECTION_CLOCKWISE = 'cw',
DIRECTION_ANTICLOCKWISE = 'acw',
DIRECTION_INWARDS = 'in',
DIRECTION_OUTWARDS = 'out',
EVENT_CLICK = 'click',
EVENT_MOUSE_OVER = 'mouseOver',
METADATA_VISITED = 'visited',
METADATA_SET_ID = 'setId',
METADATA_MAX_DISTANCE = 'maxDistance',
METADATA_DISTANCE = 'distance',
METADATA_PATH = 'path',
METADATA_MASKED = 'masked',
METADATA_CURRENT_CELL = 'current',
METADATA_UNPROCESSED_CELL = 'unprocessed',
METADATA_START_CELL = 'startCell',
METADATA_END_CELL = 'endCell',
METADATA_COST = 'cost',
METADATA_PLAYER_CURRENT = 'playerCurrent',
METADATA_PLAYER_VISITED = 'playerVisited',
METADATA_RAW_COORDS = 'rawCoords',
EXITS_NONE = 'no exits',
EXITS_HARDEST = 'hardest',
EXITS_HORIZONTAL = 'horizontal',
EXITS_VERTICAL = 'vertical',
PATH_COLOUR = '#006BB7',
CELL_BACKGROUND_COLOUR = 'white',
CELL_MASKED_COLOUR = 'grey',
CELL_UNPROCESSED_CELL_COLOUR = '#bbb',
CELL_PLAYER_CURRENT_COLOUR = PATH_COLOUR,
CELL_PLAYER_VISITED_COLOUR = PATH_COLOUR + '44',
CELL_CURRENT_CELL_COLOUR = PATH_COLOUR,
WALL_COLOUR = 'black';