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 (strict) v2.6.3
2
+ * plotly.js (strict) v2.6.4
3
3
  * Copyright 2012-2021, Plotly, Inc.
4
4
  * All rights reserved.
5
5
  * Licensed under the MIT license
@@ -100140,7 +100140,7 @@ var TEXTOFFSETSIGN = {
100140
100140
  start: 1, end: -1, middle: 0, bottom: 1, top: -1
100141
100141
  };
100142
100142
 
100143
- function textPointPosition(s, textPosition, fontSize, markerRadius) {
100143
+ function textPointPosition(s, textPosition, fontSize, markerRadius, dontTouchParent) {
100144
100144
  var group = d3.select(s.node().parentNode);
100145
100145
 
100146
100146
  var v = textPosition.indexOf('top') !== -1 ?
@@ -100162,7 +100162,9 @@ function textPointPosition(s, textPosition, fontSize, markerRadius) {
100162
100162
 
100163
100163
  // fix the overall text group position
100164
100164
  s.attr('text-anchor', h);
100165
- group.attr('transform', strTranslate(dx, dy));
100165
+ if(!dontTouchParent) {
100166
+ group.attr('transform', strTranslate(dx, dy));
100167
+ }
100166
100168
  }
100167
100169
 
100168
100170
  function extracTextFontSize(d, trace) {
@@ -100232,7 +100234,8 @@ drawing.selectedTextStyle = function(s, trace) {
100232
100234
  var fontSize = extracTextFontSize(d, trace);
100233
100235
 
100234
100236
  Color.fill(tx, tc);
100235
- textPointPosition(tx, tp, fontSize, d.mrc2 || d.mrc);
100237
+ var dontTouchParent = Registry.traceIs(trace, 'bar-like');
100238
+ textPointPosition(tx, tp, fontSize, d.mrc2 || d.mrc, dontTouchParent);
100236
100239
  });
100237
100240
  };
100238
100241
 
@@ -207703,7 +207706,7 @@ function getSortFunc(opts, d2c) {
207703
207706
  'use strict';
207704
207707
 
207705
207708
  // package version injected by `npm run preprocess`
207706
- exports.version = '2.6.3';
207709
+ exports.version = '2.6.4';
207707
207710
 
207708
207711
  },{}],933:[function(_dereq_,module,exports){
207709
207712
  (function (global){(function (){