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

Subversion Repositories:
Rev:
Only display areas with differencesIgnore whitespace
Rev 1 Rev 11
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
8 */ 8 */
9 'use strict'; 9 'use strict';
10 (function(factory) { 10 (function(factory) {
11 if (typeof module === 'object' && module.exports) { 11 if (typeof module === 'object' && module.exports) {
12 module.exports = factory; 12 module.exports = factory;
13 } else { 13 } else {
14 factory(Highcharts); 14 factory(Highcharts);
15 } 15 }
16 }(function(Highcharts) { 16 }(function(Highcharts) {
17 (function(H) { 17 (function(H) {
18 /** 18 /**
19 * Exporting module 19 * Exporting module
20 * 20 *
21 * (c) 2010-2017 Torstein Honsi 21 * (c) 2010-2017 Torstein Honsi
22 * 22 *
23 * License: www.highcharts.com/license 23 * License: www.highcharts.com/license
24 */ 24 */
25   25  
26 /* eslint indent:0 */ 26 /* eslint indent:0 */
27   27  
28 // create shortcuts 28 // create shortcuts
29 var defaultOptions = H.defaultOptions, 29 var defaultOptions = H.defaultOptions,
30 doc = H.doc, 30 doc = H.doc,
31 Chart = H.Chart, 31 Chart = H.Chart,
32 addEvent = H.addEvent, 32 addEvent = H.addEvent,
33 removeEvent = H.removeEvent, 33 removeEvent = H.removeEvent,
34 fireEvent = H.fireEvent, 34 fireEvent = H.fireEvent,
35 createElement = H.createElement, 35 createElement = H.createElement,
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);
47   50  
48 // Add language 51 // Add language
49 extend(defaultOptions.lang, { 52 extend(defaultOptions.lang, {
50 printChart: 'Print chart', 53 printChart: 'Print chart',
51 downloadPNG: 'Download PNG image', 54 downloadPNG: 'Download PNG image',
52 downloadJPEG: 'Download JPEG image', 55 downloadJPEG: 'Download JPEG image',
53 downloadPDF: 'Download PDF document', 56 downloadPDF: 'Download PDF document',
54 downloadSVG: 'Download SVG vector image', 57 downloadSVG: 'Download SVG vector image',
55 contextButtonTitle: 'Chart context menu' 58 contextButtonTitle: 'Chart context menu'
56 }); 59 });
57   60  
58 // Buttons and menus are collected in a separate config option set called 'navigation'. 61 // Buttons and menus are collected in a separate config option set called 'navigation'.
59 // This can be extended later to add control buttons like zoom and pan right click menus. 62 // This can be extended later to add control buttons like zoom and pan right click menus.
60 defaultOptions.navigation = { 63 defaultOptions.navigation = {
61 buttonOptions: { 64 buttonOptions: {
62 theme: {}, 65 theme: {},
63 symbolSize: 14, 66 symbolSize: 14,
64 symbolX: 12.5, 67 symbolX: 12.5,
65 symbolY: 10.5, 68 symbolY: 10.5,
66 align: 'right', 69 align: 'right',
67 buttonSpacing: 3, 70 buttonSpacing: 3,
68 height: 22, 71 height: 22,
69 // text: null, 72 // text: null,
70 verticalAlign: 'top', 73 verticalAlign: 'top',
71 width: 24 74 width: 24
72 } 75 }
73 }; 76 };
74   77  
75   78  
76   79  
77   80  
78 // Add the export related options 81 // Add the export related options
79 defaultOptions.exporting = { 82 defaultOptions.exporting = {
80 //enabled: true, 83 //enabled: true,
81 //filename: 'chart', 84 //filename: 'chart',
82 type: 'image/png', 85 type: 'image/png',
83 url: 'https://export.highcharts.com/', 86 url: 'https://export.highcharts.com/',
84 //width: undefined, 87 //width: undefined,
85 printMaxWidth: 780, 88 printMaxWidth: 780,
86 scale: 2, 89 scale: 2,
87 buttons: { 90 buttons: {
88 contextButton: { 91 contextButton: {
89 className: 'highcharts-contextbutton', 92 className: 'highcharts-contextbutton',
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 };
156   134  
157 // Add the H.post utility 135 // Add the H.post utility
158 H.post = function(url, data, formAttributes) { 136 H.post = function(url, data, formAttributes) {
159 var name, -  
160 form; -  
161   -  
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'
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
177 }, null, form); 152 }, null, form);
178 } 153 });
179   154  
180 // submit 155 // submit
181 form.submit(); 156 form.submit();
182   157  
183 // clean up 158 // clean up
184 discardElement(form); 159 discardElement(form);
185 }; 160 };
186   161  
187 extend(Chart.prototype, { 162 extend(Chart.prototype, /** @lends Highcharts.Chart.prototype */ {
188   163  
189 /** 164 /**
190 * A collection of fixes on the produced SVG to account for expando properties, 165 * A collection of fixes on the produced SVG to account for expando properties,
191 * browser bugs, VML problems and other. Returns a cleaned SVG. 166 * browser bugs, VML problems and other. Returns a cleaned SVG.
192 */ 167 */
193 sanitizeSVG: function(svg, options) { 168 sanitizeSVG: function(svg, options) {
194 // Move HTML into a foreignObject 169 // Move HTML into a foreignObject
195 if (options && options.exporting && options.exporting.allowHTML) { 170 if (options && options.exporting && options.exporting.allowHTML) {
196 var html = svg.match(/<\/svg>(.*?$)/); 171 var html = svg.match(/<\/svg>(.*?$)/);
197 <\/svg> if (html && html[1]) { 172 <\/svg> if (html && html[1]) {
198 <\/svg> html = '<foreignObject x="0" y="0" ' + 173 <\/svg> html = '<foreignObject x="0" y="0" ' +
199 <\/svg> 'width="' + options.chart.width + '" ' + 174 <\/svg> 'width="' + options.chart.width + '" ' +
200 <\/svg> 'height="' + options.chart.height + '">' + 175 <\/svg> 'height="' + options.chart.height + '">' +
201 <\/svg> '<body xmlns="http://www.w3.org/1999/xhtml">' + 176 <\/svg> '<body xmlns="http://www.w3.org/1999/xhtml">' +
202 <\/svg> html[1] + 177 <\/svg> html[1] +
203 <\/svg> '</body>' + 178 <\/svg> '</body>' +
204 <\/svg> '</foreignObject>'; 179 <\/svg> '</foreignObject>';
205 <\/svg> svg = svg.replace('</svg>', html + '</svg>'); 180 <\/svg> svg = svg.replace('</svg>', html + '</svg>');
206 <\/svg> } 181 <\/svg> }
207 <\/svg> } 182 <\/svg> }
208   183  
209 <\/svg> svg = svg 184 <\/svg> svg = svg
210 <\/svg> .replace(/zIndex="[^"]+"/g, '') 185 <\/svg> .replace(/zIndex="[^"]+"/g, '')
211 <\/svg> .replace(/isShadow="[^"]+"/g, '') 186 <\/svg> .replace(/isShadow="[^"]+"/g, '')
212 <\/svg> .replace(/symbolName="[^"]+"/g, '') 187 <\/svg> .replace(/symbolName="[^"]+"/g, '')
213 <\/svg> .replace(/jQuery[0-9]+="[^"]+"/g, '') 188 <\/svg> .replace(/jQuery[0-9]+="[^"]+"/g, '')
214 <\/svg> .replace(/url\(("|")(\S+)("|")\)/g, 'url($2)') 189 <\/svg> .replace(/url\(("|")(\S+)("|")\)/g, 'url($2)')
215 <\/svg> .replace(/url\([^#]+#/g, 'url(#') 190 <\/svg> .replace(/url\([^#]+#/g, 'url(#')
216 <\/svg> .replace(/, '<svg xmlns:xlink="http://www.w3.org/1999/xlink" ') 191 <\/svg> .replace(/, '<svg xmlns:xlink="http://www.w3.org/1999/xlink" ')
217   192  
218   193  
219   194  
220   195  
221   196  
222   197  
223   198  
224   199  
225   200  
226   201  
227   202  
228   203  
229   204  
230   205  
231   206  
232   207  
233   208  
234   209  
235   210  
236   211  
237   212  
238   213  
239   214  
240   215  
241   216  
242   217  
243   218  
244   219  
245   220  
246   221  
247   222  
248   223  
249   224  
-   225  
250   226  
251   227  
252   228  
253   229  
254   230  
-   231  
-   232  
-   233  
255   234  
256   235  
257   236  
258   237  
259   238  
260   239  
261   240  
262   241  
263   242  
264   243  
265   244  
266   245  
267   246  
268   247  
269   248  
270   249  
271   250  
272   251  
273   252  
274   253  
275   254  
276   255  
277   256  
278   257  
279   258  
280   259  
281   260  
282   261  
283   262  
284   263  
285   264  
286   265  
287   266  
288   267  
289   268  
290   269  
291   270  
292   271  
293   272  
294   273  
295   274  
296   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  
309   288  
310   289  
311   290  
312   291  
313   292  
314   293  
315   294  
316   295  
317   296  
318   297  
319   298  
320   299  
321   300  
322   301  
323   302  
324   303  
325   304  
326   305  
327   306  
328   307  
329   308  
330   309  
331   310  
332   311  
333   312  
334   313  
335   314  
336   315  
337   316  
338   317  
339   318  
340   319  
341   320  
342   321  
343   322  
344   323  
345   324  
346   325  
347   326  
348   327  
349   328  
350   329  
351   330  
352   331  
353   332  
354   333  
355   334  
356   335  
357   336  
358   337  
359   338  
360   339  
361   340  
362   341  
363   342  
364   343  
365   344  
366   345  
367   346  
368   347  
369   348  
370   349  
371   350  
372   351  
373   352  
374   353  
375   354  
376   355  
377   356  
378   357  
379   358  
380   359  
381   360  
382   361  
383   362  
384   363  
385   364  
386   365  
387   366  
388   367  
389   368  
390   369  
391   370  
-   371  
-   372  
392   373  
-   374  
-   375  
-   376  
-   377  
-   378  
-   379  
-   380  
-   381  
-   382  
-   383  
-   384  
-   385  
-   386  
-   387  
393   388  
-   389  
-   390  
-   391  
-   392  
-   393  
-   394  
-   395  
-   396  
-   397  
-   398  
-   399  
394   400  
395   401  
396   402  
397   403  
398   404  
399   405  
400   406  
401   407  
402   408  
403   409  
404   410  
405   411  
406   412  
407   413  
408   414  
409   415  
410   416  
411   417  
412   418  
413   419  
-   420  
-   421  
-   422  
-   423  
-   424  
-   425  
414   426  
415   427  
416   428  
417   429  
418   430  
419   431  
420   432  
421   433  
422   434  
423   435  
424   436  
425   437  
426   438  
427   439  
428   440  
429   441  
430   442  
431   443  
432   444  
433   445  
434   446  
435   447  
436   448  
437   449  
438   450  
439   451  
440   452  
441   453  
442   454  
443   455  
444   456  
445   457  
446   458  
447   459  
448   460  
449   461  
450   462  
451   463  
452   464  
453   465  
454   466  
455   467  
456   468  
457   469  
458   470  
459   471  
460   472  
461   473  
462   474  
463   475  
464   476  
465   477  
466   478  
467   479  
468   480  
469   481  
470   482  
471   483  
472   484  
473   485  
474   486  
475   487  
476   488  
477   489  
478   490  
479   491  
480   492  
481   493  
482   494  
483   495  
484   496  
485   497  
486   498  
487   499  
488   500  
489   501  
490   502  
491   503  
492   504  
493   505  
494   506  
495   507  
496   508  
497   509  
498   510  
499   511  
500   512  
501   513  
502   514  
503   515  
504   516  
505   517  
506   518  
507   519  
508   520  
509   521  
510   522  
511   523  
512   524  
513   525  
514   526  
515   527  
516   528  
517   529  
518   530  
519   531  
520   532  
521   533  
522   534  
523   535  
524   536  
525   537  
526   538  
527   539  
528   540  
529   541  
530   542  
531   543  
532   544  
533   545  
534   546  
535   547  
536   548  
537   549  
538   550  
539   551  
540   552  
541   553  
542   554  
543   555  
544   556  
545   557  
546   558  
547   559  
548   560  
549   561  
550   562  
551   563  
552   564  
553   565  
554   566  
555   567  
556   568  
557   569  
558   570  
559   571  
560   572  
561   573  
562   574  
563   575  
564   576  
565   577  
566   578  
567   579  
568   580  
569   581  
570   582  
571   583  
572   584  
573   585  
574   586  
575   587  
576   588  
577   589  
578   590  
579   591  
580   592  
581   593  
582   594  
583   595  
584   596  
585   597  
586   598  
587   599  
588   600  
589   601  
590   602  
591   603  
592   604  
593   605  
594   606  
595   607  
596   608  
597   609  
598   610  
599   611  
600   612  
601   613  
602   614  
603   615  
604   616  
605   617  
606   618  
607   619  
608   620  
609   621  
610   622  
611   623  
612   624  
613   625  
614   626  
615   627  
616   628  
617   629  
618   630  
619   631  
620   632  
621   633  
622   634  
623   635  
624   636  
625   637  
626   638  
627   639  
628   640  
629   641  
630   642  
631   643  
632   644  
633   645  
634   646  
635   647  
636   648  
637   649  
638   650  
639   651  
640   652  
641   653  
642   654  
643   655  
644   656  
645   657  
646   658  
647   659  
648   660  
649   661  
650   662  
651   663  
652   664  
653   665  
654   666  
655   667  
656   668  
657   669  
658   670  
659   671  
660   672  
661   673  
662   674  
663   675  
664   676  
665   677  
666   678  
667   679  
668   680  
669   681  
670   682  
671   683  
672   684  
673   685  
674   686  
675   687  
676   688  
677   689  
678   690  
679   691  
680   692  
681   693  
682   694  
683   695  
684   696  
685   697  
686   698  
687   699  
688   700  
689   701  
690   702  
691   703  
692   704  
693   705  
694   706  
695   707  
696   708  
697   709  
698   710  
699   711  
700   712  
701   713  
702   714  
703   715  
704   716  
705   717  
706   718  
707   719  
708   720  
709   721  
710   722  
711   723  
712   724  
713   725  
714   726  
715   727  
716   728  
717   729  
718   730  
719   731  
720   732  
721   733  
722   734  
723   735  
724   736  
725   737  
726   738  
727   739  
728   740  
729   741  
730   742  
731   743  
732   744  
733   745  
734   746  
735   747  
736   748  
737   749  
738   750  
739   751  
740   752  
741   753  
742   754  
743   755  
744   756  
745   757  
746   758  
747   759  
748   760  
749   761  
750   762  
751   763  
752   764  
753   765  
754   766  
755   767  
756   768  
757   769  
758   770  
759   771  
760   772  
761   773  
762   774  
763   775  
764   776  
765   777  
766   778  
767   779  
768   780  
769   781  
770   782  
771   783  
772   784  
773   785  
774   786  
775   787  
776   788  
777   789  
778   790  
779   791  
780   792  
781   793  
782   794  
783   795  
784   796  
785   797  
786   798  
787   799  
788   800  
789   801  
790   802  
791   803  
792   804  
793   805  
794   806  
795   807  
796   808  
797   809  
798   810  
799   811  
800   812  
801   813  
802   814  
803   815  
804   816  
805   817  
806   818  
807   819  
808   820  
809   821  
810   822  
811   823  
-   824  
812   825  
813   826  
814   827  
815   828  
816   829  
817   830  
818   831  
819   832  
820   833  
821   834  
822   835  
823   836  
824   837  
825   838  
826   839  
827   840  
828   841  
829   842  
830   843  
831   844  
832   -  
833   845  
834   846  
835   847  
836   848  
837   849  
838   850  
-   851  
839   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  
-   892  
840   893  
841   894  
842   895  
843   896  
844   897  
845   898  
846   899  
847   900  
848   901  
849   902  
850   903  
851   904  
852   905  
853   906  
854   907  
855   908  
856   909  
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  
884   919  
885   920  
886   921  
887   922  
888   923  
889   924  
890   925  
-   926  
-   927  
-   928  
-   929  
-   930  
891   931  
892   932  
893   933  
894   934  
895   935  
896   936  
897   937  
898   938  
899   939  
900   940  
901   941  
902   942  
903   943  
904   944  
905   945  
906   946  
907   947  
908   948  
909   949  
910   950  
911   951  
912   952  
913   953  
914   954  
915   955  
916   956  
917   957  
918   958  
919   959  
920   960  
921   961  
922   962  
923   963  
924   964  
925   965  
926   966  
927   967  
928   968  
929   969  
930   970  
931   971  
932   972  
933   973  
934   974  
935   975  
936   976  
937   977  
938   978  
939   979  
940   980  
941   981  
942   982  
943   983  
944   984  
945   985  
946   986  
947   987  
948   988  
949   989  
950   990  
951   991  
952   992  
953   993  
954   994  
955   995  
956   996  
957   997  
958   998  
959   999  
960   1000  
961   1001  
962   1002  
963   1003  
964   1004  
965   1005  
966   1006  
967   1007  
968   1008  
969   1009  
970   1010  
971   1011  
972   1012  
973   1013  
974   1014  
975   1015  
976   1016  
977   1017  
978   1018  
979   1019  
980   1020  
981   1021  
-   1022  
-   1023  
-   1024  
982   1025  
983   1026  
984   1027  
985   1028  
986   1029  
987   1030  
988   1031  
989   1032  
-   1033  
-   1034  
-   1035  
-   1036  
-   1037  
-   1038  
-   1039  
-   1040  
-   1041  
-   1042  
-   1043  
-   1044  
990   1045  
991   1046  
992   1047  
993   1048  
994   1049  
995   1050  
996   1051