Skip to content

Commit

Permalink
2.5.0
Browse files Browse the repository at this point in the history
  • Loading branch information
archmoj committed Sep 3, 2021
1 parent b55ee8e commit 8788e57
Show file tree
Hide file tree
Showing 24 changed files with 90,354 additions and 35,604 deletions.
56 changes: 28 additions & 28 deletions dist/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,12 +43,12 @@ The main plotly.js bundles weight in at:

| plotly.js | plotly.min.js | plotly.min.js + gzip | plotly-with-meta.js |
|-----------|---------------|----------------------|---------------------|
| 8.1 MB | 3.4 MB | 1 MB | 8.4 MB |
| 8.2 MB | 3.5 MB | 1 MB | 8.5 MB |

#### CDN links
> https://cdn.plot.ly/plotly-2.4.2.js
> https://cdn.plot.ly/plotly-2.5.0.js
> https://cdn.plot.ly/plotly-2.4.2.min.js
> https://cdn.plot.ly/plotly-2.5.0.min.js

#### npm packages
Expand Down Expand Up @@ -91,12 +91,12 @@ The `basic` partial bundle contains trace modules `bar`, `pie` and `scatter`.

| Raw size | Minified size | Minified + gzip size |
|------|-----------------|------------------------|
| 2.7 MB | 972.6 kB | 316.4 kB |
| 2.7 MB | 972.9 kB | 316.5 kB |

#### CDN links
> https://cdn.plot.ly/plotly-basic-2.4.2.js
> https://cdn.plot.ly/plotly-basic-2.5.0.js
> https://cdn.plot.ly/plotly-basic-2.4.2.min.js
> https://cdn.plot.ly/plotly-basic-2.5.0.min.js

#### npm packages
Expand All @@ -114,12 +114,12 @@ The `cartesian` partial bundle contains trace modules `bar`, `box`, `contour`, `

| Raw size | Minified size | Minified + gzip size |
|------|-----------------|------------------------|
| 3.3 MB | 1.2 MB | 387.9 kB |
| 3.3 MB | 1.2 MB | 388 kB |

#### CDN links
> https://cdn.plot.ly/plotly-cartesian-2.4.2.js
> https://cdn.plot.ly/plotly-cartesian-2.5.0.js
> https://cdn.plot.ly/plotly-cartesian-2.4.2.min.js
> https://cdn.plot.ly/plotly-cartesian-2.5.0.min.js

#### npm packages
Expand All @@ -137,12 +137,12 @@ The `geo` partial bundle contains trace modules `choropleth`, `scatter` and `sca

| Raw size | Minified size | Minified + gzip size |
|------|-----------------|------------------------|
| 3 MB | 1.1 MB | 359.2 kB |
| 3 MB | 1.1 MB | 359.3 kB |

#### CDN links
> https://cdn.plot.ly/plotly-geo-2.4.2.js
> https://cdn.plot.ly/plotly-geo-2.5.0.js
> https://cdn.plot.ly/plotly-geo-2.4.2.min.js
> https://cdn.plot.ly/plotly-geo-2.5.0.min.js

#### npm packages
Expand All @@ -160,12 +160,12 @@ The `gl3d` partial bundle contains trace modules `cone`, `isosurface`, `mesh3d`,

| Raw size | Minified size | Minified + gzip size |
|------|-----------------|------------------------|
| 3.7 MB | 1.5 MB | 471.6 kB |
| 3.8 MB | 1.5 MB | 472.2 kB |

#### CDN links
> https://cdn.plot.ly/plotly-gl3d-2.4.2.js
> https://cdn.plot.ly/plotly-gl3d-2.5.0.js
> https://cdn.plot.ly/plotly-gl3d-2.4.2.min.js
> https://cdn.plot.ly/plotly-gl3d-2.5.0.min.js

#### npm packages
Expand All @@ -183,12 +183,12 @@ The `gl2d` partial bundle contains trace modules `heatmapgl`, `parcoords`, `poin

| Raw size | Minified size | Minified + gzip size |
|------|-----------------|------------------------|
| 3.8 MB | 1.5 MB | 493.6 kB |
| 3.8 MB | 1.5 MB | 495.5 kB |

#### CDN links
> https://cdn.plot.ly/plotly-gl2d-2.4.2.js
> https://cdn.plot.ly/plotly-gl2d-2.5.0.js
> https://cdn.plot.ly/plotly-gl2d-2.4.2.min.js
> https://cdn.plot.ly/plotly-gl2d-2.5.0.min.js

#### npm packages
Expand All @@ -206,12 +206,12 @@ The `mapbox` partial bundle contains trace modules `choroplethmapbox`, `densitym

| Raw size | Minified size | Minified + gzip size |
|------|-----------------|------------------------|
| 4.3 MB | 1.7 MB | 513.4 kB |
| 4.3 MB | 1.7 MB | 513.6 kB |

#### CDN links
> https://cdn.plot.ly/plotly-mapbox-2.4.2.js
> https://cdn.plot.ly/plotly-mapbox-2.5.0.js
> https://cdn.plot.ly/plotly-mapbox-2.4.2.min.js
> https://cdn.plot.ly/plotly-mapbox-2.5.0.min.js

#### npm packages
Expand All @@ -229,12 +229,12 @@ The `finance` partial bundle contains trace modules `bar`, `candlestick`, `funne

| Raw size | Minified size | Minified + gzip size |
|------|-----------------|------------------------|
| 2.9 MB | 1.1 MB | 348.9 kB |
| 2.9 MB | 1.1 MB | 349.1 kB |

#### CDN links
> https://cdn.plot.ly/plotly-finance-2.4.2.js
> https://cdn.plot.ly/plotly-finance-2.5.0.js
> https://cdn.plot.ly/plotly-finance-2.4.2.min.js
> https://cdn.plot.ly/plotly-finance-2.5.0.min.js

#### npm packages
Expand All @@ -246,18 +246,18 @@ The `finance` partial bundle contains trace modules `bar`, `candlestick`, `funne

### plotly.js strict

The `strict` partial bundle contains trace modules `bar`, `barpolar`, `box`, `candlestick`, `carpet`, `choropleth`, `choroplethmapbox`, `contour`, `contourcarpet`, `densitymapbox`, `funnel`, `funnelarea`, `heatmap`, `histogram`, `histogram2d`, `histogram2dcontour`, `icicle`, `image`, `indicator`, `ohlc`, `parcats`, `pie`, `sankey`, `scatter`, `scattercarpet`, `scattergeo`, `scattermapbox`, `scatterpolar`, `scatterternary`, `sunburst`, `table`, `treemap`, `violin` and `waterfall`.
The `strict` partial bundle contains trace modules `bar`, `barpolar`, `box`, `candlestick`, `carpet`, `choropleth`, `choroplethmapbox`, `cone`, `contour`, `contourcarpet`, `densitymapbox`, `funnel`, `funnelarea`, `heatmap`, `heatmapgl`, `histogram`, `histogram2d`, `histogram2dcontour`, `icicle`, `image`, `indicator`, `isosurface`, `mesh3d`, `ohlc`, `parcats`, `pie`, `pointcloud`, `sankey`, `scatter`, `scatter`, `scatter3d`, `scattercarpet`, `scattergeo`, `scattermapbox`, `scatterpolar`, `scatterternary`, `streamtube`, `sunburst`, `surface`, `table`, `treemap`, `violin`, `volume` and `waterfall`.

#### Stats

| Raw size | Minified size | Minified + gzip size |
|------|-----------------|------------------------|
| 6.3 MB | 2.5 MB | 764.2 kB |
| 7.7 MB | 3.2 MB | 950.5 kB |

#### CDN links
> https://cdn.plot.ly/plotly-strict-2.4.2.js
> https://cdn.plot.ly/plotly-strict-2.5.0.js
> https://cdn.plot.ly/plotly-strict-2.4.2.min.js
> https://cdn.plot.ly/plotly-strict-2.5.0.min.js

#### npm packages
Expand Down
62 changes: 48 additions & 14 deletions dist/plotly-basic.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* plotly.js (basic) v2.4.2
* plotly.js (basic) v2.5.0
* Copyright 2012-2021, Plotly, Inc.
* All rights reserved.
* Licensed under the MIT license
Expand Down Expand Up @@ -27894,7 +27894,7 @@ function createHoverText(hoverData, opts) {
var ya = c0.ya;
var axLetter = hovermode.charAt(0);
var t0 = c0[axLetter + 'Label'];
var outerContainerBB = outerContainer.getBoundingClientRect();
var outerContainerBB = getBoundingClientRect(gd, outerContainer);
var outerTop = outerContainerBB.top;
var outerWidth = outerContainerBB.width;
var outerHeight = outerContainerBB.height;
Expand Down Expand Up @@ -27969,7 +27969,7 @@ function createHoverText(hoverData, opts) {

label.attr('transform', '');

var tbb = ltext.node().getBoundingClientRect();
var tbb = getBoundingClientRect(gd, ltext.node());
var lx, ly;

if(hovermode === 'x') {
Expand Down Expand Up @@ -28062,7 +28062,7 @@ function createHoverText(hoverData, opts) {
var dummy = Drawing.tester.append('text')
.text(s.text())
.call(Drawing.font, commonLabelFont);
var dummyBB = dummy.node().getBoundingClientRect();
var dummyBB = getBoundingClientRect(gd, dummy.node());
if(Math.round(dummyBB.width) < Math.round(tbb.width)) {
s.attr('x', ltx - dummyBB.width);
}
Expand Down Expand Up @@ -28151,7 +28151,7 @@ function createHoverText(hoverData, opts) {

// Position the hover
var legendContainer = container.select('g.legend');
var tbb = legendContainer.node().getBoundingClientRect();
var tbb = getBoundingClientRect(gd, legendContainer.node());
var tWidth = tbb.width + 2 * HOVERTEXTPAD;
var tHeight = tbb.height + 2 * HOVERTEXTPAD;
var winningPoint = hoverData[0];
Expand Down Expand Up @@ -28316,7 +28316,7 @@ function createHoverText(hoverData, opts) {
.call(svgTextUtils.positionText, 0, 0)
.call(svgTextUtils.convertToTspans, gd);

var t2bb = tx2.node().getBoundingClientRect();
var t2bb = getBoundingClientRect(gd, tx2.node());
tx2width = t2bb.width + 2 * HOVERTEXTPAD;
tx2height = t2bb.height + 2 * HOVERTEXTPAD;
} else {
Expand All @@ -28329,22 +28329,26 @@ function createHoverText(hoverData, opts) {
stroke: contrastColor
});

var tbb = tx.node().getBoundingClientRect();
var htx = d.xa._offset + (d.x0 + d.x1) / 2;
var hty = d.ya._offset + (d.y0 + d.y1) / 2;
var dx = Math.abs(d.x1 - d.x0);
var dy = Math.abs(d.y1 - d.y0);
var txTotalWidth = tbb.width + HOVERARROWSIZE + HOVERTEXTPAD + tx2width;
var anchorStartOK, anchorEndOK;

d.ty0 = outerTop - tbb.top;
d.bx = tbb.width + 2 * HOVERTEXTPAD;
d.by = Math.max(tbb.height + 2 * HOVERTEXTPAD, tx2height);
var tbb = getBoundingClientRect(gd, tx.node());
var tbbWidth = tbb.width / fullLayout._invScaleX;
var tbbHeight = tbb.height / fullLayout._invScaleY;

d.ty0 = (outerTop - tbb.top) / fullLayout._invScaleY;
d.bx = tbbWidth + 2 * HOVERTEXTPAD;
d.by = Math.max(tbbHeight + 2 * HOVERTEXTPAD, tx2height);
d.anchor = 'start';
d.txwidth = tbb.width;
d.txwidth = tbbWidth;
d.tx2width = tx2width;
d.offset = 0;

var txTotalWidth = (tbbWidth + HOVERARROWSIZE + HOVERTEXTPAD + tx2width) * fullLayout._invScaleX;
var anchorStartOK, anchorEndOK;

if(rotateLabels) {
d.pos = htx;
anchorStartOK = hty + dy / 2 + txTotalWidth <= outerHeight;
Expand Down Expand Up @@ -29104,6 +29108,36 @@ function getCoord(axLetter, winningPoint, fullLayout) {
function getTopOffset(gd) { return gd.offsetTop + gd.clientTop; }
function getLeftOffset(gd) { return gd.offsetLeft + gd.clientLeft; }

function getBoundingClientRect(gd, node) {
var fullLayout = gd._fullLayout;

var rect = node.getBoundingClientRect();

var x0 = rect.x;
var y0 = rect.y;
var x1 = x0 + rect.width;
var y1 = y0 + rect.height;

var A = Lib.apply3DTransform(fullLayout._invTransform)(x0, y0);
var B = Lib.apply3DTransform(fullLayout._invTransform)(x1, y1);

var Ax = A[0];
var Ay = A[1];
var Bx = B[0];
var By = B[1];

return {
x: Ax,
y: Ay,
width: Bx - Ax,
height: By - Ay,
top: Math.min(Ay, By),
left: Math.min(Ax, Bx),
right: Math.max(Ax, Bx),
bottom: Math.max(Ay, By),
};
}

},{"../../lib":232,"../../lib/events":225,"../../lib/override_cursor":243,"../../lib/svg_text_utils":255,"../../plots/cartesian/axes":279,"../../registry":316,"../color":102,"../dragelement":121,"../drawing":124,"../legend/defaults":154,"../legend/draw":155,"./constants":136,"./helpers":138,"@plotly/d3":11,"fast-isnumeric":17,"tinycolor2":67}],140:[function(_dereq_,module,exports){
'use strict';

Expand Down Expand Up @@ -82201,7 +82235,7 @@ function getSortFunc(opts, d2c) {
'use strict';

// package version injected by `npm run preprocess`
exports.version = '2.4.2';
exports.version = '2.5.0';

},{}]},{},[8])(8)
});
4 changes: 2 additions & 2 deletions dist/plotly-basic.min.js

Large diffs are not rendered by default.

Loading

0 comments on commit 8788e57

Please sign in to comment.