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.
@@ -1,5 +1,5 @@
1
1
  /**
2
- * plotly.js v2.6.3
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
- group.attr('transform', strTranslate(dx, dy));
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
- textPointPosition(tx, tp, fontSize, d.mrc2 || d.mrc);
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.3';
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.3
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
- group.attr('transform', strTranslate(dx, dy));
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
- textPointPosition(tx, tp, fontSize, d.mrc2 || d.mrc);
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.3';
223433
+ exports.version = '2.6.4';
223431
223434
 
223432
223435
  },{}],1119:[function(_dereq_,module,exports){
223433
223436
  (function (global){(function (){