Skip to content

Commit

Permalink
1.58.3
Browse files Browse the repository at this point in the history
  • Loading branch information
archmoj committed Dec 17, 2020
1 parent e656dea commit d45eef5
Show file tree
Hide file tree
Showing 22 changed files with 334 additions and 622 deletions.
50 changes: 25 additions & 25 deletions dist/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ object. This property must be set before the plotly.js script tag, for example:
Plotly.js defaults to US English (en-US) and includes British English (en) in the standard bundle.
Many other localizations are available - here is an example using Swiss-German (de-CH),
see the contents of this directory for the full list.
They are also available on our CDN as https://cdn.plot.ly/plotly-locale-de-ch-latest.js OR https://cdn.plot.ly/plotly-locale-de-ch-1.58.2.js
They are also available on our CDN as https://cdn.plot.ly/plotly-locale-de-ch-latest.js OR https://cdn.plot.ly/plotly-locale-de-ch-1.58.3.js
Note that the file names are all lowercase, even though the region is uppercase when you apply a locale.

*After* the plotly.js script tag, add:
Expand All @@ -74,12 +74,12 @@ The main plotly.js bundle includes all the official (non-beta) trace modules.

It be can imported as minified javascript
- using dist file `dist/plotly.min.js`
- using CDN URL https://cdn.plot.ly/plotly-latest.min.js OR https://cdn.plot.ly/plotly-1.58.2.min.js
- using CDN URL https://cdn.plot.ly/plotly-latest.min.js OR https://cdn.plot.ly/plotly-1.58.3.min.js

or as raw javascript:
- using the `plotly.js-dist` npm package (starting in `v1.39.0`)
- using dist file `dist/plotly.js`
- using CDN URL https://cdn.plot.ly/plotly-latest.js OR https://cdn.plot.ly/plotly-1.58.2.js
- using CDN URL https://cdn.plot.ly/plotly-latest.js OR https://cdn.plot.ly/plotly-1.58.3.js
- using CommonJS with `require('plotly.js')`

If you would like to have access to the attribute meta information (including attribute descriptions as on the [schema reference page](https://plotly.com/javascript/reference/)), use dist file `dist/plotly-with-meta.js`
Expand All @@ -88,7 +88,7 @@ The main plotly.js bundle weights in at:

| plotly.js | plotly.min.js | plotly.min.js + gzip | plotly-with-meta.js |
|-----------|---------------|----------------------|---------------------|
| 7.2 MB | 3.3 MB | 1007.2 kB | 7.5 MB |
| 7.2 MB | 3.3 MB | 1007.1 kB | 7.5 MB |

## Partial bundles

Expand All @@ -114,16 +114,16 @@ The `basic` partial bundle contains trace modules `scatter`, `bar` and `pie`.

| Raw size | Minified size | Minified + gzip size |
|------|-----------------|------------------------|
| 2.6 MB | 935.5 kB | 307.4 kB |
| 2.6 MB | 935.2 kB | 307.3 kB |

#### CDN links

| Flavor | URL |
| ------ | --- |
| Latest | https://cdn.plot.ly/plotly-basic-latest.js |
| Latest minified | https://cdn.plot.ly/plotly-basic-latest.min.js |
| Tagged | https://cdn.plot.ly/plotly-basic-1.58.2.js |
| Tagged minified | https://cdn.plot.ly/plotly-basic-1.58.2.min.js |
| Tagged | https://cdn.plot.ly/plotly-basic-1.58.3.js |
| Tagged minified | https://cdn.plot.ly/plotly-basic-1.58.3.min.js |

#### npm package (starting in `v1.39.0`)

Expand Down Expand Up @@ -167,16 +167,16 @@ The `cartesian` partial bundle contains trace modules `scatter`, `bar`, `box`, `

| Raw size | Minified size | Minified + gzip size |
|------|-----------------|------------------------|
| 3 MB | 1.1 MB | 361 kB |
| 3 MB | 1.1 MB | 360.9 kB |

#### CDN links

| Flavor | URL |
| ------ | --- |
| Latest | https://cdn.plot.ly/plotly-cartesian-latest.js |
| Latest minified | https://cdn.plot.ly/plotly-cartesian-latest.min.js |
| Tagged | https://cdn.plot.ly/plotly-cartesian-1.58.2.js |
| Tagged minified | https://cdn.plot.ly/plotly-cartesian-1.58.2.min.js |
| Tagged | https://cdn.plot.ly/plotly-cartesian-1.58.3.js |
| Tagged minified | https://cdn.plot.ly/plotly-cartesian-1.58.3.min.js |

#### npm package (starting in `v1.39.0`)

Expand Down Expand Up @@ -220,16 +220,16 @@ The `geo` partial bundle contains trace modules `scatter`, `scattergeo` and `cho

| Raw size | Minified size | Minified + gzip size |
|------|-----------------|------------------------|
| 2.7 MB | 962.1 kB | 316.7 kB |
| 2.7 MB | 961.8 kB | 316.6 kB |

#### CDN links

| Flavor | URL |
| ------ | --- |
| Latest | https://cdn.plot.ly/plotly-geo-latest.js |
| Latest minified | https://cdn.plot.ly/plotly-geo-latest.min.js |
| Tagged | https://cdn.plot.ly/plotly-geo-1.58.2.js |
| Tagged minified | https://cdn.plot.ly/plotly-geo-1.58.2.min.js |
| Tagged | https://cdn.plot.ly/plotly-geo-1.58.3.js |
| Tagged minified | https://cdn.plot.ly/plotly-geo-1.58.3.min.js |

#### npm package (starting in `v1.39.0`)

Expand Down Expand Up @@ -273,16 +273,16 @@ The `gl3d` partial bundle contains trace modules `scatter`, `scatter3d`, `surfac

| Raw size | Minified size | Minified + gzip size |
|------|-----------------|------------------------|
| 3.6 MB | 1.4 MB | 463.1 kB |
| 3.6 MB | 1.4 MB | 463 kB |

#### CDN links

| Flavor | URL |
| ------ | --- |
| Latest | https://cdn.plot.ly/plotly-gl3d-latest.js |
| Latest minified | https://cdn.plot.ly/plotly-gl3d-latest.min.js |
| Tagged | https://cdn.plot.ly/plotly-gl3d-1.58.2.js |
| Tagged minified | https://cdn.plot.ly/plotly-gl3d-1.58.2.min.js |
| Tagged | https://cdn.plot.ly/plotly-gl3d-1.58.3.js |
| Tagged minified | https://cdn.plot.ly/plotly-gl3d-1.58.3.min.js |

#### npm package (starting in `v1.39.0`)

Expand Down Expand Up @@ -326,16 +326,16 @@ The `gl2d` partial bundle contains trace modules `scatter`, `scattergl`, `splom`

| Raw size | Minified size | Minified + gzip size |
|------|-----------------|------------------------|
| 3.7 MB | 1.5 MB | 488.1 kB |
| 3.7 MB | 1.5 MB | 488 kB |

#### CDN links

| Flavor | URL |
| ------ | --- |
| Latest | https://cdn.plot.ly/plotly-gl2d-latest.js |
| Latest minified | https://cdn.plot.ly/plotly-gl2d-latest.min.js |
| Tagged | https://cdn.plot.ly/plotly-gl2d-1.58.2.js |
| Tagged minified | https://cdn.plot.ly/plotly-gl2d-1.58.2.min.js |
| Tagged | https://cdn.plot.ly/plotly-gl2d-1.58.3.js |
| Tagged minified | https://cdn.plot.ly/plotly-gl2d-1.58.3.min.js |

#### npm package (starting in `v1.39.0`)

Expand Down Expand Up @@ -379,16 +379,16 @@ The `mapbox` partial bundle contains trace modules `scatter`, `scattermapbox`, `

| Raw size | Minified size | Minified + gzip size |
|------|-----------------|------------------------|
| 3.4 MB | 1.7 MB | 503.8 kB |
| 3.4 MB | 1.7 MB | 503.7 kB |

#### CDN links

| Flavor | URL |
| ------ | --- |
| Latest | https://cdn.plot.ly/plotly-mapbox-latest.js |
| Latest minified | https://cdn.plot.ly/plotly-mapbox-latest.min.js |
| Tagged | https://cdn.plot.ly/plotly-mapbox-1.58.2.js |
| Tagged minified | https://cdn.plot.ly/plotly-mapbox-1.58.2.min.js |
| Tagged | https://cdn.plot.ly/plotly-mapbox-1.58.3.js |
| Tagged minified | https://cdn.plot.ly/plotly-mapbox-1.58.3.min.js |

#### npm package (starting in `v1.39.0`)

Expand Down Expand Up @@ -432,16 +432,16 @@ The `finance` partial bundle contains trace modules `scatter`, `bar`, `histogram

| Raw size | Minified size | Minified + gzip size |
|------|-----------------|------------------------|
| 2.8 MB | 1 MB | 333.2 kB |
| 2.8 MB | 1 MB | 333.1 kB |

#### CDN links

| Flavor | URL |
| ------ | --- |
| Latest | https://cdn.plot.ly/plotly-finance-latest.js |
| Latest minified | https://cdn.plot.ly/plotly-finance-latest.min.js |
| Tagged | https://cdn.plot.ly/plotly-finance-1.58.2.js |
| Tagged minified | https://cdn.plot.ly/plotly-finance-1.58.2.min.js |
| Tagged | https://cdn.plot.ly/plotly-finance-1.58.3.js |
| Tagged minified | https://cdn.plot.ly/plotly-finance-1.58.3.min.js |

#### npm package (starting in `v1.39.0`)

Expand Down
96 changes: 32 additions & 64 deletions dist/plotly-basic.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* plotly.js (basic) v1.58.2
* plotly.js (basic) v1.58.3
* Copyright 2012-2020, Plotly, Inc.
* All rights reserved.
* Licensed under the MIT license
Expand Down Expand Up @@ -48917,7 +48917,9 @@ function axRangeSupplyDefaultsByPass(gd, flags, specs) {
var axIn = gd.layout[axName];
var axOut = fullLayout[axName];
axOut.autorange = axIn.autorange;
axOut.range = axIn.range.slice();
if(axIn.range) {
axOut.range = axIn.range.slice();
}
axOut.cleanRange();

if(axOut._matchGroup) {
Expand Down Expand Up @@ -49704,16 +49706,6 @@ function react(gd, data, layout, config) {

applyUIRevisions(gd.data, gd.layout, oldFullData, oldFullLayout);

var allNames = Object.getOwnPropertyNames(oldFullLayout);
for(var q = 0; q < allNames.length; q++) {
var name = allNames[q];
var start = name.substring(0, 5);
if(start === 'xaxis' || start === 'yaxis') {
var emptyCategories = oldFullLayout[name]._emptyCategories;
if(emptyCategories) emptyCategories();
}
}

// "true" skips updating calcdata and remapping arrays from calcTransforms,
// which supplyDefaults usually does at the end, but we may need to NOT do
// if the diff (which we haven't determined yet) says we'll recalc
Expand All @@ -49739,10 +49731,22 @@ function react(gd, data, layout, config) {

if(updateAutosize(gd)) relayoutFlags.layoutReplot = true;

// clear calcdata if required
if(restyleFlags.calc || relayoutFlags.calc) gd.calcdata = undefined;
// clear calcdata and empty categories if required
if(restyleFlags.calc || relayoutFlags.calc) {
gd.calcdata = undefined;
var allNames = Object.getOwnPropertyNames(newFullLayout);
for(var q = 0; q < allNames.length; q++) {
var name = allNames[q];
var start = name.substring(0, 5);
if(start === 'xaxis' || start === 'yaxis') {
var emptyCategories = newFullLayout[name]._emptyCategories;
if(emptyCategories) emptyCategories();
}
}
// otherwise do the calcdata updates and calcTransform array remaps that we skipped earlier
else Plots.supplyDefaultsUpdateCalc(gd.calcdata, newFullData);
} else {
Plots.supplyDefaultsUpdateCalc(gd.calcdata, newFullData);
}

// Note: what restyle/relayout use impliedEdits and clearAxisTypes for
// must be handled by the user when using Plotly.react.
Expand Down Expand Up @@ -54660,8 +54664,8 @@ function getAutoRange(gd, ax) {
} else if(dv / axLen > mbest) {
// in case of padding longer than the axis
// at least include the unpadded data values.
minbest = {val: minpt.val, pad: 0};
maxbest = {val: maxpt.val, pad: 0};
minbest = {val: minpt.val, nopad: 1};
maxbest = {val: maxpt.val, nopad: 1};
mbest = dv / axLen;
}
}
Expand Down Expand Up @@ -54698,17 +54702,17 @@ function getAutoRange(gd, ax) {
} else {
if(toZero) {
if(minbest.val >= 0) {
minbest = {val: 0, pad: 0};
minbest = {val: 0, nopad: 1};
}
if(maxbest.val <= 0) {
maxbest = {val: 0, pad: 0};
maxbest = {val: 0, nopad: 1};
}
} else if(nonNegative) {
if(minbest.val - mbest * getPadMin(minbest) < 0) {
minbest = {val: 0, pad: 0};
minbest = {val: 0, nopad: 1};
}
if(maxbest.val <= 0) {
maxbest = {val: 1, pad: 0};
maxbest = {val: 1, nopad: 1};
}
}

Expand Down Expand Up @@ -54763,14 +54767,10 @@ function makePadFn(fullLayout, ax, max) {
if(axReverse) max = !max;
}

var A = 0;
var B = 0;
var zero = 0;
if(!isLinked(fullLayout, ax._id)) {
A = padInsideLabelsOnAnchorAxis(ax, max);
B = padInsideLabelsOnThisAxis(ax, max);
zero = padInsideLabelsOnAnchorAxis(ax, max);
}

var zero = Math.max(A, B);
extrappad = Math.max(zero, extrappad);

// domain-constrained axes: base extrappad on the unconstrained
Expand All @@ -54780,46 +54780,14 @@ function makePadFn(fullLayout, ax, max) {
(ax.domain[1] - ax.domain[0]);
}

return function getPad(pt) { return pt.pad + (pt.extrapad ? extrappad : zero); };
return function getPad(pt) {
if(pt.nopad) return 0;
return pt.pad + (pt.extrapad ? extrappad : zero);
};
}

var TEXTPAD = 3;

function padInsideLabelsOnThisAxis(ax, max) {
var ticklabelposition = ax.ticklabelposition || '';
var has = function(str) {
return ticklabelposition.indexOf(str) !== -1;
};

if(!has('inside')) return 0;
var isTop = has('top');
var isLeft = has('left');
var isRight = has('right');
var isBottom = has('bottom');
var isAligned = isBottom || isLeft || isTop || isRight;

if(
(max && (isLeft || isBottom)) ||
(!max && (isRight || isTop))
) {
return 0;
}

// increase padding to make more room for inside tick labels of the axis
var fontSize = ax.tickfont ? ax.tickfont.size : 12;
var isX = ax._id.charAt(0) === 'x';
var pad = (isX ? 1.2 : 0.6) * fontSize;

if(isAligned) {
pad *= 2;
pad += (ax.tickwidth || 0) / 2;
}

pad += TEXTPAD;

return pad;
}

function padInsideLabelsOnAnchorAxis(ax, max) {
var pad = 0;
var anchorAxis = ax._anchorAxis || {};
Expand Down Expand Up @@ -82569,7 +82537,7 @@ module.exports = function handleXYDefaults(traceIn, traceOut, layout, coerce) {
'use strict';

// package version injected by `npm run preprocess`
exports.version = '1.58.2';
exports.version = '1.58.3';

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

Large diffs are not rendered by default.

Loading

0 comments on commit d45eef5

Please sign in to comment.