plotly.js 2.6.3 → 2.6.4
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 +6 -0
- package/README.md +3 -3
- package/dist/README.md +21 -21
- package/dist/plotly-basic.js +8 -5
- package/dist/plotly-basic.min.js +2 -2
- package/dist/plotly-cartesian.js +8 -5
- package/dist/plotly-cartesian.min.js +2 -2
- package/dist/plotly-finance.js +8 -5
- package/dist/plotly-finance.min.js +2 -2
- package/dist/plotly-geo-assets.js +2 -2
- package/dist/plotly-geo.js +8 -5
- package/dist/plotly-geo.min.js +2 -2
- package/dist/plotly-gl2d.js +8 -5
- package/dist/plotly-gl2d.min.js +2 -2
- package/dist/plotly-gl3d.js +8 -5
- package/dist/plotly-gl3d.min.js +2 -2
- package/dist/plotly-mapbox.js +8 -5
- package/dist/plotly-mapbox.min.js +2 -2
- package/dist/plotly-strict.js +8 -5
- package/dist/plotly-strict.min.js +2 -2
- package/dist/plotly-with-meta.js +8 -5
- package/dist/plotly.js +8 -5
- package/dist/plotly.min.js +2 -2
- package/package.json +8 -8
- package/src/components/drawing/index.js +6 -3
- package/src/version.js +1 -1
package/dist/plotly-mapbox.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* plotly.js (mapbox) v2.6.
|
|
2
|
+
* plotly.js (mapbox) v2.6.4
|
|
3
3
|
* Copyright 2012-2021, Plotly, Inc.
|
|
4
4
|
* All rights reserved.
|
|
5
5
|
* Licensed under the MIT license
|
|
@@ -72234,7 +72234,7 @@ var TEXTOFFSETSIGN = {
|
|
|
72234
72234
|
start: 1, end: -1, middle: 0, bottom: 1, top: -1
|
|
72235
72235
|
};
|
|
72236
72236
|
|
|
72237
|
-
function textPointPosition(s, textPosition, fontSize, markerRadius) {
|
|
72237
|
+
function textPointPosition(s, textPosition, fontSize, markerRadius, dontTouchParent) {
|
|
72238
72238
|
var group = d3.select(s.node().parentNode);
|
|
72239
72239
|
|
|
72240
72240
|
var v = textPosition.indexOf('top') !== -1 ?
|
|
@@ -72256,7 +72256,9 @@ function textPointPosition(s, textPosition, fontSize, markerRadius) {
|
|
|
72256
72256
|
|
|
72257
72257
|
// fix the overall text group position
|
|
72258
72258
|
s.attr('text-anchor', h);
|
|
72259
|
-
|
|
72259
|
+
if(!dontTouchParent) {
|
|
72260
|
+
group.attr('transform', strTranslate(dx, dy));
|
|
72261
|
+
}
|
|
72260
72262
|
}
|
|
72261
72263
|
|
|
72262
72264
|
function extracTextFontSize(d, trace) {
|
|
@@ -72326,7 +72328,8 @@ drawing.selectedTextStyle = function(s, trace) {
|
|
|
72326
72328
|
var fontSize = extracTextFontSize(d, trace);
|
|
72327
72329
|
|
|
72328
72330
|
Color.fill(tx, tc);
|
|
72329
|
-
|
|
72331
|
+
var dontTouchParent = Registry.traceIs(trace, 'bar-like');
|
|
72332
|
+
textPointPosition(tx, tp, fontSize, d.mrc2 || d.mrc, dontTouchParent);
|
|
72330
72333
|
});
|
|
72331
72334
|
};
|
|
72332
72335
|
|
|
@@ -129502,7 +129505,7 @@ function getSortFunc(opts, d2c) {
|
|
|
129502
129505
|
'use strict';
|
|
129503
129506
|
|
|
129504
129507
|
// package version injected by `npm run preprocess`
|
|
129505
|
-
exports.version = '2.6.
|
|
129508
|
+
exports.version = '2.6.4';
|
|
129506
129509
|
|
|
129507
129510
|
},{}]},{},[9])(9)
|
|
129508
129511
|
});
|