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