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 (gl2d) v2.6.3
2
+ * plotly.js (gl2d) v2.6.4
3
3
  * Copyright 2012-2021, Plotly, Inc.
4
4
  * All rights reserved.
5
5
  * Licensed under the MIT license
@@ -38433,7 +38433,7 @@ var TEXTOFFSETSIGN = {
38433
38433
  start: 1, end: -1, middle: 0, bottom: 1, top: -1
38434
38434
  };
38435
38435
 
38436
- function textPointPosition(s, textPosition, fontSize, markerRadius) {
38436
+ function textPointPosition(s, textPosition, fontSize, markerRadius, dontTouchParent) {
38437
38437
  var group = d3.select(s.node().parentNode);
38438
38438
 
38439
38439
  var v = textPosition.indexOf('top') !== -1 ?
@@ -38455,7 +38455,9 @@ function textPointPosition(s, textPosition, fontSize, markerRadius) {
38455
38455
 
38456
38456
  // fix the overall text group position
38457
38457
  s.attr('text-anchor', h);
38458
- group.attr('transform', strTranslate(dx, dy));
38458
+ if(!dontTouchParent) {
38459
+ group.attr('transform', strTranslate(dx, dy));
38460
+ }
38459
38461
  }
38460
38462
 
38461
38463
  function extracTextFontSize(d, trace) {
@@ -38525,7 +38527,8 @@ drawing.selectedTextStyle = function(s, trace) {
38525
38527
  var fontSize = extracTextFontSize(d, trace);
38526
38528
 
38527
38529
  Color.fill(tx, tc);
38528
- textPointPosition(tx, tp, fontSize, d.mrc2 || d.mrc);
38530
+ var dontTouchParent = Registry.traceIs(trace, 'bar-like');
38531
+ textPointPosition(tx, tp, fontSize, d.mrc2 || d.mrc, dontTouchParent);
38529
38532
  });
38530
38533
  };
38531
38534
 
@@ -100560,7 +100563,7 @@ function getSortFunc(opts, d2c) {
100560
100563
  'use strict';
100561
100564
 
100562
100565
  // package version injected by `npm run preprocess`
100563
- exports.version = '2.6.3';
100566
+ exports.version = '2.6.4';
100564
100567
 
100565
100568
  },{}],588:[function(_dereq_,module,exports){
100566
100569
  (function (global){(function (){