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 90... Line 93...
90 menuClassName: 'highcharts-contextmenu', 93 menuClassName: 'highcharts-contextmenu',
91 //x: -10, 94 //x: -10,
92 symbol: 'menu', 95 symbol: 'menu',
93 _titleKey: 'contextButtonTitle', 96 _titleKey: 'contextButtonTitle',
94 menuItems: [{ 97 menuItems: [{
95 textKey: 'printChart', 98 textKey: 'printChart',
96 onclick: function() { 99 onclick: function() {
97 this.print(); 100 this.print();
98 } -  
99 }, { -  
100 separator: true -  
101 }, { -  
102 textKey: 'downloadPNG', -  
103 onclick: function() { -  
104 this.exportChart(); -  
105 } -  
106 }, { -  
107 textKey: 'downloadJPEG', -  
108 onclick: function() { -  
109 this.exportChart({ -  
110 type: 'image/jpeg' -  
111 }); -  
112 } -  
113 }, { -  
114 textKey: 'downloadPDF', -  
115 onclick: function() { -  
116 this.exportChart({ -  
117 type: 'application/pdf' -  
118 }); -  
119 } -  
120 }, { -  
121 textKey: 'downloadSVG', -  
122 onclick: function() { -  
123 this.exportChart({ -  
124 type: 'image/svg+xml' -  
125 }); -  
126 } -  
127 } 101 }
128 // Enable this block to add "View SVG" to the dropdown menu 102 }, {
129 /* 103 separator: true
130 ,{ 104 }, {
131   -  
132 text: 'View SVG Image', 105 textKey: 'downloadPNG',
133 onclick: function () { 106 onclick: function() {
134 var div = doc.createElement('div'); -  
135 div.innerHTML = this.getSVGForExport(); 107 this.exportChart();
136   -  
137 this.renderTo.parentNode.appendChild(div); -  
138 } 108 }
139 }, { 109 }, {
140   -  
141 text: 'View SVG Source', 110 textKey: 'downloadJPEG',
142 onclick: function () { 111 onclick: function() {
143 var pre = doc.createElement('pre'); -  
144 pre.innerHTML = this.getSVGForExport() 112 this.exportChart({
145 .replace(/</g, '\n&lt;') 113 type: 'image/jpeg'
146 .replace(/>/g, '&gt;'); -  
147   -  
148 this.renderTo.parentNode.appendChild(pre); -  
149 } 114 });
150 } 115 }
-   116 }, {
-   117 textKey: 'downloadPDF',
-   118 onclick: function() {
-   119 this.exportChart({
-   120 type: 'application/pdf'
-   121 });
151 // */ 122 }
-   123 }, {
-   124 textKey: 'downloadSVG',
-   125 onclick: function() {
-   126 this.exportChart({
-   127 type: 'image/svg+xml'
-   128 });
-   129 }
152 ] 130 }]
153 } 131 }
154 } 132 }
155 }; 133 };
Line 156... Line 134...
156   134  
157 // Add the H.post utility 135 // Add the H.post utility
158 H.post = function(url, data, formAttributes) { -  
159 var name, -  
160 form; -  
161   136 H.post = function(url, data, formAttributes) {
162 // create the form 137 // create the form
163 form = createElement('form', merge({ 138 var form = createElement('form', merge({
164 method: 'post', 139 method: 'post',
165 action: url, 140 action: url,
166 enctype: 'multipart/form-data' 141 enctype: 'multipart/form-data'
167 }, formAttributes), { 142 }, formAttributes), {
168 display: 'none' 143 display: 'none'
Line 169... Line 144...
169 }, doc.body); 144 }, doc.body);
170   145  
171 // add the data 146 // add the data
172 for (name in data) { 147 objectEach(data, function(val, name) {
173 createElement('input', { 148 createElement('input', {
174 type: 'hidden', 149 type: 'hidden',
175 name: name, 150 name: name,
176 value: data[name] 151 value: val
Line 177... Line 152...
177 }, null, form); 152 }, null, form);
178 } 153 });
Line 179... Line 154...
179   154  
180 // submit 155 // submit
181 form.submit(); 156 form.submit();
Line 182... Line 157...
182   157  
Line 183... Line 158...
183 // clean up 158 // clean up
184 discardElement(form); 159 discardElement(form);
185 }; 160 };
186   161  
Line 245... Line 220...
245   220  
Line 246... Line 221...
246   221  
247   222  
248   223  
-   224  
249   225  
250   226  
251   227  
252   228  
253   229  
-   230  
-   231  
-   232  
254   233  
255   234  
256   235  
257   236  
258   237  
259   238  
260   239  
261   240  
262   241  
263   242  
264   243  
265   244  
Line 266... Line 245...
266   245  
267   246  
268   247  
Line 329... Line 308...
329   308  
330   309  
Line 331... Line 310...
331   310  
332   311  
333   312  
334   313  
335   314  
336   315  
337   316  
338   317  
339   318  
340   319  
Line 386... Line 365...
386   365  
387   366  
388   367  
Line 389... Line 368...
389   368  
390   369  
-   370  
-   371  
391   372  
-   373  
-   374  
-   375  
-   376  
-   377  
-   378  
-   379  
-   380  
-   381  
-   382  
-   383  
-   384  
-   385  
-   386  
392   387  
-   388  
-   389  
-   390  
-   391  
-   392  
-   393  
-   394  
-   395  
-   396  
-   397  
-   398  
393   399  
394   400  
Line 395... Line 401...
395   401  
Line 396... Line 402...
396   402  
397   403  
Line 398... Line 404...
398   404  
399   405  
400   406  
401   407  
402   408  
403   409  
404   410  
405   411  
Line 406... Line 412...
406   412  
Line 407... Line 413...
407   413  
-   414  
-   415  
-   416  
-   417  
-   418  
-   419  
408   420  
409   421  
410   422  
Line 411... Line 423...
411   423  
412   424  
Line 807... Line 819...
807   819  
808   820  
809   821  
810   822  
811   823  
-   824  
812   825  
813   826  
814   827  
Line 815... Line 828...
815   828  
Line 827... Line 840...
827   840  
828   841  
829   842  
830   843  
831   -  
832   844  
833   845  
834   846  
835   847  
836   848  
837   849  
-   850  
838   851  
Line -... Line 852...
-   852  
-   853  
-   854  
-   855  
-   856  
-   857  
-   858  
-   859  
-   860  
-   861  
-   862  
-   863  
-   864  
-   865  
-   866  
-   867  
-   868  
-   869  
-   870  
-   871  
-   872  
-   873  
-   874  
-   875  
-   876  
-   877  
-   878  
-   879  
-   880  
-   881  
-   882  
-   883  
-   884  
-   885  
-   886  
-   887  
-   888  
-   889  
-   890  
-   891  
839   892  
840   893  
841   894  
Line 842... Line 895...
842   895  
Line 853... Line 906...
853   906  
854   907  
855   908  
856   909  
Line 857... Line 910...
857   910  
858   -  
859   -  
860   -  
861   -  
862   -  
863   -  
864   911  
865   -  
866   -  
867   -  
868   -  
869   -  
870   -  
871   -  
872   -  
873   -  
874   -  
875   912  
876   -  
877   913  
878   914  
879   -  
880   -  
881   -  
882   915  
-   916  
-   917  
883   918  
Line 884... Line 919...
884   919  
885   920  
886   921  
887   922  
888   923  
Line -... Line 924...
-   924  
-   925  
-   926  
-   927  
-   928  
889   929  
890   930  
891   931  
Line 892... Line 932...
892   932  
Line 924... Line 964...
924   964  
925   965  
Line 926... Line 966...
926   966  
927   967  
928   968  
929   969  
930   970  
931   971  
Line 932... Line 972...
932   972  
933   973  
934   974  
935   975  
Line 936... Line 976...
936   976  
937   977  
Line 938... Line 978...
938   978  
939   979  
940   980  
Line 941... Line 981...
941   981  
942   982  
Line 943... Line 983...
943   983  
944   984  
945   985  
Line 946... Line 986...
946   986  
Line 947... Line 987...
947   987  
Line 977... Line 1017...
977   1017  
978   1018  
979   1019  
980   1020  
-   1021  
-   1022  
-   1023  
981   1024  
982   1025  
983   1026  
984   1027  
985   1028  
986   1029  
987   1030  
988   1031  
-   1032  
-   1033  
-   1034  
-   1035  
-   1036  
-   1037  
-   1038  
-   1039  
-   1040  
-   1041  
-   1042  
-   1043  
989   1044  
990   1045  
991   1046  
Line 992... Line 1047...
992   1047