Show More
@@ -36,6 +36,14 function Graph() { | |||||
36 | this.columns = 0; |
|
36 | this.columns = 0; | |
37 | this.revlink = ''; |
|
37 | this.revlink = ''; | |
38 |
|
38 | |||
|
39 | this.reset = function() { | |||
|
40 | this.bg = [0, 4]; | |||
|
41 | this.cell = [2, 0]; | |||
|
42 | this.columns = 0; | |||
|
43 | document.getElementById('nodebgs').innerHTML = ''; | |||
|
44 | document.getElementById('graphnodes').innerHTML = ''; | |||
|
45 | } | |||
|
46 | ||||
39 | this.scale = function(height) { |
|
47 | this.scale = function(height) { | |
40 | this.bg_height = height; |
|
48 | this.bg_height = height; | |
41 | this.box_size = Math.floor(this.bg_height / 1.2); |
|
49 | this.box_size = Math.floor(this.bg_height / 1.2); |
General Comments 0
You need to be logged in to leave comments.
Login now