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
@@ -68,7 +68,7 @@ exports.topojson = saneTopojson;
68
68
  'use strict';
69
69
 
70
70
  // package version injected by `npm run preprocess`
71
- exports.version = '2.6.3';
71
+ exports.version = '2.6.4';
72
72
 
73
73
  },{}]},{},[16])(16)
74
74
  });
@@ -1,5 +1,5 @@
1
1
  /**
2
- * plotly.js (geo) v2.6.3
2
+ * plotly.js (geo) v2.6.4
3
3
  * Copyright 2012-2021, Plotly, Inc.
4
4
  * All rights reserved.
5
5
  * Licensed under the MIT license
@@ -38724,7 +38724,7 @@ var TEXTOFFSETSIGN = {
38724
38724
  start: 1, end: -1, middle: 0, bottom: 1, top: -1
38725
38725
  };
38726
38726
 
38727
- function textPointPosition(s, textPosition, fontSize, markerRadius) {
38727
+ function textPointPosition(s, textPosition, fontSize, markerRadius, dontTouchParent) {
38728
38728
  var group = d3.select(s.node().parentNode);
38729
38729
 
38730
38730
  var v = textPosition.indexOf('top') !== -1 ?
@@ -38746,7 +38746,9 @@ function textPointPosition(s, textPosition, fontSize, markerRadius) {
38746
38746
 
38747
38747
  // fix the overall text group position
38748
38748
  s.attr('text-anchor', h);
38749
- group.attr('transform', strTranslate(dx, dy));
38749
+ if(!dontTouchParent) {
38750
+ group.attr('transform', strTranslate(dx, dy));
38751
+ }
38750
38752
  }
38751
38753
 
38752
38754
  function extracTextFontSize(d, trace) {
@@ -38816,7 +38818,8 @@ drawing.selectedTextStyle = function(s, trace) {
38816
38818
  var fontSize = extracTextFontSize(d, trace);
38817
38819
 
38818
38820
  Color.fill(tx, tc);
38819
- textPointPosition(tx, tp, fontSize, d.mrc2 || d.mrc);
38821
+ var dontTouchParent = Registry.traceIs(trace, 'bar-like');
38822
+ textPointPosition(tx, tp, fontSize, d.mrc2 || d.mrc, dontTouchParent);
38820
38823
  });
38821
38824
  };
38822
38825
 
@@ -95044,7 +95047,7 @@ function getSortFunc(opts, d2c) {
95044
95047
  'use strict';
95045
95048
 
95046
95049
  // package version injected by `npm run preprocess`
95047
- exports.version = '2.6.3';
95050
+ exports.version = '2.6.4';
95048
95051
 
95049
95052
  },{}]},{},[8])(8)
95050
95053
  });