plotly.js 2.8.0 → 2.8.1

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 v2.8.0
2
+ * plotly.js v2.8.1
3
3
  * Copyright 2012-2021, Plotly, Inc.
4
4
  * All rights reserved.
5
5
  * Licensed under the MIT license
@@ -190924,6 +190924,7 @@ module.exports = function(gd, plotinfo, cdheatmaps, heatmapLayer) {
190924
190924
  var font = trace.textfont;
190925
190925
  var fontFamily = font.family;
190926
190926
  var fontSize = font.size;
190927
+ var globalFontSize = gd._fullLayout.font.size;
190927
190928
 
190928
190929
  if(!fontSize || fontSize === 'auto') {
190929
190930
  var minW = Infinity;
@@ -190950,7 +190951,7 @@ module.exports = function(gd, plotinfo, cdheatmaps, heatmapLayer) {
190950
190951
  !isFinite(minW) ||
190951
190952
  !isFinite(minH)
190952
190953
  ) {
190953
- fontSize = 12;
190954
+ fontSize = globalFontSize;
190954
190955
  } else {
190955
190956
  minW -= xGap;
190956
190957
  minH -= yGap;
@@ -190963,7 +190964,8 @@ module.exports = function(gd, plotinfo, cdheatmaps, heatmapLayer) {
190963
190964
 
190964
190965
  fontSize = Math.min(
190965
190966
  Math.floor(minW),
190966
- Math.floor(minH)
190967
+ Math.floor(minH),
190968
+ globalFontSize
190967
190969
  );
190968
190970
  }
190969
190971
  }
@@ -230510,7 +230512,7 @@ function getSortFunc(opts, d2c) {
230510
230512
  'use strict';
230511
230513
 
230512
230514
  // package version injected by `npm run preprocess`
230513
- exports.version = '2.8.0';
230515
+ exports.version = '2.8.1';
230514
230516
 
230515
230517
  },{}],1120:[function(_dereq_,module,exports){
230516
230518
  (function (global){(function (){
package/dist/plotly.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * plotly.js v2.8.0
2
+ * plotly.js v2.8.1
3
3
  * Copyright 2012-2021, Plotly, Inc.
4
4
  * All rights reserved.
5
5
  * Licensed under the MIT license
@@ -186899,6 +186899,7 @@ module.exports = function(gd, plotinfo, cdheatmaps, heatmapLayer) {
186899
186899
  var font = trace.textfont;
186900
186900
  var fontFamily = font.family;
186901
186901
  var fontSize = font.size;
186902
+ var globalFontSize = gd._fullLayout.font.size;
186902
186903
 
186903
186904
  if(!fontSize || fontSize === 'auto') {
186904
186905
  var minW = Infinity;
@@ -186925,7 +186926,7 @@ module.exports = function(gd, plotinfo, cdheatmaps, heatmapLayer) {
186925
186926
  !isFinite(minW) ||
186926
186927
  !isFinite(minH)
186927
186928
  ) {
186928
- fontSize = 12;
186929
+ fontSize = globalFontSize;
186929
186930
  } else {
186930
186931
  minW -= xGap;
186931
186932
  minH -= yGap;
@@ -186938,7 +186939,8 @@ module.exports = function(gd, plotinfo, cdheatmaps, heatmapLayer) {
186938
186939
 
186939
186940
  fontSize = Math.min(
186940
186941
  Math.floor(minW),
186941
- Math.floor(minH)
186942
+ Math.floor(minH),
186943
+ globalFontSize
186942
186944
  );
186943
186945
  }
186944
186946
  }
@@ -224081,7 +224083,7 @@ function getSortFunc(opts, d2c) {
224081
224083
  'use strict';
224082
224084
 
224083
224085
  // package version injected by `npm run preprocess`
224084
- exports.version = '2.8.0';
224086
+ exports.version = '2.8.1';
224085
224087
 
224086
224088
  },{}],1120:[function(_dereq_,module,exports){
224087
224089
  (function (global){(function (){