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 (strict) v2.8.0
2
+ * plotly.js (strict) v2.8.1
3
3
  * Copyright 2012-2021, Plotly, Inc.
4
4
  * All rights reserved.
5
5
  * Licensed under the MIT license
@@ -177230,6 +177230,7 @@ module.exports = function(gd, plotinfo, cdheatmaps, heatmapLayer) {
177230
177230
  var font = trace.textfont;
177231
177231
  var fontFamily = font.family;
177232
177232
  var fontSize = font.size;
177233
+ var globalFontSize = gd._fullLayout.font.size;
177233
177234
 
177234
177235
  if(!fontSize || fontSize === 'auto') {
177235
177236
  var minW = Infinity;
@@ -177256,7 +177257,7 @@ module.exports = function(gd, plotinfo, cdheatmaps, heatmapLayer) {
177256
177257
  !isFinite(minW) ||
177257
177258
  !isFinite(minH)
177258
177259
  ) {
177259
- fontSize = 12;
177260
+ fontSize = globalFontSize;
177260
177261
  } else {
177261
177262
  minW -= xGap;
177262
177263
  minH -= yGap;
@@ -177269,7 +177270,8 @@ module.exports = function(gd, plotinfo, cdheatmaps, heatmapLayer) {
177269
177270
 
177270
177271
  fontSize = Math.min(
177271
177272
  Math.floor(minW),
177272
- Math.floor(minH)
177273
+ Math.floor(minH),
177274
+ globalFontSize
177273
177275
  );
177274
177276
  }
177275
177277
  }
@@ -208357,7 +208359,7 @@ function getSortFunc(opts, d2c) {
208357
208359
  'use strict';
208358
208360
 
208359
208361
  // package version injected by `npm run preprocess`
208360
- exports.version = '2.8.0';
208362
+ exports.version = '2.8.1';
208361
208363
 
208362
208364
  },{}],934:[function(_dereq_,module,exports){
208363
208365
  (function (global){(function (){