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 (cartesian) v2.6.3
2
+ * plotly.js (cartesian) v2.6.4
3
3
  * Copyright 2012-2021, Plotly, Inc.
4
4
  * All rights reserved.
5
5
  * Licensed under the MIT license
@@ -34130,7 +34130,7 @@ var TEXTOFFSETSIGN = {
34130
34130
  start: 1, end: -1, middle: 0, bottom: 1, top: -1
34131
34131
  };
34132
34132
 
34133
- function textPointPosition(s, textPosition, fontSize, markerRadius) {
34133
+ function textPointPosition(s, textPosition, fontSize, markerRadius, dontTouchParent) {
34134
34134
  var group = d3.select(s.node().parentNode);
34135
34135
 
34136
34136
  var v = textPosition.indexOf('top') !== -1 ?
@@ -34152,7 +34152,9 @@ function textPointPosition(s, textPosition, fontSize, markerRadius) {
34152
34152
 
34153
34153
  // fix the overall text group position
34154
34154
  s.attr('text-anchor', h);
34155
- group.attr('transform', strTranslate(dx, dy));
34155
+ if(!dontTouchParent) {
34156
+ group.attr('transform', strTranslate(dx, dy));
34157
+ }
34156
34158
  }
34157
34159
 
34158
34160
  function extracTextFontSize(d, trace) {
@@ -34222,7 +34224,8 @@ drawing.selectedTextStyle = function(s, trace) {
34222
34224
  var fontSize = extracTextFontSize(d, trace);
34223
34225
 
34224
34226
  Color.fill(tx, tc);
34225
- textPointPosition(tx, tp, fontSize, d.mrc2 || d.mrc);
34227
+ var dontTouchParent = Registry.traceIs(trace, 'bar-like');
34228
+ textPointPosition(tx, tp, fontSize, d.mrc2 || d.mrc, dontTouchParent);
34226
34229
  });
34227
34230
  };
34228
34231
 
@@ -102156,7 +102159,7 @@ function getSortFunc(opts, d2c) {
102156
102159
  'use strict';
102157
102160
 
102158
102161
  // package version injected by `npm run preprocess`
102159
- exports.version = '2.6.3';
102162
+ exports.version = '2.6.4';
102160
102163
 
102161
102164
  },{}]},{},[15])(15)
102162
102165
  });