-
Notifications
You must be signed in to change notification settings - Fork 0
/
globals.js
62 lines (48 loc) · 1.44 KB
/
globals.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
// Data set
// This is what gets loaded into the g_barChart data structure
let g_dataset = [];
// Global Array for data promises
// This is the raw data loaded
// from a JSON file
// This data consists of several components including:
// - Antipatterns
// - files
// - promises
let g_rawPromiseData = {};
// Used to track total antipatterns
let g_totalAntiPatterns = 0;
let g_AntiPatternData = [];
let g_AntiPatternCount = new Map(); // Counts how many of each anti-pattern were found.
// The key is the pattern ID, the value is the
// Retrieve the url parameters
// This is to be useful for passing around projects
let g_URLParams;
// Improves the performance of the visualization
// When set to 'true' performance will be improved.
let g_disableFriendlyErrors = true;
let g_txt ='';
let g_sourceFilesMap = new Map();
let g_totalKeys = 0;
let g_sourceCounts = new Map();
// The filename to load for the project
let g_filename = "";
// Scale of how zoomed in we are in our visualization
let g_scale = 1.0;
// Offset
let g_offsetX = 0;
let g_offsetY = 0;
// Used in range selection
let g_mouseIsCurrentlyDown = 0;
let g_mouseBeforeDownX=0;
let g_mouseBeforeDownY=0;
let g_scrollX=0;
let g_scrollY=0;
// Variables to hold mouse position
// for when we zoom
let g_zoomMouseX = 0;
let g_zoomMouseY =0;
// Button Widgets
let g_shareURLButtonWidget;
let g_loadProjectButtonWidget;
// Glow for highlighted promise
let g_glow = 255;