highcharts-rails 4.1.7 → 4.1.8

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Highcharts JS v4.1.7 (2015-06-26)
2
+ * @license Highcharts JS v4.1.8 (2015-08-20)
3
3
  * Solid angular gauge module
4
4
  *
5
5
  * (c) 2010-2014 Torstein Honsi
@@ -196,7 +196,11 @@
196
196
  shapeArgs,
197
197
  d,
198
198
  toColor = yAxis.toColor(point.y, point),
199
- fromColor;
199
+ fromColor,
200
+ axisMinAngle = Math.min(yAxis.startAngleRad, yAxis.endAngleRad),
201
+ axisMaxAngle = Math.max(yAxis.startAngleRad, yAxis.endAngleRad),
202
+ minAngle,
203
+ maxAngle;
200
204
 
201
205
  if (toColor === 'none') { // #3708
202
206
  toColor = point.color || series.color || 'none';
@@ -207,18 +211,15 @@
207
211
  }
208
212
 
209
213
  // Handle overshoot and clipping to axis max/min
210
- rotation = Math.max(yAxis.startAngleRad - overshootVal, Math.min(yAxis.endAngleRad + overshootVal, rotation));
214
+ rotation = Math.max(axisMinAngle - overshootVal, Math.min(axisMaxAngle + overshootVal, rotation));
211
215
 
212
216
  // Handle the wrap option
213
217
  if (options.wrap === false) {
214
- rotation = Math.max(yAxis.startAngleRad, Math.min(yAxis.endAngleRad, rotation));
218
+ rotation = Math.max(axisMinAngle, Math.min(axisMaxAngle, rotation));
215
219
  }
216
- rotation = rotation * 180 / Math.PI;
217
220
 
218
- var angle1 = rotation / (180 / Math.PI),
219
- angle2 = yAxis.startAngleRad,
220
- minAngle = Math.min(angle1, angle2),
221
- maxAngle = Math.max(angle1, angle2);
221
+ minAngle = Math.min(rotation, yAxis.startAngleRad);
222
+ maxAngle = Math.max(rotation, yAxis.startAngleRad);
222
223
 
223
224
  if (maxAngle - minAngle > 2 * Math.PI) {
224
225
  maxAngle = minAngle + 2 * Math.PI;
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Highcharts JS v4.1.7 (2015-06-26)
2
+ * @license Highcharts JS v4.1.8 (2015-08-20)
3
3
  *
4
4
  * (c) 2014 Highsoft AS
5
5
  * Authors: Jon Arild Nygard / Oystein Moseng
@@ -1,3 +1,3 @@
1
1
  module Highcharts
2
- VERSION = "4.1.7"
2
+ VERSION = "4.1.8"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: highcharts-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.1.7
4
+ version: 4.1.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Per Christian B. Viken
@@ -77,6 +77,7 @@ files:
77
77
  - app/assets/javascripts/highcharts/highcharts-3d.js
78
78
  - app/assets/javascripts/highcharts/highcharts-more.js
79
79
  - app/assets/javascripts/highcharts/modules/annotations.js
80
+ - app/assets/javascripts/highcharts/modules/boost.js
80
81
  - app/assets/javascripts/highcharts/modules/broken-axis.js
81
82
  - app/assets/javascripts/highcharts/modules/canvas-tools.js
82
83
  - app/assets/javascripts/highcharts/modules/data.js
@@ -86,6 +87,7 @@ files:
86
87
  - app/assets/javascripts/highcharts/modules/heatmap.js
87
88
  - app/assets/javascripts/highcharts/modules/map.js
88
89
  - app/assets/javascripts/highcharts/modules/no-data-to-display.js
90
+ - app/assets/javascripts/highcharts/modules/offline-exporting.js
89
91
  - app/assets/javascripts/highcharts/modules/solid-gauge.js
90
92
  - app/assets/javascripts/highcharts/modules/treemap.js
91
93
  - app/assets/javascripts/highcharts/themes/dark-blue.js