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 (gl3d) v2.6.3
2
+ * plotly.js (gl3d) v2.6.4
3
3
  * Copyright 2012-2021, Plotly, Inc.
4
4
  * All rights reserved.
5
5
  * Licensed under the MIT license
@@ -25661,7 +25661,7 @@ var TEXTOFFSETSIGN = {
25661
25661
  start: 1, end: -1, middle: 0, bottom: 1, top: -1
25662
25662
  };
25663
25663
 
25664
- function textPointPosition(s, textPosition, fontSize, markerRadius) {
25664
+ function textPointPosition(s, textPosition, fontSize, markerRadius, dontTouchParent) {
25665
25665
  var group = d3.select(s.node().parentNode);
25666
25666
 
25667
25667
  var v = textPosition.indexOf('top') !== -1 ?
@@ -25683,7 +25683,9 @@ function textPointPosition(s, textPosition, fontSize, markerRadius) {
25683
25683
 
25684
25684
  // fix the overall text group position
25685
25685
  s.attr('text-anchor', h);
25686
- group.attr('transform', strTranslate(dx, dy));
25686
+ if(!dontTouchParent) {
25687
+ group.attr('transform', strTranslate(dx, dy));
25688
+ }
25687
25689
  }
25688
25690
 
25689
25691
  function extracTextFontSize(d, trace) {
@@ -25753,7 +25755,8 @@ drawing.selectedTextStyle = function(s, trace) {
25753
25755
  var fontSize = extracTextFontSize(d, trace);
25754
25756
 
25755
25757
  Color.fill(tx, tc);
25756
- textPointPosition(tx, tp, fontSize, d.mrc2 || d.mrc);
25758
+ var dontTouchParent = Registry.traceIs(trace, 'bar-like');
25759
+ textPointPosition(tx, tp, fontSize, d.mrc2 || d.mrc, dontTouchParent);
25757
25760
  });
25758
25761
  };
25759
25762
 
@@ -85951,7 +85954,7 @@ function getSortFunc(opts, d2c) {
85951
85954
  'use strict';
85952
85955
 
85953
85956
  // package version injected by `npm run preprocess`
85954
- exports.version = '2.6.3';
85957
+ exports.version = '2.6.4';
85955
85958
 
85956
85959
  },{}],435:[function(_dereq_,module,exports){
85957
85960
  (function (global){(function (){