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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "plotly.js",
3
- "version": "2.6.3",
3
+ "version": "2.6.4",
4
4
  "description": "The open source javascript graphing library that powers plotly",
5
5
  "license": "MIT",
6
6
  "main": "./lib/index.js",
@@ -125,12 +125,12 @@
125
125
  "browserify-transform-tools": "^1.7.0",
126
126
  "bubleify": "^2.0.0",
127
127
  "canvas": "^2.8.0",
128
- "check-node-version": "^4.1.0",
128
+ "check-node-version": "^4.2.1",
129
129
  "chttps": "^1.0.6",
130
130
  "deep-equal": "^2.0.5",
131
131
  "derequire": "^2.1.1",
132
132
  "ecstatic": "^4.1.4",
133
- "eslint": "^8.1.0",
133
+ "eslint": "^8.3.0",
134
134
  "extra-iterable": "^2.5.22",
135
135
  "falafel": "^2.2.4",
136
136
  "fs-extra": "^10.0.0",
@@ -139,11 +139,11 @@
139
139
  "gzip-size": "^6.0.0",
140
140
  "into-stream": "^6.0.0",
141
141
  "jasmine-core": "^3.5.0",
142
- "jsdom": "^18.0.0",
143
- "karma": "^6.3.6",
142
+ "jsdom": "^18.1.1",
143
+ "karma": "^6.3.9",
144
144
  "karma-browserify": "^8.1.0",
145
145
  "karma-chrome-launcher": "^3.1.0",
146
- "karma-firefox-launcher": "^2.1.1",
146
+ "karma-firefox-launcher": "^2.1.2",
147
147
  "karma-ie-launcher": "^1.0.0",
148
148
  "karma-jasmine": "^3.3.1",
149
149
  "karma-jasmine-spec-tags": "^1.3.0",
@@ -155,14 +155,14 @@
155
155
  "mathjax": "2.7.5",
156
156
  "minify-stream": "^2.1.0",
157
157
  "npm-link-check": "^4.0.0",
158
- "open": "^8.3.0",
158
+ "open": "^8.4.0",
159
159
  "pixelmatch": "^5.2.1",
160
160
  "prepend-file": "^2.0.0",
161
161
  "prettysize": "^2.0.0",
162
162
  "read-last-lines": "^1.8.0",
163
163
  "run-series": "^1.1.9",
164
164
  "sane-topojson": "^4.0.0",
165
- "sass": "^1.42.1",
165
+ "sass": "^1.43.4",
166
166
  "through2": "^4.0.2",
167
167
  "true-case-path": "^2.2.1",
168
168
  "watchify": "^4.0.0"
@@ -927,7 +927,7 @@ var TEXTOFFSETSIGN = {
927
927
  start: 1, end: -1, middle: 0, bottom: 1, top: -1
928
928
  };
929
929
 
930
- function textPointPosition(s, textPosition, fontSize, markerRadius) {
930
+ function textPointPosition(s, textPosition, fontSize, markerRadius, dontTouchParent) {
931
931
  var group = d3.select(s.node().parentNode);
932
932
 
933
933
  var v = textPosition.indexOf('top') !== -1 ?
@@ -949,7 +949,9 @@ function textPointPosition(s, textPosition, fontSize, markerRadius) {
949
949
 
950
950
  // fix the overall text group position
951
951
  s.attr('text-anchor', h);
952
- group.attr('transform', strTranslate(dx, dy));
952
+ if(!dontTouchParent) {
953
+ group.attr('transform', strTranslate(dx, dy));
954
+ }
953
955
  }
954
956
 
955
957
  function extracTextFontSize(d, trace) {
@@ -1019,7 +1021,8 @@ drawing.selectedTextStyle = function(s, trace) {
1019
1021
  var fontSize = extracTextFontSize(d, trace);
1020
1022
 
1021
1023
  Color.fill(tx, tc);
1022
- textPointPosition(tx, tp, fontSize, d.mrc2 || d.mrc);
1024
+ var dontTouchParent = Registry.traceIs(trace, 'bar-like');
1025
+ textPointPosition(tx, tp, fontSize, d.mrc2 || d.mrc, dontTouchParent);
1023
1026
  });
1024
1027
  };
1025
1028
 
package/src/version.js CHANGED
@@ -1,4 +1,4 @@
1
1
  'use strict';
2
2
 
3
3
  // package version injected by `npm run preprocess`
4
- exports.version = '2.6.3';
4
+ exports.version = '2.6.4';