plotly.js 2.8.1 → 2.8.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,5 +1,5 @@
1
1
  /**
2
- * plotly.js (gl2d) v2.8.1
2
+ * plotly.js (gl2d) v2.8.2
3
3
  * Copyright 2012-2021, Plotly, Inc.
4
4
  * All rights reserved.
5
5
  * Licensed under the MIT license
@@ -90287,8 +90287,9 @@ var getBinSpanLabelRound = _dereq_('./bin_label_vals');
90287
90287
  function calc(gd, trace) {
90288
90288
  var pos = [];
90289
90289
  var size = [];
90290
- var pa = Axes.getFromId(gd, trace.orientation === 'h' ? trace.yaxis : trace.xaxis);
90291
- var mainData = trace.orientation === 'h' ? 'y' : 'x';
90290
+ var isHorizontal = trace.orientation === 'h';
90291
+ var pa = Axes.getFromId(gd, isHorizontal ? trace.yaxis : trace.xaxis);
90292
+ var mainData = isHorizontal ? 'y' : 'x';
90292
90293
  var counterData = {x: 'y', y: 'x'}[mainData];
90293
90294
  var calendar = trace[mainData + 'calendar'];
90294
90295
  var cumulativeSpec = trace.cumulative;
@@ -100909,7 +100910,7 @@ function getSortFunc(opts, d2c) {
100909
100910
  'use strict';
100910
100911
 
100911
100912
  // package version injected by `npm run preprocess`
100912
- exports.version = '2.8.1';
100913
+ exports.version = '2.8.2';
100913
100914
 
100914
100915
  },{}],588:[function(_dereq_,module,exports){
100915
100916
  (function (global){(function (){