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/CHANGELOG.md +6 -0
- package/README.md +3 -3
- package/dist/README.md +21 -21
- package/dist/plotly-basic.js +8 -5
- package/dist/plotly-basic.min.js +2 -2
- package/dist/plotly-cartesian.js +8 -5
- package/dist/plotly-cartesian.min.js +2 -2
- package/dist/plotly-finance.js +8 -5
- package/dist/plotly-finance.min.js +2 -2
- package/dist/plotly-geo-assets.js +2 -2
- package/dist/plotly-geo.js +8 -5
- package/dist/plotly-geo.min.js +2 -2
- package/dist/plotly-gl2d.js +8 -5
- package/dist/plotly-gl2d.min.js +2 -2
- package/dist/plotly-gl3d.js +8 -5
- package/dist/plotly-gl3d.min.js +2 -2
- package/dist/plotly-mapbox.js +8 -5
- package/dist/plotly-mapbox.min.js +2 -2
- package/dist/plotly-strict.js +8 -5
- package/dist/plotly-strict.min.js +2 -2
- package/dist/plotly-with-meta.js +8 -5
- package/dist/plotly.js +8 -5
- package/dist/plotly.min.js +2 -2
- package/package.json +8 -8
- package/src/components/drawing/index.js +6 -3
- package/src/version.js +1 -1
package/dist/plotly-finance.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* plotly.js (finance) v2.6.
|
|
2
|
+
* plotly.js (finance) v2.6.4
|
|
3
3
|
* Copyright 2012-2021, Plotly, Inc.
|
|
4
4
|
* All rights reserved.
|
|
5
5
|
* Licensed under the MIT license
|
|
@@ -26191,7 +26191,7 @@ var TEXTOFFSETSIGN = {
|
|
|
26191
26191
|
start: 1, end: -1, middle: 0, bottom: 1, top: -1
|
|
26192
26192
|
};
|
|
26193
26193
|
|
|
26194
|
-
function textPointPosition(s, textPosition, fontSize, markerRadius) {
|
|
26194
|
+
function textPointPosition(s, textPosition, fontSize, markerRadius, dontTouchParent) {
|
|
26195
26195
|
var group = d3.select(s.node().parentNode);
|
|
26196
26196
|
|
|
26197
26197
|
var v = textPosition.indexOf('top') !== -1 ?
|
|
@@ -26213,7 +26213,9 @@ function textPointPosition(s, textPosition, fontSize, markerRadius) {
|
|
|
26213
26213
|
|
|
26214
26214
|
// fix the overall text group position
|
|
26215
26215
|
s.attr('text-anchor', h);
|
|
26216
|
-
|
|
26216
|
+
if(!dontTouchParent) {
|
|
26217
|
+
group.attr('transform', strTranslate(dx, dy));
|
|
26218
|
+
}
|
|
26217
26219
|
}
|
|
26218
26220
|
|
|
26219
26221
|
function extracTextFontSize(d, trace) {
|
|
@@ -26283,7 +26285,8 @@ drawing.selectedTextStyle = function(s, trace) {
|
|
|
26283
26285
|
var fontSize = extracTextFontSize(d, trace);
|
|
26284
26286
|
|
|
26285
26287
|
Color.fill(tx, tc);
|
|
26286
|
-
|
|
26288
|
+
var dontTouchParent = Registry.traceIs(trace, 'bar-like');
|
|
26289
|
+
textPointPosition(tx, tp, fontSize, d.mrc2 || d.mrc, dontTouchParent);
|
|
26287
26290
|
});
|
|
26288
26291
|
};
|
|
26289
26292
|
|
|
@@ -90226,7 +90229,7 @@ function getSortFunc(opts, d2c) {
|
|
|
90226
90229
|
'use strict';
|
|
90227
90230
|
|
|
90228
90231
|
// package version injected by `npm run preprocess`
|
|
90229
|
-
exports.version = '2.6.
|
|
90232
|
+
exports.version = '2.6.4';
|
|
90230
90233
|
|
|
90231
90234
|
},{}]},{},[12])(12)
|
|
90232
90235
|
});
|