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 (mapbox) v2.6.3
2
+ * plotly.js (mapbox) v2.6.4
3
3
  * Copyright 2012-2021, Plotly, Inc.
4
4
  * All rights reserved.
5
5
  * Licensed under the MIT license
@@ -72234,7 +72234,7 @@ var TEXTOFFSETSIGN = {
72234
72234
  start: 1, end: -1, middle: 0, bottom: 1, top: -1
72235
72235
  };
72236
72236
 
72237
- function textPointPosition(s, textPosition, fontSize, markerRadius) {
72237
+ function textPointPosition(s, textPosition, fontSize, markerRadius, dontTouchParent) {
72238
72238
  var group = d3.select(s.node().parentNode);
72239
72239
 
72240
72240
  var v = textPosition.indexOf('top') !== -1 ?
@@ -72256,7 +72256,9 @@ function textPointPosition(s, textPosition, fontSize, markerRadius) {
72256
72256
 
72257
72257
  // fix the overall text group position
72258
72258
  s.attr('text-anchor', h);
72259
- group.attr('transform', strTranslate(dx, dy));
72259
+ if(!dontTouchParent) {
72260
+ group.attr('transform', strTranslate(dx, dy));
72261
+ }
72260
72262
  }
72261
72263
 
72262
72264
  function extracTextFontSize(d, trace) {
@@ -72326,7 +72328,8 @@ drawing.selectedTextStyle = function(s, trace) {
72326
72328
  var fontSize = extracTextFontSize(d, trace);
72327
72329
 
72328
72330
  Color.fill(tx, tc);
72329
- textPointPosition(tx, tp, fontSize, d.mrc2 || d.mrc);
72331
+ var dontTouchParent = Registry.traceIs(trace, 'bar-like');
72332
+ textPointPosition(tx, tp, fontSize, d.mrc2 || d.mrc, dontTouchParent);
72330
72333
  });
72331
72334
  };
72332
72335
 
@@ -129502,7 +129505,7 @@ function getSortFunc(opts, d2c) {
129502
129505
  'use strict';
129503
129506
 
129504
129507
  // package version injected by `npm run preprocess`
129505
- exports.version = '2.6.3';
129508
+ exports.version = '2.6.4';
129506
129509
 
129507
129510
  },{}]},{},[9])(9)
129508
129511
  });