Show More
@@ -40,7 +40,6 b' Graph.prototype = {' | |||||
40 | this.bg = [0, 4]; |
|
40 | this.bg = [0, 4]; | |
41 | this.cell = [2, 0]; |
|
41 | this.cell = [2, 0]; | |
42 | this.columns = 0; |
|
42 | this.columns = 0; | |
43 | document.getElementById('nodebgs').innerHTML = ''; |
|
|||
44 | }, |
|
43 | }, | |
45 |
|
44 | |||
46 | scale: function(height) { |
|
45 | scale: function(height) { | |
@@ -102,14 +101,10 b' Graph.prototype = {' | |||||
102 | if (item) { |
|
101 | if (item) { | |
103 | item.style.paddingLeft = left + 'px'; |
|
102 | item.style.paddingLeft = left + 'px'; | |
104 | } |
|
103 | } | |
105 |
|
||||
106 | return ['', '']; |
|
|||
107 | }, |
|
104 | }, | |
108 |
|
105 | |||
109 | render: function(data) { |
|
106 | render: function(data) { | |
110 |
|
107 | |||
111 | var backgrounds = ''; |
|
|||
112 | var nodedata = ''; |
|
|||
113 | var i, j, cur, line, start, end, color, x, y, x0, y0, x1, y1, column, radius; |
|
108 | var i, j, cur, line, start, end, color, x, y, x0, y0, x1, y1, column, radius; | |
114 |
|
109 | |||
115 | var cols = 0; |
|
110 | var cols = 0; | |
@@ -172,17 +167,12 b' Graph.prototype = {' | |||||
172 | radius = this.box_size / 8; |
|
167 | radius = this.box_size / 8; | |
173 | x = this.cell[0] + this.box_size * column + this.box_size / 2; |
|
168 | x = this.cell[0] + this.box_size * column + this.box_size / 2; | |
174 | y = this.bg[1] - this.bg_height / 2; |
|
169 | y = this.bg[1] - this.bg_height / 2; | |
175 |
|
|
170 | this.vertex(x, y, radius, color, parity, cur); | |
176 | backgrounds += add[0]; |
|
|||
177 | nodedata += add[1]; |
|
|||
178 |
|
171 | |||
179 | if (fold) this.columns -= 1; |
|
172 | if (fold) this.columns -= 1; | |
180 |
|
173 | |||
181 | } |
|
174 | } | |
182 |
|
175 | |||
183 | document.getElementById('nodebgs').innerHTML += backgrounds; |
|
|||
184 | document.getElementById('graphnodes').innerHTML += nodedata; |
|
|||
185 |
|
||||
186 | } |
|
176 | } | |
187 |
|
177 | |||
188 | }; |
|
178 | }; |
General Comments 0
You need to be logged in to leave comments.
Login now