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.
- package/CHANGELOG.md +7 -0
- package/README.md +3 -3
- package/dist/README.md +18 -18
- package/dist/plotly-basic.js +2 -2
- package/dist/plotly-basic.min.js +2 -2
- package/dist/plotly-cartesian.js +6 -4
- package/dist/plotly-cartesian.min.js +2 -2
- package/dist/plotly-finance.js +2 -2
- package/dist/plotly-finance.min.js +2 -2
- package/dist/plotly-geo-assets.js +2 -2
- package/dist/plotly-geo.js +2 -2
- package/dist/plotly-geo.min.js +2 -2
- package/dist/plotly-gl2d.js +2 -2
- package/dist/plotly-gl2d.min.js +2 -2
- package/dist/plotly-gl3d.js +2 -2
- package/dist/plotly-gl3d.min.js +2 -2
- package/dist/plotly-mapbox.js +2 -2
- package/dist/plotly-mapbox.min.js +2 -2
- package/dist/plotly-strict.js +6 -4
- package/dist/plotly-strict.min.js +2 -2
- package/dist/plotly-with-meta.js +6 -4
- package/dist/plotly.js +6 -4
- package/dist/plotly.min.js +2 -2
- package/package.json +1 -1
- package/src/traces/heatmap/plot.js +4 -2
- package/src/version.js +1 -1
package/package.json
CHANGED
|
@@ -453,6 +453,7 @@ module.exports = function(gd, plotinfo, cdheatmaps, heatmapLayer) {
|
|
|
453
453
|
var font = trace.textfont;
|
|
454
454
|
var fontFamily = font.family;
|
|
455
455
|
var fontSize = font.size;
|
|
456
|
+
var globalFontSize = gd._fullLayout.font.size;
|
|
456
457
|
|
|
457
458
|
if(!fontSize || fontSize === 'auto') {
|
|
458
459
|
var minW = Infinity;
|
|
@@ -479,7 +480,7 @@ module.exports = function(gd, plotinfo, cdheatmaps, heatmapLayer) {
|
|
|
479
480
|
!isFinite(minW) ||
|
|
480
481
|
!isFinite(minH)
|
|
481
482
|
) {
|
|
482
|
-
fontSize =
|
|
483
|
+
fontSize = globalFontSize;
|
|
483
484
|
} else {
|
|
484
485
|
minW -= xGap;
|
|
485
486
|
minH -= yGap;
|
|
@@ -492,7 +493,8 @@ module.exports = function(gd, plotinfo, cdheatmaps, heatmapLayer) {
|
|
|
492
493
|
|
|
493
494
|
fontSize = Math.min(
|
|
494
495
|
Math.floor(minW),
|
|
495
|
-
Math.floor(minH)
|
|
496
|
+
Math.floor(minH),
|
|
497
|
+
globalFontSize
|
|
496
498
|
);
|
|
497
499
|
}
|
|
498
500
|
}
|
package/src/version.js
CHANGED