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-with-meta.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* plotly.js v2.6.
|
|
2
|
+
* plotly.js v2.6.4
|
|
3
3
|
* Copyright 2012-2021, Plotly, Inc.
|
|
4
4
|
* All rights reserved.
|
|
5
5
|
* Licensed under the MIT license
|
|
@@ -109856,7 +109856,7 @@ var TEXTOFFSETSIGN = {
|
|
|
109856
109856
|
start: 1, end: -1, middle: 0, bottom: 1, top: -1
|
|
109857
109857
|
};
|
|
109858
109858
|
|
|
109859
|
-
function textPointPosition(s, textPosition, fontSize, markerRadius) {
|
|
109859
|
+
function textPointPosition(s, textPosition, fontSize, markerRadius, dontTouchParent) {
|
|
109860
109860
|
var group = d3.select(s.node().parentNode);
|
|
109861
109861
|
|
|
109862
109862
|
var v = textPosition.indexOf('top') !== -1 ?
|
|
@@ -109878,7 +109878,9 @@ function textPointPosition(s, textPosition, fontSize, markerRadius) {
|
|
|
109878
109878
|
|
|
109879
109879
|
// fix the overall text group position
|
|
109880
109880
|
s.attr('text-anchor', h);
|
|
109881
|
-
|
|
109881
|
+
if(!dontTouchParent) {
|
|
109882
|
+
group.attr('transform', strTranslate(dx, dy));
|
|
109883
|
+
}
|
|
109882
109884
|
}
|
|
109883
109885
|
|
|
109884
109886
|
function extracTextFontSize(d, trace) {
|
|
@@ -109948,7 +109950,8 @@ drawing.selectedTextStyle = function(s, trace) {
|
|
|
109948
109950
|
var fontSize = extracTextFontSize(d, trace);
|
|
109949
109951
|
|
|
109950
109952
|
Color.fill(tx, tc);
|
|
109951
|
-
|
|
109953
|
+
var dontTouchParent = Registry.traceIs(trace, 'bar-like');
|
|
109954
|
+
textPointPosition(tx, tp, fontSize, d.mrc2 || d.mrc, dontTouchParent);
|
|
109952
109955
|
});
|
|
109953
109956
|
};
|
|
109954
109957
|
|
|
@@ -229826,7 +229829,7 @@ function getSortFunc(opts, d2c) {
|
|
|
229826
229829
|
'use strict';
|
|
229827
229830
|
|
|
229828
229831
|
// package version injected by `npm run preprocess`
|
|
229829
|
-
exports.version = '2.6.
|
|
229832
|
+
exports.version = '2.6.4';
|
|
229830
229833
|
|
|
229831
229834
|
},{}],1119:[function(_dereq_,module,exports){
|
|
229832
229835
|
(function (global){(function (){
|
package/dist/plotly.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* plotly.js v2.6.
|
|
2
|
+
* plotly.js v2.6.4
|
|
3
3
|
* Copyright 2012-2021, Plotly, Inc.
|
|
4
4
|
* All rights reserved.
|
|
5
5
|
* Licensed under the MIT license
|
|
@@ -109418,7 +109418,7 @@ var TEXTOFFSETSIGN = {
|
|
|
109418
109418
|
start: 1, end: -1, middle: 0, bottom: 1, top: -1
|
|
109419
109419
|
};
|
|
109420
109420
|
|
|
109421
|
-
function textPointPosition(s, textPosition, fontSize, markerRadius) {
|
|
109421
|
+
function textPointPosition(s, textPosition, fontSize, markerRadius, dontTouchParent) {
|
|
109422
109422
|
var group = d3.select(s.node().parentNode);
|
|
109423
109423
|
|
|
109424
109424
|
var v = textPosition.indexOf('top') !== -1 ?
|
|
@@ -109440,7 +109440,9 @@ function textPointPosition(s, textPosition, fontSize, markerRadius) {
|
|
|
109440
109440
|
|
|
109441
109441
|
// fix the overall text group position
|
|
109442
109442
|
s.attr('text-anchor', h);
|
|
109443
|
-
|
|
109443
|
+
if(!dontTouchParent) {
|
|
109444
|
+
group.attr('transform', strTranslate(dx, dy));
|
|
109445
|
+
}
|
|
109444
109446
|
}
|
|
109445
109447
|
|
|
109446
109448
|
function extracTextFontSize(d, trace) {
|
|
@@ -109510,7 +109512,8 @@ drawing.selectedTextStyle = function(s, trace) {
|
|
|
109510
109512
|
var fontSize = extracTextFontSize(d, trace);
|
|
109511
109513
|
|
|
109512
109514
|
Color.fill(tx, tc);
|
|
109513
|
-
|
|
109515
|
+
var dontTouchParent = Registry.traceIs(trace, 'bar-like');
|
|
109516
|
+
textPointPosition(tx, tp, fontSize, d.mrc2 || d.mrc, dontTouchParent);
|
|
109514
109517
|
});
|
|
109515
109518
|
};
|
|
109516
109519
|
|
|
@@ -223427,7 +223430,7 @@ function getSortFunc(opts, d2c) {
|
|
|
223427
223430
|
'use strict';
|
|
223428
223431
|
|
|
223429
223432
|
// package version injected by `npm run preprocess`
|
|
223430
|
-
exports.version = '2.6.
|
|
223433
|
+
exports.version = '2.6.4';
|
|
223431
223434
|
|
|
223432
223435
|
},{}],1119:[function(_dereq_,module,exports){
|
|
223433
223436
|
(function (global){(function (){
|