Commit e9c4306362b7561d648656166395ee018f31714c
Added capability for fetching JSON
- myVector.js 6 ++++++
- openlayers.html 33 -------------------------++++++++
- tree.js 1313 ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
| | | | 11 | [4263.0000, -1630.33337, 4559.0000, -1342.33337] | 11 | [4263.0000, -1630.33337, 4559.0000, -1342.33337] |
---|
12 | ]; | 12 | ]; |
---|
13 | var myJSON = []; | 13 | var myJSON = []; |
---|
| | 14 | var ans = { |
---|
| | 15 | ans: [] |
---|
| | 16 | }; |
---|
14 | // avoid pink tiles | 17 | // avoid pink tiles |
---|
15 | OpenLayers.IMAGE_RELOAD_ATTEMPTS = 3; | 18 | OpenLayers.IMAGE_RELOAD_ATTEMPTS = 3; |
---|
16 | OpenLayers.Util.onImageLoadErrorColor = "transparent"; | 19 | OpenLayers.Util.onImageLoadErrorColor = "transparent"; |
---|
… | | … | |
---|
79 | map.addPopup(z); | 79 | map.addPopup(z); |
---|
80 | } | 80 | } |
---|
81 | function init(){ | 81 | function init(){ |
---|
| | 82 | $.get("http://192.168.100.56:82/fetch", function(data){ |
---|
| | 83 | ans.ans = JSON.parse(data); |
---|
| | 84 | }); |
---|
82 | var options = { | 85 | var options = { |
---|
83 | controls: [], | 86 | controls: [], |
---|
84 | maxExtent: new OpenLayers.Bounds( 0.0, -4668.0, 31110.0, 0.0 ), | 87 | maxExtent: new OpenLayers.Bounds( 0.0, -4668.0, 31110.0, 0.0 ), |
---|
| | | | 1 | <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> | 1 | <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> |
---|
2 | <html xmlns="http://www.w3.org/1999/xhtml" | 2 | <html xmlns="http://www.w3.org/1999/xhtml" |
---|
3 | <head> | 3 | <head> |
---|
4 | <script type="text/javascript" src="http://code.jquery.com/jquery-1.7.min.js"></script> | | <script type="text/javascript" src="http://code.jquery.com/jquery-1.7.min.js"></script> |
---|
5 | <script type="text/javascript"> | 4 | <script type="text/javascript"> |
---|
6 | function annotationTree() { | | function annotationTree() { |
---|
7 | $('#annotation-tree').show(); | | $('#annotation-tree').show(); |
---|
| | 5 | function annotationTree() { | | | 6 | tree_div = document.getElementById('annotation-tree'); |
---|
| | 7 | tree_div.style.display = 'block'; |
---|
8 | } | 8 | } |
---|
9 | | | |
---|
10 | function closeForm() { | | function closeForm() { |
---|
11 | $('#annotation-tree').hide(); | | $('#annotation-tree').hide(); |
---|
12 | } | | } |
---|
13 | | | |
---|
14 | function faceOrnament() { | | function faceOrnament() { |
---|
15 | x = document.getElementsByClassName('annotate'); | | x = document.getElementsByClassName('annotate'); |
---|
16 | if(x[0].checked == true && x[0].value == 'face') { | | if(x[0].checked == true && x[0].value == 'face') { |
---|
17 | $('face').show(); | | $('face').show(); |
---|
18 | } | | } |
---|
19 | else if (x[1].checked == true && x[1].value == 'ornament') { | | else if (x[1].checked == true && x[1].value == 'ornament') { |
---|
20 | $('ornament').show(); | | $('ornament').show(); |
---|
21 | } | | } |
---|
22 | else { | | else { |
---|
23 | alert('Please select any one of the option') | | alert('Please select any one of the option') |
---|
24 | } | | } |
---|
25 | } | | } |
---|
26 | </script> | 9 | </script> |
---|
| | 10 | <script type="text/javascript" src="http://code.jquery.com/jquery-1.7.min.js"></script> |
---|
| | 11 | <script type="text/javascript" src="./jit.js"></script> |
---|
| | 12 | <script type="text/javascript" src="./tree.js"></script> |
---|
27 | <style type='text/css'> | 13 | <style type='text/css'> |
---|
28 | #annotation-tree { | 14 | #annotation-tree { |
---|
29 | position:fixed; | 15 | position:fixed; |
---|
… | | … | |
---|
21 | display:none; | 21 | display:none; |
---|
22 | z-index:99999; | 22 | z-index:99999; |
---|
23 | } | 23 | } |
---|
24 | #face, #ornament { | | #face, #ornament { |
---|
25 | display:none; | | display:none; |
---|
26 | } | | } |
---|
27 | </style> | 24 | </style> |
---|
28 | <title>Lepakshi Mural</title> | 25 | <title>Lepakshi Mural</title> |
---|
29 | <meta http-equiv='imagetoolbar' content='no'/> | 26 | <meta http-equiv='imagetoolbar' content='no'/> |
---|
30 | <!-- <link rel="stylesheet" type="text/css" href="./tree.css"></link> --> | | <!-- <link rel="stylesheet" type="text/css" href="./tree.css"></link> --> |
---|
| | 27 | <link rel="stylesheet" type="text/css" href="./tree.css"></link> | 31 | <style type="text/css"> v\:* {behavior:url(#default#VML);} | 28 | <style type="text/css"> v\:* {behavior:url(#default#VML);} |
---|
32 | html, body {padding: 0; height: 100%; width: 100%; font-family: 'Lucida Grande',Geneva,Arial,Verdana,sans-serif; } | 29 | html, body {padding: 0; height: 100%; width: 100%; font-family: 'Lucida Grande',Geneva,Arial,Verdana,sans-serif; } |
---|
33 | body { margin: 10px; background: #fff; } | 30 | body { margin: 10px; background: #fff; } |
---|
… | | … | |
---|
70 | <label for="boxToggle">Tag this</label> | 70 | <label for="boxToggle">Tag this</label> |
---|
71 | </li> | 71 | </li> |
---|
72 | </ul> | 72 | </ul> |
---|
73 | <input type="button" id="publish" value="publish" onClick="publish();" disabled="true"/> | | <input type="button" id="publish" value="publish" onClick="publish();" disabled="true"/> |
---|
| | 73 | <input type="button" value="publish" onClick="publish();" id="publish" disabled="true"/> | 74 | </div> | 74 | </div> |
---|
75 | <script type="text/javascript" >resize()</script> | 75 | <script type="text/javascript" >resize()</script> |
---|
76 | <div id="annotation-tree"> | 76 | <div id="annotation-tree"> |
---|
| | | | 1 | var labelType, useGradients, nativeTextSupport, animate; | 1 | var labelType, useGradients, nativeTextSupport, animate; |
---|
2 | | 2 | |
---|
3 | (function() { | 3 | (function() { |
---|
4 | var ua = navigator.userAgent, | | var ua = navigator.userAgent, |
---|
5 | iStuff = ua.match(/iPhone/i) || ua.match(/iPad/i), | | iStuff = ua.match(/iPhone/i) || ua.match(/iPad/i), |
---|
6 | typeOfCanvas = typeof HTMLCanvasElement, | | typeOfCanvas = typeof HTMLCanvasElement, |
---|
7 | nativeCanvasSupport = (typeOfCanvas == 'object' || typeOfCanvas == 'function'), | | nativeCanvasSupport = (typeOfCanvas == 'object' || typeOfCanvas == 'function'), |
---|
8 | textSupport = nativeCanvasSupport | | textSupport = nativeCanvasSupport |
---|
| | 4 | var ua = navigator.userAgent, | | | 5 | iStuff = ua.match(/iPhone/i) || ua.match(/iPad/i), |
---|
| | 6 | typeOfCanvas = typeof HTMLCanvasElement, |
---|
| | 7 | nativeCanvasSupport = (typeOfCanvas == 'object' || typeOfCanvas == 'function'), |
---|
| | 8 | textSupport = nativeCanvasSupport |
---|
9 | && (typeof document.createElement('canvas').getContext('2d').fillText == 'function'); | 9 | && (typeof document.createElement('canvas').getContext('2d').fillText == 'function'); |
---|
10 | //I'm setting this based on the fact that ExCanvas provides text support for IE | | //I'm setting this based on the fact that ExCanvas provides text support for IE |
---|
11 | //and that as of today iPhone/iPad current text support is lame | | //and that as of today iPhone/iPad current text support is lame |
---|
12 | labelType = (!nativeCanvasSupport || (textSupport && !iStuff))? 'Native' : 'HTML'; | | labelType = (!nativeCanvasSupport || (textSupport && !iStuff))? 'Native' : 'HTML'; |
---|
13 | nativeTextSupport = labelType == 'Native'; | | nativeTextSupport = labelType == 'Native'; |
---|
14 | useGradients = nativeCanvasSupport; | | useGradients = nativeCanvasSupport; |
---|
15 | animate = !(iStuff || !nativeCanvasSupport); | | animate = !(iStuff || !nativeCanvasSupport); |
---|
| | 10 | //I'm setting this based on the fact that ExCanvas provides text support for IE | | | 11 | //and that as of today iPhone/iPad current text support is lame |
---|
| | 12 | labelType = (!nativeCanvasSupport || (textSupport && !iStuff))? 'Native' : 'HTML'; |
---|
| | 13 | nativeTextSupport = labelType == 'Native'; |
---|
| | 14 | useGradients = nativeCanvasSupport; |
---|
| | 15 | animate = !(iStuff || !nativeCanvasSupport); |
---|
16 | })(); | 16 | })(); |
---|
17 | | 17 | |
---|
18 | var Log = { | | var Log = { |
---|
19 | elem: false, | | elem: false, |
---|
20 | write: function(text){ | | write: function(text){ |
---|
21 | if (!this.elem) | | if (!this.elem) |
---|
22 | this.elem = document.getElementById('log'); | | this.elem = document.getElementById('log'); |
---|
23 | this.elem.innerHTML = text; | | this.elem.innerHTML = text; |
---|
24 | this.elem.style.left = (500 - this.elem.offsetWidth / 2) + 'px'; | | this.elem.style.left = (500 - this.elem.offsetWidth / 2) + 'px'; |
---|
25 | } | | } |
---|
26 | }; | | }; |
---|
27 | | | |
---|
28 | | | |
---|
29 | function inits(){ | 18 | function inits(){ |
---|
30 | //init data | 19 | //init data |
---|
31 | var json = { | 20 | var json = { |
---|
32 | id: "node02", | | id: "node02", |
---|
33 | name: "0.2", | | name: "0.2", |
---|
34 | data: {}, | | data: {}, |
---|
35 | children: [{ | | children: [{ |
---|
36 | id: "node13", | | id: "node13", |
---|
37 | name: "1.3", | | name: "1.3", |
---|
38 | data: {}, | | data: {}, |
---|
39 | children: [{ | | children: [{ |
---|
40 | id: "node24", | | id: "node24", |
---|
41 | name: "2.4", | | name: "2.4", |
---|
42 | data: {}, | | data: {}, |
---|
43 | children: [{ | | children: [{ |
---|
44 | id: "node35", | | id: "node35", |
---|
45 | name: "3.5", | | name: "3.5", |
---|
46 | data: {}, | | data: {}, |
---|
47 | children: [{ | | children: [{ |
---|
48 | id: "node46", | | id: "node46", |
---|
49 | name: "4.6", | | name: "4.6", |
---|
50 | data: {}, | | data: {}, |
---|
51 | children: [] | | children: [] |
---|
52 | }] | | }] |
---|
53 | }, { | | }, { |
---|
54 | id: "node37", | | id: "node37", |
---|
55 | name: "3.7", | | name: "3.7", |
---|
56 | data: {}, | | data: {}, |
---|
57 | children: [{ | | children: [{ |
---|
58 | id: "node48", | | id: "node48", |
---|
59 | name: "4.8", | | name: "4.8", |
---|
60 | data: {}, | | data: {}, |
---|
61 | children: [] | | children: [] |
---|
62 | }, { | | }, { |
---|
63 | id: "node49", | | id: "node49", |
---|
64 | name: "4.9", | | name: "4.9", |
---|
65 | data: {}, | | data: {}, |
---|
66 | children: [] | | children: [] |
---|
67 | }, { | | }, { |
---|
68 | id: "node410", | | id: "node410", |
---|
69 | name: "4.10", | | name: "4.10", |
---|
70 | data: {}, | | data: {}, |
---|
71 | children: [] | | children: [] |
---|
72 | }, { | | }, { |
---|
73 | id: "node411", | | id: "node411", |
---|
74 | name: "4.11", | | name: "4.11", |
---|
75 | data: {}, | | data: {}, |
---|
76 | children: [] | | children: [] |
---|
77 | }] | | }] |
---|
78 | }, { | | }, { |
---|
79 | id: "node312", | | id: "node312", |
---|
80 | name: "3.12", | | name: "3.12", |
---|
81 | data: {}, | | data: {}, |
---|
82 | children: [{ | | children: [{ |
---|
83 | id: "node413", | | id: "node413", |
---|
84 | name: "4.13", | | name: "4.13", |
---|
85 | data: {}, | | data: {}, |
---|
86 | children: [] | | children: [] |
---|
87 | }] | | }] |
---|
88 | }, { | | }, { |
---|
89 | id: "node314", | | id: "node314", |
---|
90 | name: "3.14", | | name: "3.14", |
---|
91 | data: {}, | | data: {}, |
---|
92 | children: [{ | | children: [{ |
---|
93 | id: "node415", | | id: "node415", |
---|
94 | name: "4.15", | | name: "4.15", |
---|
95 | data: {}, | | data: {}, |
---|
96 | children: [] | | children: [] |
---|
97 | }, { | | }, { |
---|
98 | id: "node416", | | id: "node416", |
---|
99 | name: "4.16", | | name: "4.16", |
---|
100 | data: {}, | | data: {}, |
---|
101 | children: [] | | children: [] |
---|
102 | }, { | | }, { |
---|
103 | id: "node417", | | id: "node417", |
---|
104 | name: "4.17", | | name: "4.17", |
---|
105 | data: {}, | | data: {}, |
---|
106 | children: [] | | children: [] |
---|
107 | }, { | | }, { |
---|
108 | id: "node418", | | id: "node418", |
---|
109 | name: "4.18", | | name: "4.18", |
---|
110 | data: {}, | | data: {}, |
---|
111 | children: [] | | children: [] |
---|
112 | }] | | }] |
---|
113 | }, { | | }, { |
---|
114 | id: "node319", | | id: "node319", |
---|
115 | name: "3.19", | | name: "3.19", |
---|
116 | data: {}, | | data: {}, |
---|
117 | children: [{ | | children: [{ |
---|
118 | id: "node420", | | id: "node420", |
---|
119 | name: "4.20", | | name: "4.20", |
---|
120 | data: {}, | | data: {}, |
---|
121 | children: [] | | children: [] |
---|
122 | }, { | | }, { |
---|
123 | id: "node421", | | id: "node421", |
---|
124 | name: "4.21", | | name: "4.21", |
---|
125 | data: {}, | | data: {}, |
---|
126 | children: [] | | children: [] |
---|
127 | }] | | }] |
---|
128 | }] | | }] |
---|
129 | }, { | | }, { |
---|
130 | id: "node222", | | id: "node222", |
---|
131 | name: "2.22", | | name: "2.22", |
---|
132 | data: {}, | | data: {}, |
---|
133 | children: [{ | | children: [{ |
---|
134 | id: "node323", | | id: "node323", |
---|
135 | name: "3.23", | | name: "3.23", |
---|
136 | data: {}, | | data: {}, |
---|
137 | children: [{ | | children: [{ |
---|
138 | id: "node424", | | id: "node424", |
---|
139 | name: "4.24", | | name: "4.24", |
---|
140 | data: {}, | | data: {}, |
---|
141 | children: [] | | children: [] |
---|
142 | }] | | }] |
---|
143 | }] | | }] |
---|
144 | }] | | }] |
---|
145 | }, { | | }, { |
---|
146 | id: "node125", | | id: "node125", |
---|
147 | name: "1.25", | | name: "1.25", |
---|
148 | data: {}, | | data: {}, |
---|
149 | children: [{ | | children: [{ |
---|
150 | id: "node226", | | id: "node226", |
---|
151 | name: "2.26", | | name: "2.26", |
---|
152 | data: {}, | | data: {}, |
---|
153 | children: [{ | | children: [{ |
---|
154 | id: "node327", | | id: "node327", |
---|
155 | name: "3.27", | | name: "3.27", |
---|
156 | data: {}, | | data: {}, |
---|
157 | children: [{ | | children: [{ |
---|
158 | id: "node428", | | id: "node428", |
---|
159 | name: "4.28", | | name: "4.28", |
---|
160 | data: {}, | | data: {}, |
---|
161 | children: [] | | children: [] |
---|
162 | }, { | | }, { |
---|
163 | id: "node429", | | id: "node429", |
---|
164 | name: "4.29", | | name: "4.29", |
---|
165 | data: {}, | | data: {}, |
---|
166 | children: [] | | children: [] |
---|
167 | }] | | }] |
---|
168 | }, { | | }, { |
---|
169 | id: "node330", | | id: "node330", |
---|
170 | name: "3.30", | | name: "3.30", |
---|
171 | data: {}, | | data: {}, |
---|
172 | children: [{ | | children: [{ |
---|
173 | id: "node431", | | id: "node431", |
---|
174 | name: "4.31", | | name: "4.31", |
---|
175 | data: {}, | | data: {}, |
---|
176 | children: [] | | children: [] |
---|
177 | }] | | }] |
---|
178 | }, { | | }, { |
---|
179 | id: "node332", | | id: "node332", |
---|
180 | name: "3.32", | | name: "3.32", |
---|
181 | data: {}, | | data: {}, |
---|
182 | children: [{ | | children: [{ |
---|
183 | id: "node433", | | id: "node433", |
---|
184 | name: "4.33", | | name: "4.33", |
---|
185 | data: {}, | | data: {}, |
---|
186 | children: [] | | children: [] |
---|
187 | }, { | | }, { |
---|
188 | id: "node434", | | id: "node434", |
---|
189 | name: "4.34", | | name: "4.34", |
---|
190 | data: {}, | | data: {}, |
---|
191 | children: [] | | children: [] |
---|
192 | }, { | | }, { |
---|
193 | id: "node435", | | id: "node435", |
---|
194 | name: "4.35", | | name: "4.35", |
---|
195 | data: {}, | | data: {}, |
---|
196 | children: [] | | children: [] |
---|
197 | }, { | | }, { |
---|
198 | id: "node436", | | id: "node436", |
---|
199 | name: "4.36", | | name: "4.36", |
---|
200 | data: {}, | | data: {}, |
---|
201 | children: [] | | children: [] |
---|
202 | }] | | }] |
---|
203 | }] | | }] |
---|
204 | }, { | | }, { |
---|
205 | id: "node237", | | id: "node237", |
---|
206 | name: "2.37", | | name: "2.37", |
---|
207 | data: {}, | | data: {}, |
---|
208 | children: [{ | | children: [{ |
---|
209 | id: "node338", | | id: "node338", |
---|
210 | name: "3.38", | | name: "3.38", |
---|
211 | data: {}, | | data: {}, |
---|
212 | children: [{ | | children: [{ |
---|
213 | id: "node439", | | id: "node439", |
---|
214 | name: "4.39", | | name: "4.39", |
---|
215 | data: {}, | | data: {}, |
---|
216 | children: [] | | children: [] |
---|
217 | }, { | | }, { |
---|
218 | id: "node440", | | id: "node440", |
---|
219 | name: "4.40", | | name: "4.40", |
---|
220 | data: {}, | | data: {}, |
---|
221 | children: [] | | children: [] |
---|
222 | }, { | | }, { |
---|
223 | id: "node441", | | id: "node441", |
---|
224 | name: "4.41", | | name: "4.41", |
---|
225 | data: {}, | | data: {}, |
---|
226 | children: [] | | children: [] |
---|
227 | }] | | }] |
---|
228 | }, { | | }, { |
---|
229 | id: "node342", | | id: "node342", |
---|
230 | name: "3.42", | | name: "3.42", |
---|
231 | data: {}, | | data: {}, |
---|
232 | children: [{ | | children: [{ |
---|
233 | id: "node443", | | id: "node443", |
---|
234 | name: "4.43", | | name: "4.43", |
---|
235 | data: {}, | | data: {}, |
---|
236 | children: [] | | children: [] |
---|
237 | }] | | }] |
---|
238 | }, { | | }, { |
---|
239 | id: "node344", | | id: "node344", |
---|
240 | name: "3.44", | | name: "3.44", |
---|
241 | data: {}, | | data: {}, |
---|
242 | children: [{ | | children: [{ |
---|
243 | id: "node445", | | id: "node445", |
---|
244 | name: "4.45", | | name: "4.45", |
---|
245 | data: {}, | | data: {}, |
---|
246 | children: [] | | children: [] |
---|
247 | }, { | | }, { |
---|
248 | id: "node446", | | id: "node446", |
---|
249 | name: "4.46", | | name: "4.46", |
---|
250 | data: {}, | | data: {}, |
---|
251 | children: [] | | children: [] |
---|
252 | }, { | | }, { |
---|
253 | id: "node447", | | id: "node447", |
---|
254 | name: "4.47", | | name: "4.47", |
---|
255 | data: {}, | | data: {}, |
---|
256 | children: [] | | children: [] |
---|
257 | }] | | }] |
---|
258 | }, { | | }, { |
---|
259 | id: "node348", | | id: "node348", |
---|
260 | name: "3.48", | | name: "3.48", |
---|
261 | data: {}, | | data: {}, |
---|
262 | children: [{ | | children: [{ |
---|
263 | id: "node449", | | id: "node449", |
---|
264 | name: "4.49", | | name: "4.49", |
---|
265 | data: {}, | | data: {}, |
---|
266 | children: [] | | children: [] |
---|
267 | }, { | | }, { |
---|
268 | id: "node450", | | id: "node450", |
---|
269 | name: "4.50", | | name: "4.50", |
---|
270 | data: {}, | | data: {}, |
---|
271 | children: [] | | children: [] |
---|
272 | }, { | | }, { |
---|
273 | id: "node451", | | id: "node451", |
---|
274 | name: "4.51", | | name: "4.51", |
---|
275 | data: {}, | | data: {}, |
---|
276 | children: [] | | children: [] |
---|
277 | }, { | | }, { |
---|
278 | id: "node452", | | id: "node452", |
---|
279 | name: "4.52", | | name: "4.52", |
---|
280 | data: {}, | | data: {}, |
---|
281 | children: [] | | children: [] |
---|
282 | }, { | | }, { |
---|
283 | id: "node453", | | id: "node453", |
---|
284 | name: "4.53", | | name: "4.53", |
---|
285 | data: {}, | | data: {}, |
---|
286 | children: [] | | children: [] |
---|
287 | }] | | }] |
---|
288 | }, { | | }, { |
---|
289 | id: "node354", | | id: "node354", |
---|
290 | name: "3.54", | | name: "3.54", |
---|
291 | data: {}, | | data: {}, |
---|
292 | children: [{ | | children: [{ |
---|
293 | id: "node455", | | id: "node455", |
---|
294 | name: "4.55", | | name: "4.55", |
---|
295 | data: {}, | | data: {}, |
---|
296 | children: [] | | children: [] |
---|
297 | }, { | | }, { |
---|
298 | id: "node456", | | id: "node456", |
---|
299 | name: "4.56", | | name: "4.56", |
---|
300 | data: {}, | | data: {}, |
---|
301 | children: [] | | children: [] |
---|
302 | }, { | | }, { |
---|
303 | id: "node457", | | id: "node457", |
---|
304 | name: "4.57", | | name: "4.57", |
---|
305 | data: {}, | | data: {}, |
---|
306 | children: [] | | children: [] |
---|
307 | }] | | }] |
---|
308 | }] | | }] |
---|
309 | }, { | | }, { |
---|
310 | id: "node258", | | id: "node258", |
---|
311 | name: "2.58", | | name: "2.58", |
---|
312 | data: {}, | | data: {}, |
---|
313 | children: [{ | | children: [{ |
---|
314 | id: "node359", | | id: "node359", |
---|
315 | name: "3.59", | | name: "3.59", |
---|
316 | data: {}, | | data: {}, |
---|
317 | children: [{ | | children: [{ |
---|
318 | id: "node460", | | id: "node460", |
---|
319 | name: "4.60", | | name: "4.60", |
---|
320 | data: {}, | | data: {}, |
---|
321 | children: [] | | children: [] |
---|
322 | }, { | | }, { |
---|
323 | id: "node461", | | id: "node461", |
---|
324 | name: "4.61", | | name: "4.61", |
---|
325 | data: {}, | | data: {}, |
---|
326 | children: [] | | children: [] |
---|
327 | }, { | | }, { |
---|
328 | id: "node462", | | id: "node462", |
---|
329 | name: "4.62", | | name: "4.62", |
---|
330 | data: {}, | | data: {}, |
---|
331 | children: [] | | children: [] |
---|
332 | }, { | | }, { |
---|
333 | id: "node463", | | id: "node463", |
---|
334 | name: "4.63", | | name: "4.63", |
---|
335 | data: {}, | | data: {}, |
---|
336 | children: [] | | children: [] |
---|
337 | }, { | | }, { |
---|
338 | id: "node464", | | id: "node464", |
---|
339 | name: "4.64", | | name: "4.64", |
---|
340 | data: {}, | | data: {}, |
---|
341 | children: [] | | children: [] |
---|
342 | }] | | }] |
---|
343 | }] | | }] |
---|
344 | }] | | }] |
---|
345 | }, { | | }, { |
---|
346 | id: "node165", | | id: "node165", |
---|
347 | name: "1.65", | | name: "1.65", |
---|
348 | data: {}, | | data: {}, |
---|
349 | children: [{ | | children: [{ |
---|
350 | id: "node266", | | id: "node266", |
---|
351 | name: "2.66", | | name: "2.66", |
---|
352 | data: {}, | | data: {}, |
---|
353 | children: [{ | | children: [{ |
---|
354 | id: "node367", | | id: "node367", |
---|
355 | name: "3.67", | | name: "3.67", |
---|
356 | data: {}, | | data: {}, |
---|
357 | children: [{ | | children: [{ |
---|
358 | id: "node468", | | id: "node468", |
---|
359 | name: "4.68", | | name: "4.68", |
---|
360 | data: {}, | | data: {}, |
---|
361 | children: [] | | children: [] |
---|
362 | }, { | | }, { |
---|
363 | id: "node469", | | id: "node469", |
---|
364 | name: "4.69", | | name: "4.69", |
---|
365 | data: {}, | | data: {}, |
---|
366 | children: [] | | children: [] |
---|
367 | }, { | | }, { |
---|
368 | id: "node470", | | id: "node470", |
---|
369 | name: "4.70", | | name: "4.70", |
---|
370 | data: {}, | | data: {}, |
---|
371 | children: [] | | children: [] |
---|
372 | }, { | | }, { |
---|
373 | id: "node471", | | id: "node471", |
---|
374 | name: "4.71", | | name: "4.71", |
---|
375 | data: {}, | | data: {}, |
---|
376 | children: [] | | children: [] |
---|
377 | }] | | }] |
---|
378 | }, { | | }, { |
---|
379 | id: "node372", | | id: "node372", |
---|
380 | name: "3.72", | | name: "3.72", |
---|
381 | data: {}, | | data: {}, |
---|
382 | children: [{ | | children: [{ |
---|
383 | id: "node473", | | id: "node473", |
---|
384 | name: "4.73", | | name: "4.73", |
---|
385 | data: {}, | | data: {}, |
---|
386 | children: [] | | children: [] |
---|
387 | }, { | | }, { |
---|
388 | id: "node474", | | id: "node474", |
---|
389 | name: "4.74", | | name: "4.74", |
---|
390 | data: {}, | | data: {}, |
---|
391 | children: [] | | children: [] |
---|
392 | }, { | | }, { |
---|
393 | id: "node475", | | id: "node475", |
---|
394 | name: "4.75", | | name: "4.75", |
---|
395 | data: {}, | | data: {}, |
---|
396 | children: [] | | children: [] |
---|
397 | }, { | | }, { |
---|
398 | id: "node476", | | id: "node476", |
---|
399 | name: "4.76", | | name: "4.76", |
---|
400 | data: {}, | | data: {}, |
---|
401 | children: [] | | children: [] |
---|
402 | }] | | }] |
---|
403 | }, { | | }, { |
---|
404 | id: "node377", | | id: "node377", |
---|
405 | name: "3.77", | | name: "3.77", |
---|
406 | data: {}, | | data: {}, |
---|
407 | children: [{ | | children: [{ |
---|
408 | id: "node478", | | id: "node478", |
---|
409 | name: "4.78", | | name: "4.78", |
---|
410 | data: {}, | | data: {}, |
---|
411 | children: [] | | children: [] |
---|
412 | }, { | | }, { |
---|
413 | id: "node479", | | id: "node479", |
---|
414 | name: "4.79", | | name: "4.79", |
---|
415 | data: {}, | | data: {}, |
---|
416 | children: [] | | children: [] |
---|
417 | }] | | }] |
---|
418 | }, { | | }, { |
---|
419 | id: "node380", | | id: "node380", |
---|
420 | name: "3.80", | | name: "3.80", |
---|
421 | data: {}, | | data: {}, |
---|
422 | children: [{ | | children: [{ |
---|
423 | id: "node481", | | id: "node481", |
---|
424 | name: "4.81", | | name: "4.81", |
---|
425 | data: {}, | | data: {}, |
---|
426 | children: [] | | children: [] |
---|
427 | }, { | | }, { |
---|
428 | id: "node482", | | id: "node482", |
---|
429 | name: "4.82", | | name: "4.82", |
---|
430 | data: {}, | | data: {}, |
---|
431 | children: [] | | children: [] |
---|
432 | }] | | }] |
---|
433 | }] | | }] |
---|
434 | }, { | | }, { |
---|
435 | id: "node283", | | id: "node283", |
---|
436 | name: "2.83", | | name: "2.83", |
---|
437 | data: {}, | | data: {}, |
---|
438 | children: [{ | | children: [{ |
---|
439 | id: "node384", | | id: "node384", |
---|
440 | name: "3.84", | | name: "3.84", |
---|
441 | data: {}, | | data: {}, |
---|
442 | children: [{ | | children: [{ |
---|
443 | id: "node485", | | id: "node485", |
---|
444 | name: "4.85", | | name: "4.85", |
---|
445 | data: {}, | | data: {}, |
---|
446 | children: [] | | children: [] |
---|
447 | }] | | }] |
---|
448 | }, { | | }, { |
---|
449 | id: "node386", | | id: "node386", |
---|
450 | name: "3.86", | | name: "3.86", |
---|
451 | data: {}, | | data: {}, |
---|
452 | children: [{ | | children: [{ |
---|
453 | id: "node487", | | id: "node487", |
---|
454 | name: "4.87", | | name: "4.87", |
---|
455 | data: {}, | | data: {}, |
---|
456 | children: [] | | children: [] |
---|
457 | }, { | | }, { |
---|
458 | id: "node488", | | id: "node488", |
---|
459 | name: "4.88", | | name: "4.88", |
---|
460 | data: {}, | | data: {}, |
---|
461 | children: [] | | children: [] |
---|
462 | }, { | | }, { |
---|
463 | id: "node489", | | id: "node489", |
---|
464 | name: "4.89", | | name: "4.89", |
---|
465 | data: {}, | | data: {}, |
---|
466 | children: [] | | children: [] |
---|
467 | }, { | | }, { |
---|
468 | id: "node490", | | id: "node490", |
---|
469 | name: "4.90", | | name: "4.90", |
---|
470 | data: {}, | | data: {}, |
---|
471 | children: [] | | children: [] |
---|
472 | }, { | | }, { |
---|
473 | id: "node491", | | id: "node491", |
---|
474 | name: "4.91", | | name: "4.91", |
---|
475 | data: {}, | | data: {}, |
---|
476 | children: [] | | children: [] |
---|
477 | }] | | }] |
---|
478 | }, { | | }, { |
---|
479 | id: "node392", | | id: "node392", |
---|
480 | name: "3.92", | | name: "3.92", |
---|
481 | data: {}, | | data: {}, |
---|
482 | children: [{ | | children: [{ |
---|
483 | id: "node493", | | id: "node493", |
---|
484 | name: "4.93", | | name: "4.93", |
---|
485 | data: {}, | | data: {}, |
---|
486 | children: [] | | children: [] |
---|
487 | }, { | | }, { |
---|
488 | id: "node494", | | id: "node494", |
---|
489 | name: "4.94", | | name: "4.94", |
---|
490 | data: {}, | | data: {}, |
---|
491 | children: [] | | children: [] |
---|
492 | }, { | | }, { |
---|
493 | id: "node495", | | id: "node495", |
---|
494 | name: "4.95", | | name: "4.95", |
---|
495 | data: {}, | | data: {}, |
---|
496 | children: [] | | children: [] |
---|
497 | }, { | | }, { |
---|
498 | id: "node496", | | id: "node496", |
---|
499 | name: "4.96", | | name: "4.96", |
---|
500 | data: {}, | | data: {}, |
---|
501 | children: [] | | children: [] |
---|
502 | }] | | }] |
---|
503 | }, { | | }, { |
---|
504 | id: "node397", | | id: "node397", |
---|
505 | name: "3.97", | | name: "3.97", |
---|
506 | data: {}, | | data: {}, |
---|
507 | children: [{ | | children: [{ |
---|
508 | id: "node498", | | id: "node498", |
---|
509 | name: "4.98", | | name: "4.98", |
---|
510 | data: {}, | | data: {}, |
---|
511 | children: [] | | children: [] |
---|
512 | }] | | }] |
---|
513 | }, { | | }, { |
---|
514 | id: "node399", | | id: "node399", |
---|
515 | name: "3.99", | | name: "3.99", |
---|
516 | data: {}, | | data: {}, |
---|
517 | children: [{ | | children: [{ |
---|
518 | id: "node4100", | | id: "node4100", |
---|
519 | name: "4.100", | | name: "4.100", |
---|
520 | data: {}, | | data: {}, |
---|
521 | children: [] | | children: [] |
---|
522 | }, { | | }, { |
---|
523 | id: "node4101", | | id: "node4101", |
---|
524 | name: "4.101", | | name: "4.101", |
---|
525 | data: {}, | | data: {}, |
---|
526 | children: [] | | children: [] |
---|
527 | }, { | | }, { |
---|
528 | id: "node4102", | | id: "node4102", |
---|
529 | name: "4.102", | | name: "4.102", |
---|
530 | data: {}, | | data: {}, |
---|
531 | children: [] | | children: [] |
---|
532 | }, { | | }, { |
---|
533 | id: "node4103", | | id: "node4103", |
---|
534 | name: "4.103", | | name: "4.103", |
---|
535 | data: {}, | | data: {}, |
---|
536 | children: [] | | children: [] |
---|
537 | }] | | }] |
---|
538 | }] | | }] |
---|
539 | }, { | | }, { |
---|
540 | id: "node2104", | | id: "node2104", |
---|
541 | name: "2.104", | | name: "2.104", |
---|
542 | data: {}, | | data: {}, |
---|
543 | children: [{ | | children: [{ |
---|
544 | id: "node3105", | | id: "node3105", |
---|
545 | name: "3.105", | | name: "3.105", |
---|
546 | data: {}, | | data: {}, |
---|
547 | children: [{ | | children: [{ |
---|
548 | id: "node4106", | | id: "node4106", |
---|
549 | name: "4.106", | | name: "4.106", |
---|
550 | data: {}, | | data: {}, |
---|
551 | children: [] | | children: [] |
---|
552 | }, { | | }, { |
---|
553 | id: "node4107", | | id: "node4107", |
---|
554 | name: "4.107", | | name: "4.107", |
---|
555 | data: {}, | | data: {}, |
---|
556 | children: [] | | children: [] |
---|
557 | }, { | | }, { |
---|
558 | id: "node4108", | | id: "node4108", |
---|
559 | name: "4.108", | | name: "4.108", |
---|
560 | data: {}, | | data: {}, |
---|
561 | children: [] | | children: [] |
---|
562 | }] | | }] |
---|
563 | }] | | }] |
---|
564 | }, { | | }, { |
---|
565 | id: "node2109", | | id: "node2109", |
---|
566 | name: "2.109", | | name: "2.109", |
---|
567 | data: {}, | | data: {}, |
---|
568 | children: [{ | | children: [{ |
---|
569 | id: "node3110", | | id: "node3110", |
---|
570 | name: "3.110", | | name: "3.110", |
---|
571 | data: {}, | | data: {}, |
---|
572 | children: [{ | | children: [{ |
---|
573 | id: "node4111", | | id: "node4111", |
---|
574 | name: "4.111", | | name: "4.111", |
---|
575 | data: {}, | | data: {}, |
---|
576 | children: [] | | children: [] |
---|
577 | }, { | | }, { |
---|
578 | id: "node4112", | | id: "node4112", |
---|
579 | name: "4.112", | | name: "4.112", |
---|
580 | data: {}, | | data: {}, |
---|
581 | children: [] | | children: [] |
---|
582 | }] | | }] |
---|
583 | }, { | | }, { |
---|
584 | id: "node3113", | | id: "node3113", |
---|
585 | name: "3.113", | | name: "3.113", |
---|
586 | data: {}, | | data: {}, |
---|
587 | children: [{ | | children: [{ |
---|
588 | id: "node4114", | | id: "node4114", |
---|
589 | name: "4.114", | | name: "4.114", |
---|
590 | data: {}, | | data: {}, |
---|
591 | children: [] | | children: [] |
---|
592 | }, { | | }, { |
---|
593 | id: "node4115", | | id: "node4115", |
---|
594 | name: "4.115", | | name: "4.115", |
---|
595 | data: {}, | | data: {}, |
---|
596 | children: [] | | children: [] |
---|
597 | }, { | | }, { |
---|
598 | id: "node4116", | | id: "node4116", |
---|
599 | name: "4.116", | | name: "4.116", |
---|
600 | data: {}, | | data: {}, |
---|
601 | children: [] | | children: [] |
---|
602 | }] | | }] |
---|
603 | }, { | | }, { |
---|
604 | id: "node3117", | | id: "node3117", |
---|
605 | name: "3.117", | | name: "3.117", |
---|
606 | data: {}, | | data: {}, |
---|
607 | children: [{ | | children: [{ |
---|
608 | id: "node4118", | | id: "node4118", |
---|
609 | name: "4.118", | | name: "4.118", |
---|
610 | data: {}, | | data: {}, |
---|
611 | children: [] | | children: [] |
---|
612 | }, { | | }, { |
---|
613 | id: "node4119", | | id: "node4119", |
---|
614 | name: "4.119", | | name: "4.119", |
---|
615 | data: {}, | | data: {}, |
---|
616 | children: [] | | children: [] |
---|
617 | }, { | | }, { |
---|
618 | id: "node4120", | | id: "node4120", |
---|
619 | name: "4.120", | | name: "4.120", |
---|
620 | data: {}, | | data: {}, |
---|
621 | children: [] | | children: [] |
---|
622 | }, { | | }, { |
---|
623 | id: "node4121", | | id: "node4121", |
---|
624 | name: "4.121", | | name: "4.121", |
---|
625 | data: {}, | | data: {}, |
---|
626 | children: [] | | children: [] |
---|
627 | }] | | }] |
---|
628 | }, { | | }, { |
---|
629 | id: "node3122", | | id: "node3122", |
---|
630 | name: "3.122", | | name: "3.122", |
---|
631 | data: {}, | | data: {}, |
---|
632 | children: [{ | | children: [{ |
---|
633 | id: "node4123", | | id: "node4123", |
---|
634 | name: "4.123", | | name: "4.123", |
---|
635 | data: {}, | | data: {}, |
---|
636 | children: [] | | children: [] |
---|
637 | }, { | | }, { |
---|
638 | id: "node4124", | | id: "node4124", |
---|
639 | name: "4.124", | | name: "4.124", |
---|
640 | data: {}, | | data: {}, |
---|
641 | children: [] | | children: [] |
---|
642 | }] | | }] |
---|
643 | }] | | }] |
---|
644 | }, { | | }, { |
---|
645 | id: "node2125", | | id: "node2125", |
---|
646 | name: "2.125", | | name: "2.125", |
---|
647 | data: {}, | | data: {}, |
---|
648 | children: [{ | | children: [{ |
---|
649 | id: "node3126", | | id: "node3126", |
---|
650 | name: "3.126", | | name: "3.126", |
---|
651 | data: {}, | | data: {}, |
---|
652 | children: [{ | | children: [{ |
---|
653 | id: "node4127", | | id: "node4127", |
---|
654 | name: "4.127", | | name: "4.127", |
---|
655 | data: {}, | | data: {}, |
---|
656 | children: [] | | children: [] |
---|
657 | }, { | | }, { |
---|
658 | id: "node4128", | | id: "node4128", |
---|
659 | name: "4.128", | | name: "4.128", |
---|
660 | data: {}, | | data: {}, |
---|
661 | children: [] | | children: [] |
---|
662 | }, { | | }, { |
---|
663 | id: "node4129", | | id: "node4129", |
---|
664 | name: "4.129", | | name: "4.129", |
---|
665 | data: {}, | | data: {}, |
---|
666 | children: [] | | children: [] |
---|
667 | }] | | }] |
---|
668 | }] | | }] |
---|
669 | }] | | }] |
---|
670 | }, { | | }, { |
---|
671 | id: "node1130", | | id: "node1130", |
---|
672 | name: "1.130", | | name: "1.130", |
---|
673 | data: {}, | | data: {}, |
---|
674 | children: [{ | | children: [{ |
---|
675 | id: "node2131", | | id: "node2131", |
---|
676 | name: "2.131", | | name: "2.131", |
---|
677 | data: {}, | | data: {}, |
---|
678 | children: [{ | | children: [{ |
---|
679 | id: "node3132", | | id: "node3132", |
---|
680 | name: "3.132", | | name: "3.132", |
---|
681 | data: {}, | | data: {}, |
---|
682 | children: [{ | | children: [{ |
---|
683 | id: "node4133", | | id: "node4133", |
---|
684 | name: "4.133", | | name: "4.133", |
---|
685 | data: {}, | | data: {}, |
---|
686 | children: [] | | children: [] |
---|
687 | }, { | | }, { |
---|
688 | id: "node4134", | | id: "node4134", |
---|
689 | name: "4.134", | | name: "4.134", |
---|
690 | data: {}, | | data: {}, |
---|
691 | children: [] | | children: [] |
---|
692 | }, { | | }, { |
---|
693 | id: "node4135", | | id: "node4135", |
---|
694 | name: "4.135", | | name: "4.135", |
---|
695 | data: {}, | | data: {}, |
---|
696 | children: [] | | children: [] |
---|
697 | }, { | | }, { |
---|
698 | id: "node4136", | | id: "node4136", |
---|
699 | name: "4.136", | | name: "4.136", |
---|
700 | data: {}, | | data: {}, |
---|
701 | children: [] | | children: [] |
---|
702 | }, { | | }, { |
---|
703 | id: "node4137", | | id: "node4137", |
---|
704 | name: "4.137", | | name: "4.137", |
---|
705 | data: {}, | | data: {}, |
---|
706 | children: [] | | children: [] |
---|
707 | }] | | }] |
---|
708 | }] | | }] |
---|
709 | }, { | | }, { |
---|
710 | id: "node2138", | | id: "node2138", |
---|
711 | name: "2.138", | | name: "2.138", |
---|
712 | data: {}, | | data: {}, |
---|
713 | children: [{ | | children: [{ |
---|
714 | id: "node3139", | | id: "node3139", |
---|
715 | name: "3.139", | | name: "3.139", |
---|
716 | data: {}, | | data: {}, |
---|
717 | children: [{ | | children: [{ |
---|
718 | id: "node4140", | | id: "node4140", |
---|
719 | name: "4.140", | | name: "4.140", |
---|
720 | data: {}, | | data: {}, |
---|
721 | children: [] | | children: [] |
---|
722 | }, { | | }, { |
---|
723 | id: "node4141", | | id: "node4141", |
---|
724 | name: "4.141", | | name: "4.141", |
---|
725 | data: {}, | | data: {}, |
---|
726 | children: [] | | children: [] |
---|
727 | }] | | }] |
---|
728 | }, { | | }, { |
---|
729 | id: "node3142", | | id: "node3142", |
---|
730 | name: "3.142", | | name: "3.142", |
---|
731 | data: {}, | | data: {}, |
---|
732 | children: [{ | | children: [{ |
---|
733 | id: "node4143", | | id: "node4143", |
---|
734 | name: "4.143", | | name: "4.143", |
---|
735 | data: {}, | | data: {}, |
---|
736 | children: [] | | children: [] |
---|
737 | }, { | | }, { |
---|
738 | id: "node4144", | | id: "node4144", |
---|
739 | name: "4.144", | | name: "4.144", |
---|
740 | data: {}, | | data: {}, |
---|
741 | children: [] | | children: [] |
---|
742 | }, { | | }, { |
---|
743 | id: "node4145", | | id: "node4145", |
---|
744 | name: "4.145", | | name: "4.145", |
---|
745 | data: {}, | | data: {}, |
---|
746 | children: [] | | children: [] |
---|
747 | }, { | | }, { |
---|
748 | id: "node4146", | | id: "node4146", |
---|
749 | name: "4.146", | | name: "4.146", |
---|
750 | data: {}, | | data: {}, |
---|
751 | children: [] | | children: [] |
---|
752 | }, { | | }, { |
---|
753 | id: "node4147", | | id: "node4147", |
---|
754 | name: "4.147", | | name: "4.147", |
---|
755 | data: {}, | | data: {}, |
---|
756 | children: [] | | children: [] |
---|
757 | }] | | }] |
---|
758 | }] | | }] |
---|
759 | }] | | }] |
---|
760 | }] | | }] |
---|
| | 21 | "id": "characteristics", | | | 22 | "name": "Characteristics", |
---|
| | 23 | "children": [ |
---|
| | 24 | // Location |
---|
| | 25 | { |
---|
| | 26 | "id": "character", |
---|
| | 27 | "name": "Character", |
---|
| | 28 | "data": { |
---|
| | 29 | "band": "Characteristics", |
---|
| | 30 | "relation": "coordinators.html" |
---|
| | 31 | }, |
---|
| | 32 | "children": [{ |
---|
| | 33 | "id": "shiva", |
---|
| | 34 | "name": "Shiva", |
---|
| | 35 | "data": { |
---|
| | 36 | "band": "Character", |
---|
| | 37 | "relation": "individual_ranganathan.html" |
---|
| | 38 | }, |
---|
| | 39 | "children": [] |
---|
| | 40 | |
---|
| | 41 | }, { |
---|
| | 42 | "id": "parvathi", |
---|
| | 43 | "name": "Parvathi", |
---|
| | 44 | "data": { |
---|
| | 45 | "band": "Character", |
---|
| | 46 | "relation": "individual_sharat.html" |
---|
| | 47 | }, |
---|
| | 48 | "children": [] |
---|
| | 49 | }, { |
---|
| | 50 | "id": "ganesha", |
---|
| | 51 | "name": "Ganesha", |
---|
| | 52 | "data": { |
---|
| | 53 | "band": "Character", |
---|
| | 54 | "relation": "individual_sharat.html" |
---|
| | 55 | }, |
---|
| | 56 | "children": [] |
---|
| | 57 | }, { |
---|
| | 58 | "id": "bramha", |
---|
| | 59 | "name": "Bramha", |
---|
| | 60 | "data": { |
---|
| | 61 | "band": "Character", |
---|
| | 62 | "relation": "individual_sharat.html" |
---|
| | 63 | }, |
---|
| | 64 | "children": [] |
---|
| | 65 | }, { |
---|
| | 66 | "id": "vishnu", |
---|
| | 67 | "name": "Vishnu", |
---|
| | 68 | "data": { |
---|
| | 69 | "band": "Character", |
---|
| | 70 | "relation": "individual_sharat.html" |
---|
| | 71 | }, |
---|
| | 72 | "children": [] |
---|
| | 73 | }, { |
---|
| | 74 | "id": "krishna", |
---|
| | 75 | "name": "Krishna", |
---|
| | 76 | "data": { |
---|
| | 77 | "band": "Character", |
---|
| | 78 | "relation": "individual_muralimohan.html" |
---|
| | 79 | }, |
---|
| | 80 | "children": [] |
---|
| | 81 | }, { |
---|
| | 82 | "id": "radha", |
---|
| | 83 | "name": "Radha", |
---|
| | 84 | "data": { |
---|
| | 85 | "band": "Character", |
---|
| | 86 | "relation": "individual_muralimohan.html" |
---|
| | 87 | }, |
---|
| | 88 | "children": [] |
---|
| | 89 | }] |
---|
| | 90 | }, |
---|
| | 91 | // Languages |
---|
| | 92 | { |
---|
| | 93 | "id": "ornament", |
---|
| | 94 | "name": "Ornament", |
---|
| | 95 | "data": { |
---|
| | 96 | "band": "Characteristics", |
---|
| | 97 | "relation": "cultural.html" |
---|
| | 98 | }, |
---|
| | 99 | "children": [{ |
---|
| | 100 | "id": "jewellery", |
---|
| | 101 | "name": "Jewellery", |
---|
| | 102 | "data": { |
---|
| | 103 | "band": "Ornament", |
---|
| | 104 | "relation": "project_murals.html" |
---|
| | 105 | }, |
---|
| | 106 | "children": [{ |
---|
| | 107 | "id": "ear-ring", |
---|
| | 108 | "name": "Ear-ring", |
---|
| | 109 | "data": { |
---|
| | 110 | "band": "Jewellery", |
---|
| | 111 | "relation": "project_murals.html" |
---|
| | 112 | }, |
---|
| | 113 | "children": [] |
---|
| | 114 | },{ |
---|
| | 115 | "id": "ring", |
---|
| | 116 | "name": "Ring", |
---|
| | 117 | "data": { |
---|
| | 118 | "band": "Jewellery", |
---|
| | 119 | "relation": "project_murals.html" |
---|
| | 120 | }, |
---|
| | 121 | "children": [] |
---|
| | 122 | },{ |
---|
| | 123 | "id": "nose-ring", |
---|
| | 124 | "name": "Nose-ring", |
---|
| | 125 | "data": { |
---|
| | 126 | "band": "Jewellery", |
---|
| | 127 | "relation": "project_murals.html" |
---|
| | 128 | }, |
---|
| | 129 | "children": [] |
---|
| | 130 | },{ |
---|
| | 131 | "id": "pendent", |
---|
| | 132 | "name": "Pendent", |
---|
| | 133 | "data": { |
---|
| | 134 | "band": "Jewellery", |
---|
| | 135 | "relation": "project_murals.html" |
---|
| | 136 | }, |
---|
| | 137 | "children": [] |
---|
| | 138 | },{ |
---|
| | 139 | "id": "ankelet", |
---|
| | 140 | "name": "Ankelet", |
---|
| | 141 | "data": { |
---|
| | 142 | "band": "Jewellery", |
---|
| | 143 | "relation": "project_murals.html" |
---|
| | 144 | }, |
---|
| | 145 | "children": [] |
---|
| | 146 | },{ |
---|
| | 147 | "id": "bracelet", |
---|
| | 148 | "name": "Bracelet", |
---|
| | 149 | "data": { |
---|
| | 150 | "band": "Jewellery", |
---|
| | 151 | "relation": "project_murals.html" |
---|
| | 152 | }, |
---|
| | 153 | "children": [] |
---|
| | 154 | },{ |
---|
| | 155 | "id": "bangles", |
---|
| | 156 | "name": "Bangles", |
---|
| | 157 | "data": { |
---|
| | 158 | "band": "Jewellery", |
---|
| | 159 | "relation": "project_murals.html" |
---|
| | 160 | }, |
---|
| | 161 | "children": [] |
---|
| | 162 | }] |
---|
| | 163 | }, { |
---|
| | 164 | "id": "material", |
---|
| | 165 | "name": "Material", |
---|
| | 166 | "data": { |
---|
| | 167 | "band": "Ornament", |
---|
| | 168 | "relation": "project_knowledge.html" |
---|
| | 169 | }, |
---|
| | 170 | "children": [{ |
---|
| | 171 | "id": "gold", |
---|
| | 172 | "name": "Gold", |
---|
| | 173 | "data": { |
---|
| | 174 | "band": "Material", |
---|
| | 175 | "relation": "project_murals.html" |
---|
| | 176 | }, |
---|
| | 177 | "children": [] |
---|
| | 178 | },{ |
---|
| | 179 | "id": "silver", |
---|
| | 180 | "name": "Silver", |
---|
| | 181 | "data": { |
---|
| | 182 | "band": "Material", |
---|
| | 183 | "relation": "project_murals.html" |
---|
| | 184 | }, |
---|
| | 185 | "children": [] |
---|
| | 186 | },{ |
---|
| | 187 | "id": "bronze", |
---|
| | 188 | "name": "Bronze", |
---|
| | 189 | "data": { |
---|
| | 190 | "band": "Material", |
---|
| | 191 | "relation": "project_murals.html" |
---|
| | 192 | }, |
---|
| | 193 | "children": [] |
---|
| | 194 | },{ |
---|
| | 195 | "id": "ruby", |
---|
| | 196 | "name": "Ruby", |
---|
| | 197 | "data": { |
---|
| | 198 | "band": "Material", |
---|
| | 199 | "relation": "project_murals.html" |
---|
| | 200 | }, |
---|
| | 201 | "children": [] |
---|
| | 202 | },{ |
---|
| | 203 | "id": "copper", |
---|
| | 204 | "name": "Copper", |
---|
| | 205 | "data": { |
---|
| | 206 | "band": "Material", |
---|
| | 207 | "relation": "project_murals.html" |
---|
| | 208 | }, |
---|
| | 209 | "children": [] |
---|
| | 210 | },{ |
---|
| | 211 | "id": "diamond", |
---|
| | 212 | "name": "Diamond", |
---|
| | 213 | "data": { |
---|
| | 214 | "band": "Material", |
---|
| | 215 | "relation": "project_murals.html" |
---|
| | 216 | }, |
---|
| | 217 | "children": [] |
---|
| | 218 | },{ |
---|
| | 219 | "id": "topaz", |
---|
| | 220 | "name": "Topaz", |
---|
| | 221 | "data": { |
---|
| | 222 | "band": "Material", |
---|
| | 223 | "relation": "project_murals.html" |
---|
| | 224 | }, |
---|
| | 225 | "children": [] |
---|
| | 226 | }] |
---|
| | 227 | }] |
---|
| | 228 | }], |
---|
| | 229 | "data": { |
---|
| | 230 | "relation": "index.html" |
---|
| | 231 | } |
---|
761 | }; | 232 | }; |
---|
762 | //end | 233 | //end |
---|
763 | //init Spacetree | | //init Spacetree |
---|
| | 234 | var infovis = document.getElementById('infovis'); | | | 235 | var w = infovis.offsetWidth + 500; var h = infovis.offsetHeight + 385; |
---|
| | 236 | |
---|
| | 237 | //init Hypertree |
---|
| | 238 | var ht = new $jit.Hypertree({ |
---|
| | 239 | //id of the visualization container |
---|
| | 240 | injectInto: 'infovis', |
---|
| | 241 | //canvas width and height |
---|
| | 242 | width: w, |
---|
| | 243 | height: h, |
---|
| | 244 | //Change node and edge styles such as |
---|
| | 245 | //color, width and dimensions. |
---|
| | 246 | Node: { |
---|
| | 247 | dim: 2.5, |
---|
| | 248 | color: "#555" |
---|
| | 249 | }, |
---|
| | 250 | Edge: { |
---|
| | 251 | lineWidth: 1, |
---|
| | 252 | color: "#222" |
---|
| | 253 | }, |
---|
764 | | 254 | |
---|
765 | //Create a new ST instance | | //Create a new ST instance |
---|
766 | var st = new $jit.ST({ | | var st = new $jit.ST({ |
---|
767 | //id of viz container element | | //id of viz container element |
---|
768 | injectInto: 'infovis', | | injectInto: 'infovis', |
---|
769 | //set duration for the animation | | //set duration for the animation |
---|
770 | duration: 800, | | duration: 800, |
---|
771 | //set animation transition type | | //set animation transition type |
---|
772 | transition: $jit.Trans.Quart.easeInOut, | | transition: $jit.Trans.Quart.easeInOut, |
---|
773 | //set distance between node and its children | | //set distance between node and its children |
---|
774 | levelDistance: 50, | | levelDistance: 50, |
---|
775 | //enable panning | | //enable panning |
---|
776 | Navigation: { | | Navigation: { |
---|
777 | enable:true, | | enable:true, |
---|
778 | panning:true | | panning:true |
---|
779 | }, | | }, |
---|
780 | //set node and edge styles | | //set node and edge styles |
---|
781 | //set overridable=true for styling individual | | //set overridable=true for styling individual |
---|
782 | //nodes or edges | | //nodes or edges |
---|
783 | Node: { | | Node: { |
---|
784 | height: 20, | | height: 20, |
---|
785 | width: 60, | | width: 60, |
---|
786 | type: 'rectangle', | | type: 'rectangle', |
---|
787 | color: '#aaa', | | color: '#aaa', |
---|
788 | overridable: true | | overridable: true |
---|
789 | }, | | }, |
---|
790 | | | |
---|
791 | Edge: { | | Edge: { |
---|
792 | type: 'bezier', | | type: 'bezier', |
---|
793 | overridable: true | | overridable: true |
---|
794 | }, | | }, |
---|
795 | | | |
---|
796 | onBeforeCompute: function(node){ | | onBeforeCompute: function(node){ |
---|
797 | Log.write("loading " + node.name); | | Log.write("loading " + node.name); |
---|
798 | }, | | }, |
---|
799 | | | |
---|
800 | onAfterCompute: function(){ | | onAfterCompute: function(){ |
---|
801 | Log.write("done"); | | Log.write("done"); |
---|
802 | }, | | }, |
---|
803 | | | |
---|
804 | //This method is called on DOM label creation. | | //This method is called on DOM label creation. |
---|
805 | //Use this method to add event handlers and styles to | | //Use this method to add event handlers and styles to |
---|
806 | //your node. | | //your node. |
---|
807 | onCreateLabel: function(label, node){ | | onCreateLabel: function(label, node){ |
---|
808 | label.id = node.id; | | label.id = node.id; |
---|
809 | label.innerHTML = node.name; | | label.innerHTML = node.name; |
---|
810 | label.onclick = function(){ | | label.onclick = function(){ |
---|
811 | if(normal.checked) { | | if(normal.checked) { |
---|
812 | st.onClick(node.id); | | st.onClick(node.id); |
---|
813 | } else { | | } else { |
---|
814 | st.setRoot(node.id, 'animate'); | | st.setRoot(node.id, 'animate'); |
---|
815 | } | | } |
---|
816 | }; | | }; |
---|
817 | //set label styles | | //set label styles |
---|
818 | var style = label.style; | | var style = label.style; |
---|
819 | style.width = 60 + 'px'; | | style.width = 60 + 'px'; |
---|
820 | style.height = 17 + 'px'; | | style.height = 17 + 'px'; |
---|
| | 255 | // On hover | | | 256 | Tips: { |
---|
| | 257 | enable: false, |
---|
| | 258 | |
---|
| | 259 | onShow: function(tip, node) { |
---|
| | 260 | ht.tips.config.offsetX = "10"; |
---|
| | 261 | ht.tips.config.offsetY = "10"; |
---|
| | 262 | // tip.addEventListener("click", alert('hello'), false); |
---|
| | 263 | tip.innerHTML = "<div id=\"value\" class=\"tip-title\" style=\"text-align:center;\">" + node.name + "</div>"; |
---|
| | 264 | // + node.data.relation + " style=\"color:#fff;\">" + node.name + "</a></div>"; |
---|
| | 265 | } |
---|
| | 266 | }, |
---|
| | 267 | |
---|
| | 268 | //Attach event handlers and add text to the |
---|
| | 269 | //labels. This method is only triggered on label |
---|
| | 270 | //creation |
---|
| | 271 | onCreateLabel: function(domElement, node){ |
---|
| | 272 | domElement.innerHTML = node.name; |
---|
| | 273 | $jit.util.addEvent(domElement, 'click', function () { |
---|
| | 274 | ht.onClick(node.id, { |
---|
| | 275 | onComplete: function() { |
---|
| | 276 | ht.controller.onComplete(); |
---|
| | 277 | } |
---|
| | 278 | }); |
---|
| | 279 | }); |
---|
| | 280 | }, |
---|
| | 281 | //Change node styles when labels are placed |
---|
| | 282 | //or moved. |
---|
| | 283 | onPlaceLabel: function(domElement, node){ |
---|
| | 284 | var style = domElement.style; |
---|
| | 285 | style.display = ''; |
---|
821 | style.cursor = 'pointer'; | 286 | style.cursor = 'pointer'; |
---|
822 | style.color = '#333'; | | style.color = '#333'; |
---|
823 | style.fontSize = '0.8em'; | | style.fontSize = '0.8em'; |
---|
824 | style.textAlign= 'center'; | | style.textAlign= 'center'; |
---|
825 | style.paddingTop = '3px'; | | style.paddingTop = '3px'; |
---|
826 | }, | | }, |
---|
827 | | | |
---|
828 | //This method is called right before plotting | | //This method is called right before plotting |
---|
829 | //a node. It's useful for changing an individual node | | //a node. It's useful for changing an individual node |
---|
830 | //style properties before plotting it. | | //style properties before plotting it. |
---|
831 | //The data properties prefixed with a dollar | | //The data properties prefixed with a dollar |
---|
832 | //sign will override the global node style properties. | | //sign will override the global node style properties. |
---|
833 | onBeforePlotNode: function(node){ | | onBeforePlotNode: function(node){ |
---|
834 | //add some color to the nodes in the path between the | | //add some color to the nodes in the path between the |
---|
835 | //root node and the selected node. | | //root node and the selected node. |
---|
836 | if (node.selected) { | | if (node.selected) { |
---|
837 | node.data.$color = "#ff7"; | | node.data.$color = "#ff7"; |
---|
| | 287 | ht.controller.Node.transform = false; | | | 288 | ht.controller.Edge.alpha = "0.3"; |
---|
| | 289 | if (node._depth == 0) { |
---|
| | 290 | style.fontSize = "0.8em"; |
---|
| | 291 | style.color = "#111"; |
---|
| | 292 | } else if(node._depth == 1){ |
---|
| | 293 | style.fontSize = "0.9em"; |
---|
| | 294 | style.color = "#222"; |
---|
| | 295 | } // else if(node._depth == 2){ |
---|
| | 296 | // style.fontSize = "0.7em"; |
---|
| | 297 | // style.color = "#444"; |
---|
| | 298 | // } |
---|
| | 299 | else { |
---|
| | 300 | style.display = 'none'; |
---|
838 | } | 301 | } |
---|
839 | else { | | else { |
---|
840 | delete node.data.$color; | | delete node.data.$color; |
---|
841 | //if the node belongs to the last plotted level | | //if the node belongs to the last plotted level |
---|
842 | if(!node.anySubnode("exist")) { | | if(!node.anySubnode("exist")) { |
---|
843 | //count children number | | //count children number |
---|
844 | var count = 0; | | var count = 0; |
---|
845 | node.eachSubnode(function(n) { count++; }); | | node.eachSubnode(function(n) { count++; }); |
---|
846 | //assign a node color based on | | //assign a node color based on |
---|
847 | //how many children it has | | //how many children it has |
---|
848 | node.data.$color = ['#aaa', '#baa', '#caa', '#daa', '#eaa', '#faa'][count]; | | node.data.$color = ['#aaa', '#baa', '#caa', '#daa', '#eaa', '#faa'][count]; |
---|
849 | } | | } |
---|
850 | } | | } |
---|
851 | }, | | }, |
---|
852 | | | |
---|
853 | //This method is called right before plotting | | //This method is called right before plotting |
---|
854 | //an edge. It's useful for changing an individual edge | | //an edge. It's useful for changing an individual edge |
---|
855 | //style properties before plotting it. | | //style properties before plotting it. |
---|
856 | //Edge data proprties prefixed with a dollar sign will | | //Edge data proprties prefixed with a dollar sign will |
---|
857 | //override the Edge global style properties. | | //override the Edge global style properties. |
---|
858 | onBeforePlotLine: function(adj){ | | onBeforePlotLine: function(adj){ |
---|
859 | if (adj.nodeFrom.selected && adj.nodeTo.selected) { | | if (adj.nodeFrom.selected && adj.nodeTo.selected) { |
---|
860 | adj.data.$color = "#eed"; | | adj.data.$color = "#eed"; |
---|
861 | adj.data.$lineWidth = 3; | | adj.data.$lineWidth = 3; |
---|
862 | } | | } |
---|
863 | else { | | else { |
---|
864 | delete adj.data.$color; | | delete adj.data.$color; |
---|
865 | delete adj.data.$lineWidth; | | delete adj.data.$lineWidth; |
---|
866 | } | | } |
---|
867 | } | | } |
---|
| | 302 | | | | 303 | var left = parseInt(style.left); |
---|
| | 304 | var w = domElement.offsetWidth; |
---|
| | 305 | style.left = (left - w / 2) + 'px'; |
---|
| | 306 | }, |
---|
868 | }); | 307 | }); |
---|
869 | //load json data | | //load json data |
---|
870 | st.loadJSON(json); | | st.loadJSON(json); |
---|
871 | //compute node positions and layout | | //compute node positions and layout |
---|
872 | st.compute(); | | st.compute(); |
---|
873 | //optional: make a translation of the tree | | //optional: make a translation of the tree |
---|
874 | st.geom.translate(new $jit.Complex(-200, 0), "current"); | | st.geom.translate(new $jit.Complex(-200, 0), "current"); |
---|
875 | //emulate a click on the root node. | | //emulate a click on the root node. |
---|
876 | st.onClick(st.root); | | st.onClick(st.root); |
---|
| | 308 | //load JSON data. | | | 309 | ht.loadJSON(json); |
---|
| | 310 | //compute positions and plot. |
---|
| | 311 | ht.refresh(); |
---|
877 | //end | 312 | //end |
---|
878 | //Add event handlers to switch spacetree orientation. | | //Add event handlers to switch spacetree orientation. |
---|
879 | var top = $jit.id('r-top'), | | var top = $jit.id('r-top'), |
---|
880 | left = $jit.id('r-left'), | | left = $jit.id('r-left'), |
---|
881 | bottom = $jit.id('r-bottom'), | | bottom = $jit.id('r-bottom'), |
---|
882 | right = $jit.id('r-right'), | | right = $jit.id('r-right'), |
---|
883 | normal = $jit.id('s-normal'); | | normal = $jit.id('s-normal'); |
---|
884 | | | |
---|
885 | | | |
---|
886 | function changeHandler() { | | function changeHandler() { |
---|
887 | if(this.checked) { | | if(this.checked) { |
---|
888 | top.disabled = bottom.disabled = right.disabled = left.disabled = true; | | top.disabled = bottom.disabled = right.disabled = left.disabled = true; |
---|
889 | st.switchPosition(this.value, "animate", { | | st.switchPosition(this.value, "animate", { |
---|
890 | onComplete: function(){ | | onComplete: function(){ |
---|
891 | top.disabled = bottom.disabled = right.disabled = left.disabled = false; | | top.disabled = bottom.disabled = right.disabled = left.disabled = false; |
---|
892 | } | | } |
---|
893 | }); | | }); |
---|
894 | } | | } |
---|
895 | }; | | }; |
---|
896 | | | |
---|
897 | top.onchange = left.onchange = bottom.onchange = right.onchange = changeHandler; | | top.onchange = left.onchange = bottom.onchange = right.onchange = changeHandler; |
---|
898 | //end | | //end |
---|
| | 313 | ht.controller.onComplete(); | 899 | } | 314 | } |
---|
| | 315 | |
---|
| | 316 | document.addEventListener("DOMContentLoaded", inits, false); |
---|
| | 317 | |
---|
| | 318 | /* ****************************************************************************************************** */ |
---|
| | 319 | |
---|
| | 320 | // function inits(){ |
---|
| | 321 | // //init data |
---|
| | 322 | // var jsons = { |
---|
| | 323 | // "id": "narrations", |
---|
| | 324 | // "name": "Narrations", |
---|
| | 325 | // "children": [{ |
---|
| | 326 | // "id": "kannada", |
---|
| | 327 | // "name": "Kannada", |
---|
| | 328 | // "data": { |
---|
| | 329 | // "band": "Narrations" |
---|
| | 330 | // }, |
---|
| | 331 | // "children": [] |
---|
| | 332 | // }, { |
---|
| | 333 | // "id": "english", |
---|
| | 334 | // "name": "English", |
---|
| | 335 | // "data": { |
---|
| | 336 | // "band": "Narrations" |
---|
| | 337 | // }, |
---|
| | 338 | // "children": [] |
---|
| | 339 | // }, { |
---|
| | 340 | // "id": "hindi", |
---|
| | 341 | // "name": "Hindi", |
---|
| | 342 | // "data": { |
---|
| | 343 | // "band": "Narrations" |
---|
| | 344 | // }, |
---|
| | 345 | // "children": [] |
---|
| | 346 | // }, { |
---|
| | 347 | // "id": "tamil", |
---|
| | 348 | // "name": "Tamil", |
---|
| | 349 | // "data": { |
---|
| | 350 | // "band": "Narrations" |
---|
| | 351 | // }, |
---|
| | 352 | // "children": [] |
---|
| | 353 | // }, { |
---|
| | 354 | // "id": "bengali", |
---|
| | 355 | // "name": "Bengli", |
---|
| | 356 | // "data": { |
---|
| | 357 | // "band": "Narrations" |
---|
| | 358 | // }, |
---|
| | 359 | // "children": [] |
---|
| | 360 | // }, { |
---|
| | 361 | // "id": "marathi", |
---|
| | 362 | // "name": "Marathi", |
---|
| | 363 | // "data": { |
---|
| | 364 | // "band": "Narrations" |
---|
| | 365 | // }, |
---|
| | 366 | // "children": [] |
---|
| | 367 | // }], |
---|
| | 368 | // "data": { |
---|
| | 369 | // "relation": "index.html" |
---|
| | 370 | // } |
---|
| | 371 | // }; |
---|
| | 372 | // //end |
---|
| | 373 | // var infonar = document.getElementById('infonar'); |
---|
| | 374 | // var w = infonar.offsetWidth - 0, h = infonar.offsetHeight - 0; |
---|
| | 375 | |
---|
| | 376 | // //init Hypertree |
---|
| | 377 | // var ht = new $jit.Hypertree({ |
---|
| | 378 | // //id of the visualization container |
---|
| | 379 | // injectInto: 'infonar', |
---|
| | 380 | // //canvas width and height |
---|
| | 381 | // width: w, |
---|
| | 382 | // height: h, |
---|
| | 383 | // //Change node and edge styles such as |
---|
| | 384 | // //color, width and dimensions. |
---|
| | 385 | // Node: { |
---|
| | 386 | // dim: 2.5, |
---|
| | 387 | // color: "#555" |
---|
| | 388 | // }, |
---|
| | 389 | // Edge: { |
---|
| | 390 | // lineWidth: 1, |
---|
| | 391 | // color: "#222" |
---|
| | 392 | // }, |
---|
| | 393 | |
---|
| | 394 | // // On hover |
---|
| | 395 | // Tips: { |
---|
| | 396 | // enable: false, |
---|
| | 397 | // onShow: function(tip, node) { |
---|
| | 398 | // ht.tips.config.offsetX = "10"; |
---|
| | 399 | // ht.tips.config.offsetY = "10"; |
---|
| | 400 | // tip.innerHTML = "<div id=\"value\" class=\"tip-title\" style=\"text-align:center;\">" + node.name + "</div>"; |
---|
| | 401 | // // + node.data.relation + " style=\"color:#fff;\">" + node.name + "</a></div>"; |
---|
| | 402 | // } |
---|
| | 403 | // }, |
---|
| | 404 | |
---|
| | 405 | // //Attach event handlers and add text to the |
---|
| | 406 | // //labels. This method is only triggered on label |
---|
| | 407 | // //creation |
---|
| | 408 | // onCreateLabel: function(domElement, node){ |
---|
| | 409 | // domElement.innerHTML = node.name; |
---|
| | 410 | // $jit.util.addEvent(domElement, 'click', function () { |
---|
| | 411 | // ht.onClick(node.id, { |
---|
| | 412 | // onComplete: function() { |
---|
| | 413 | // ht.controller.onComplete(); |
---|
| | 414 | // } |
---|
| | 415 | // }); |
---|
| | 416 | // }); |
---|
| | 417 | // }, |
---|
| | 418 | // //Change node styles when labels are placed |
---|
| | 419 | // //or moved. |
---|
| | 420 | // onPlaceLabel: function(domElement, node){ |
---|
| | 421 | // var style = domElement.style; |
---|
| | 422 | // style.display = ''; |
---|
| | 423 | // style.cursor = 'pointer'; |
---|
| | 424 | // ht.controller.Node.transform = false; |
---|
| | 425 | // ht.controller.Edge.alpha = "0.3"; |
---|
| | 426 | // if (node._depth == 0) { |
---|
| | 427 | // style.fontSize = "0.8em"; |
---|
| | 428 | // style.color = "#111"; |
---|
| | 429 | // } else if(node._depth == 1){ |
---|
| | 430 | // style.fontSize = "0.9em"; |
---|
| | 431 | // style.color = "#222"; |
---|
| | 432 | // } |
---|
| | 433 | // else { |
---|
| | 434 | // style.display = 'none'; |
---|
| | 435 | // } |
---|
| | 436 | |
---|
| | 437 | // var left = parseInt(style.left); |
---|
| | 438 | // var w = domElement.offsetWidth; |
---|
| | 439 | // style.left = (left - w / 2) + 'px'; |
---|
| | 440 | // }, |
---|
| | 441 | // }); |
---|
| | 442 | // //load JSON data. |
---|
| | 443 | // ht.loadJSON(jsons); |
---|
| | 444 | // //compute positions and plot. |
---|
| | 445 | // ht.refresh(); |
---|
| | 446 | // //end |
---|
| | 447 | // ht.controller.onComplete(); |
---|
| | 448 | // } |
---|