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/dist/plotly-cartesian.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* plotly.js (cartesian) v2.8.
|
|
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 =
|
|
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.
|
|
102812
|
+
exports.version = '2.8.1';
|
|
102811
102813
|
|
|
102812
102814
|
},{}]},{},[15])(15)
|
|
102813
102815
|
});
|