-
Notifications
You must be signed in to change notification settings - Fork 1
/
global_varibales.js
62 lines (42 loc) · 1.07 KB
/
global_varibales.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
// mode e.g. square / circle / text / edit
var mode = 1;
// wether input is expected
var read = false;
// true = show grid
var grid_status = true;
// true = display lines curved
var curve_status = true;
// list of objects
var objects = [];
// list of lines
var lines = [];
// size of grid square
var griding = 20;
// prefix for input translation e.g. -alpha
var prefix = "\\";
// size of text in objects
var text_size = "14px";
// radius of circle
var radius = 40;
// width of square
var square_w = 100;
// height of square
var square_h = 60;
// wether a new line has been started
var init_line = true;
// start point of a new line
var start_point = null;
// the last selected object for multiple select
var last_selected = 0;
// the object of most objects
var main_stroke_color = "black";
// body and fill color
var main_fill_color = "white";
// the color of the grid
var grid_color = "#d0d0d0";
// selection color
var selection_color = "#bbbbff";
// background color of canvas
var background_color = "#e0e0e0";
// switch variable for light / dark mode
var dark_mode = false;