corrade-nucleus-nucleons – Diff between revs 1 and 11

Subversion Repositories:
Rev:
Show entire fileIgnore whitespace
Rev 1 Rev 11
Line 1... Line 1...
1 /** 1 /**
2 * @license Highcharts JS v5.0.10 (2017-03-31) 2 * @license Highcharts JS v5.0.12 (2017-05-24)
3 * Exporting module 3 * Exporting module
4 * 4 *
5 * (c) 2010-2017 Torstein Honsi 5 * (c) 2010-2017 Torstein Honsi
6 * 6 *
7 * License: www.highcharts.com/license 7 * License: www.highcharts.com/license
Line 36... Line 36...
36 discardElement = H.discardElement, 36 discardElement = H.discardElement,
37 css = H.css, 37 css = H.css,
38 merge = H.merge, 38 merge = H.merge,
39 pick = H.pick, 39 pick = H.pick,
40 each = H.each, 40 each = H.each,
-   41 objectEach = H.objectEach,
41 extend = H.extend, 42 extend = H.extend,
42 isTouchDevice = H.isTouchDevice, 43 isTouchDevice = H.isTouchDevice,
43 win = H.win, 44 win = H.win,
-   45 userAgent = win.navigator.userAgent,
44 SVGRenderer = H.SVGRenderer; 46 SVGRenderer = H.SVGRenderer,
45   -  
46 var symbols = H.Renderer.prototype.symbols; 47 symbols = H.Renderer.prototype.symbols,
-   48 isMSBrowser = /Edge\/|Trident\/|MSIE /.test(userAgent),
-   49 isFirefoxBrowser = /firefox/i.test(userAgent);
Line 47... Line 50...
47   50  
48 // Add language 51 // Add language
49 extend(defaultOptions.lang, { 52 extend(defaultOptions.lang, {
50 printChart: 'Print chart', 53 printChart: 'Print chart',
Line 120... Line 123...
120 menuClassName: 'highcharts-contextmenu', 123 menuClassName: 'highcharts-contextmenu',
121 //x: -10, 124 //x: -10,
122 symbol: 'menu', 125 symbol: 'menu',
123 _titleKey: 'contextButtonTitle', 126 _titleKey: 'contextButtonTitle',
124 menuItems: [{ 127 menuItems: [{
125 textKey: 'printChart', 128 textKey: 'printChart',
126 onclick: function() { 129 onclick: function() {
127 this.print(); 130 this.print();
128 } -  
129 }, { -  
130 separator: true -  
131 }, { -  
132 textKey: 'downloadPNG', -  
133 onclick: function() { -  
134 this.exportChart(); -  
135 } -  
136 }, { -  
137 textKey: 'downloadJPEG', -  
138 onclick: function() { -  
139 this.exportChart({ -  
140 type: 'image/jpeg' -  
141 }); -  
142 } -  
143 }, { -  
144 textKey: 'downloadPDF', -  
145 onclick: function() { -  
146 this.exportChart({ -  
147 type: 'application/pdf' -  
148 }); -  
149 } -  
150 }, { -  
151 textKey: 'downloadSVG', -  
152 onclick: function() { -  
153 this.exportChart({ -  
154 type: 'image/svg+xml' -  
155 }); -  
156 } -  
157 } 131 }
158 // Enable this block to add "View SVG" to the dropdown menu 132 }, {
159 /* 133 separator: true
160 ,{ 134 }, {
161   -  
162 text: 'View SVG Image', 135 textKey: 'downloadPNG',
163 onclick: function () { 136 onclick: function() {
164 var div = doc.createElement('div'); -  
165 div.innerHTML = this.getSVGForExport(); 137 this.exportChart();
166   -  
167 this.renderTo.parentNode.appendChild(div); -  
168 } 138 }
169 }, { 139 }, {
170   -  
171 text: 'View SVG Source', 140 textKey: 'downloadJPEG',
172 onclick: function () { 141 onclick: function() {
173 var pre = doc.createElement('pre'); -  
174 pre.innerHTML = this.getSVGForExport() 142 this.exportChart({
175 .replace(/</g, '\n&lt;') 143 type: 'image/jpeg'
176 .replace(/>/g, '&gt;'); -  
177   -  
178 this.renderTo.parentNode.appendChild(pre); -  
179 } 144 });
180 } 145 }
-   146 }, {
-   147 textKey: 'downloadPDF',
-   148 onclick: function() {
-   149 this.exportChart({
-   150 type: 'application/pdf'
-   151 });
181 // */ 152 }
-   153 }, {
-   154 textKey: 'downloadSVG',
-   155 onclick: function() {
-   156 this.exportChart({
-   157 type: 'image/svg+xml'
-   158 });
-   159 }
182 ] 160 }]
183 } 161 }
184 } 162 }
185 }; 163 };
Line 186... Line 164...
186   164  
187 // Add the H.post utility 165 // Add the H.post utility
188 H.post = function(url, data, formAttributes) { -  
189 var name, -  
190 form; -  
191   166 H.post = function(url, data, formAttributes) {
192 // create the form 167 // create the form
193 form = createElement('form', merge({ 168 var form = createElement('form', merge({
194 method: 'post', 169 method: 'post',
195 action: url, 170 action: url,
196 enctype: 'multipart/form-data' 171 enctype: 'multipart/form-data'
197 }, formAttributes), { 172 }, formAttributes), {
198 display: 'none' 173 display: 'none'
Line 199... Line 174...
199 }, doc.body); 174 }, doc.body);
200   175  
201 // add the data 176 // add the data
202 for (name in data) { 177 objectEach(data, function(val, name) {
203 createElement('input', { 178 createElement('input', {
204 type: 'hidden', 179 type: 'hidden',
205 name: name, 180 name: name,
206 value: data[name] 181 value: val
Line 207... Line 182...
207 }, null, form); 182 }, null, form);
208 } 183 });
Line 209... Line 184...
209   184  
210 // submit 185 // submit
211 form.submit(); 186 form.submit();
Line 212... Line 187...
212   187  
Line 213... Line 188...
213 // clean up 188 // clean up
214 discardElement(form); 189 discardElement(form);
215 }; 190 };
216   191  
Line 288... Line 263...
288   263  
Line 289... Line 264...
289   264  
290   265  
291   266  
-   267  
292   268  
293   269  
294   270  
295   271  
296   272  
-   273  
-   274  
-   275  
297   276  
298   277  
299   278  
300   279  
301   280  
302   281  
303   282  
304   283  
305   284  
306   285  
307   286  
308   287  
Line 309... Line 288...
309   288  
310   289  
311   290  
Line 372... Line 351...
372   351  
373   352  
Line 374... Line 353...
374   353  
375   354  
376   355  
377   356  
378   357  
379   358  
380   359  
381   360  
382   361  
383   362  
Line 429... Line 408...
429   408  
430   409  
431   410  
Line 432... Line 411...
432   411  
433   412  
-   413  
-   414  
434   415  
-   416  
-   417  
-   418  
-   419  
-   420  
-   421  
-   422  
-   423  
-   424  
-   425  
-   426  
-   427  
-   428  
-   429  
435   430  
-   431  
-   432  
-   433  
-   434  
-   435  
-   436  
-   437  
-   438  
-   439  
-   440  
-   441  
436   442  
437   443  
Line 438... Line 444...
438   444  
Line 439... Line 445...
439   445  
440   446  
Line 441... Line 447...
441   447  
442   448  
443   449  
444   450  
445   451  
446   452  
447   453  
448   454  
Line 449... Line 455...
449   455  
Line 450... Line 456...
450   456  
-   457  
-   458  
-   459  
-   460  
-   461  
-   462  
451   463  
452   464  
453   465  
Line 454... Line 466...
454   466  
455   467  
Line 853... Line 865...
853   865  
854   866  
Line 855... Line 867...
855   867  
856   868  
857   869  
858   870  
859   871  
860   872  
Line 861... Line 873...
861   873  
862   874  
863   875  
864   876  
Line 865... Line 877...
865   877  
866   878  
Line 867... Line 879...
867   879  
868   880  
869   881  
Line 870... Line 882...
870   882  
871   883  
Line 872... Line 884...
872   884  
873   885  
874   886  
Line 875... Line 887...
875   887  
Line 876... Line 888...
876   888  
Line 906... Line 918...
906   918  
907   919  
908   920  
909   921  
-   922  
-   923  
-   924  
910   925  
911   926  
912   927  
913   928  
914   929  
915   930  
916   931  
917   932  
-   933  
-   934  
-   935  
-   936  
-   937  
-   938  
-   939  
-   940  
-   941  
-   942  
-   943  
-   944  
918   945  
919   946  
920   947  
Line 921... Line 948...
921   948