app/assets/javascripts/highcharts/highcharts-3d.js in highcharts-rails-5.0.4 vs app/assets/javascripts/highcharts/highcharts-3d.js in highcharts-rails-5.0.5
- old
+ new
@@ -1,7 +1,7 @@
/**
- * @license Highcharts JS v5.0.4 (2016-11-25)
+ * @license Highcharts JS v5.0.5 (2016-11-29)
*
* 3D features for Highcharts JS
*
* @license: www.highcharts.com/license
*/
@@ -16,10 +16,11 @@
/**
* (c) 2010-2016 Torstein Honsi
*
* License: www.highcharts.com/license
*/
+ 'use strict';
/**
* Mathematical Functionility
*/
var deg2rad = H.deg2rad,
pick = H.pick;
@@ -138,10 +139,11 @@
/**
* (c) 2010-2016 Torstein Honsi
*
* License: www.highcharts.com/license
*/
+ 'use strict';
var cos = Math.cos,
PI = Math.PI,
sin = Math.sin;
@@ -855,10 +857,11 @@
/**
* (c) 2010-2016 Torstein Honsi
*
* License: www.highcharts.com/license
*/
+ 'use strict';
var Chart = H.Chart,
each = H.each,
merge = H.merge,
perspective = H.perspective,
pick = H.pick,
@@ -1092,10 +1095,11 @@
/**
* (c) 2010-2016 Torstein Honsi
*
* License: www.highcharts.com/license
*/
+ 'use strict';
var ZAxis,
Axis = H.Axis,
Chart = H.Chart,
each = H.each,
@@ -1501,10 +1505,11 @@
/**
* (c) 2010-2016 Torstein Honsi
*
* License: www.highcharts.com/license
*/
+ 'use strict';
var each = H.each,
perspective = H.perspective,
pick = H.pick,
Series = H.Series,
seriesTypes = H.seriesTypes,
@@ -1756,10 +1761,11 @@
/**
* (c) 2010-2016 Torstein Honsi
*
* License: www.highcharts.com/license
*/
+ 'use strict';
var deg2rad = H.deg2rad,
each = H.each,
pick = H.pick,
seriesTypes = H.seriesTypes,
svg = H.svg,
@@ -1946,10 +1952,11 @@
/**
* (c) 2010-2016 Torstein Honsi
*
* License: www.highcharts.com/license
*/
+ 'use strict';
var perspective = H.perspective,
pick = H.pick,
seriesTypes = H.seriesTypes,
wrap = H.wrap;
@@ -2037,11 +2044,11 @@
/**
* Updating zIndex for every point - based on the distance from point to camera
*/
wrap(seriesTypes.scatter.prototype, 'pointAttribs', function(proceed, point) {
var pointOptions = proceed.apply(this, [].slice.call(arguments, 1));
- if (point) {
+ if (this.chart.is3d() && point) {
pointOptions.zIndex = H.pointCameraDistance(point, this.chart);
}
return pointOptions;
});
@@ -2050,9 +2057,10 @@
/**
* (c) 2010-2016 Torstein Honsi
*
* License: www.highcharts.com/license
*/
+ 'use strict';
var Axis = H.Axis,
SVGRenderer = H.SVGRenderer,
VMLRenderer = H.VMLRenderer;