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 (cartesian) v2.8.0
2
+ * plotly.js (cartesian) v2.8.1
3
3
  * Copyright 2012-2021, Plotly, Inc.
4
4
  * All rights reserved.
5
5
  * Licensed under the MIT license
@@ -92704,6 +92704,7 @@ module.exports = function(gd, plotinfo, cdheatmaps, heatmapLayer) {
92704
92704
  var font = trace.textfont;
92705
92705
  var fontFamily = font.family;
92706
92706
  var fontSize = font.size;
92707
+ var globalFontSize = gd._fullLayout.font.size;
92707
92708
 
92708
92709
  if(!fontSize || fontSize === 'auto') {
92709
92710
  var minW = Infinity;
@@ -92730,7 +92731,7 @@ module.exports = function(gd, plotinfo, cdheatmaps, heatmapLayer) {
92730
92731
  !isFinite(minW) ||
92731
92732
  !isFinite(minH)
92732
92733
  ) {
92733
- fontSize = 12;
92734
+ fontSize = globalFontSize;
92734
92735
  } else {
92735
92736
  minW -= xGap;
92736
92737
  minH -= yGap;
@@ -92743,7 +92744,8 @@ module.exports = function(gd, plotinfo, cdheatmaps, heatmapLayer) {
92743
92744
 
92744
92745
  fontSize = Math.min(
92745
92746
  Math.floor(minW),
92746
- Math.floor(minH)
92747
+ Math.floor(minH),
92748
+ globalFontSize
92747
92749
  );
92748
92750
  }
92749
92751
  }
@@ -102807,7 +102809,7 @@ function getSortFunc(opts, d2c) {
102807
102809
  'use strict';
102808
102810
 
102809
102811
  // package version injected by `npm run preprocess`
102810
- exports.version = '2.8.0';
102812
+ exports.version = '2.8.1';
102811
102813
 
102812
102814
  },{}]},{},[15])(15)
102813
102815
  });