@@ 200-214 (lines=15) @@ | ||
197 | if (t == true) { this._selectedSubItems = m; } |
|
198 | return t; |
|
199 | } |
|
200 | this._getSubItemToDeselectByPolygon = function(polygon) { |
|
201 | var m = new Array(); |
|
202 | for (var q=0; q<this._selectedSubItems.length; q++) { |
|
203 | if (this._selectedSubItems[q][1] == polygon) { |
|
204 | m[m.length] = this._selectedSubItems[q][0]; |
|
205 | m = m.concat(this._getSubItemToDeselectByPolygon(this._selectedSubItems[q][0])); |
|
206 | var t = true; |
|
207 | for (var w=0; w<this._openedPolygons.length; w++) { if (this._openedPolygons[w] == this._selectedSubItems[q][0]) { t = false; } } |
|
208 | if (t == true) { this._openedPolygons[this._openedPolygons.length] = this._selectedSubItems[q][0]; } |
|
209 | this._selectedSubItems[q][0] = -1; |
|
210 | this._selectedSubItems[q][1] = -1; |
|
211 | } |
|
212 | } |
|
213 | return m; |
|
214 | } |
|
215 | /* end */ |
|
216 | /* define polygon's position for dinamic content rendering and shows it, added in version 0.3 */ |
|
217 | this._hidePolygon = function(id) { |
@@ 191-205 (lines=15) @@ | ||
188 | if (t == true) { this._selectedSubItems = m; } |
|
189 | return t; |
|
190 | } |
|
191 | this._getSubItemToDeselectByPolygon = function(polygon) { |
|
192 | var m = new Array(); |
|
193 | for (var q=0; q<this._selectedSubItems.length; q++) { |
|
194 | if (this._selectedSubItems[q][1] == polygon) { |
|
195 | m[m.length] = this._selectedSubItems[q][0]; |
|
196 | m = m.concat(this._getSubItemToDeselectByPolygon(this._selectedSubItems[q][0])); |
|
197 | var t = true; |
|
198 | for (var w=0; w<this._openedPolygons.length; w++) { if (this._openedPolygons[w] == this._selectedSubItems[q][0]) { t = false; } } |
|
199 | if (t == true) { this._openedPolygons[this._openedPolygons.length] = this._selectedSubItems[q][0]; } |
|
200 | this._selectedSubItems[q][0] = -1; |
|
201 | this._selectedSubItems[q][1] = -1; |
|
202 | } |
|
203 | } |
|
204 | return m; |
|
205 | } |
|
206 | /* end */ |
|
207 | /* define polygon's position for dinamic content rendering and shows it, added in version 0.3 */ |
|
208 | this._hidePolygon = function(id) { |