Skip to content

Commit

Permalink
1.54.5
Browse files Browse the repository at this point in the history
  • Loading branch information
archmoj committed Jun 23, 2020
1 parent 12008ca commit 3451056
Show file tree
Hide file tree
Showing 22 changed files with 293 additions and 141 deletions.
44 changes: 22 additions & 22 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.54.4.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.54.5.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.54.4.min.js
- using CDN URL https://cdn.plot.ly/plotly-latest.min.js OR https://cdn.plot.ly/plotly-1.54.5.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.54.4.js
- using CDN URL https://cdn.plot.ly/plotly-latest.js OR https://cdn.plot.ly/plotly-1.54.5.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 MB | 3.3 MB | 987.3 kB | 7.3 MB |
| 7 MB | 3.3 MB | 987.5 kB | 7.3 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.5 MB | 889 kB | 292.9 kB |
| 2.5 MB | 889.1 kB | 292.9 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.54.4.js |
| Tagged minified | https://cdn.plot.ly/plotly-basic-1.54.4.min.js |
| Tagged | https://cdn.plot.ly/plotly-basic-1.54.5.js |
| Tagged minified | https://cdn.plot.ly/plotly-basic-1.54.5.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 |
|------|-----------------|------------------------|
| 2.8 MB | 1020.2 kB | 334.3 kB |
| 2.8 MB | 1020.4 kB | 334.4 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.54.4.js |
| Tagged minified | https://cdn.plot.ly/plotly-cartesian-1.54.4.min.js |
| Tagged | https://cdn.plot.ly/plotly-cartesian-1.54.5.js |
| Tagged minified | https://cdn.plot.ly/plotly-cartesian-1.54.5.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.5 MB | 916.3 kB | 302.5 kB |
| 2.5 MB | 916.4 kB | 302.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.54.4.js |
| Tagged minified | https://cdn.plot.ly/plotly-geo-1.54.4.min.js |
| Tagged | https://cdn.plot.ly/plotly-geo-1.54.5.js |
| Tagged minified | https://cdn.plot.ly/plotly-geo-1.54.5.min.js |

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

Expand Down Expand Up @@ -281,8 +281,8 @@ The `gl3d` partial bundle contains trace modules `scatter`, `scatter3d`, `surfac
| ------ | --- |
| 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.54.4.js |
| Tagged minified | https://cdn.plot.ly/plotly-gl3d-1.54.4.min.js |
| Tagged | https://cdn.plot.ly/plotly-gl3d-1.54.5.js |
| Tagged minified | https://cdn.plot.ly/plotly-gl3d-1.54.5.min.js |

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

Expand Down Expand Up @@ -334,8 +334,8 @@ The `gl2d` partial bundle contains trace modules `scatter`, `scattergl`, `splom`
| ------ | --- |
| 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.54.4.js |
| Tagged minified | https://cdn.plot.ly/plotly-gl2d-1.54.4.min.js |
| Tagged | https://cdn.plot.ly/plotly-gl2d-1.54.5.js |
| Tagged minified | https://cdn.plot.ly/plotly-gl2d-1.54.5.min.js |

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

Expand Down Expand Up @@ -387,8 +387,8 @@ The `mapbox` partial bundle contains trace modules `scatter`, `scattermapbox`, `
| ------ | --- |
| 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.54.4.js |
| Tagged minified | https://cdn.plot.ly/plotly-mapbox-1.54.4.min.js |
| Tagged | https://cdn.plot.ly/plotly-mapbox-1.54.5.js |
| Tagged minified | https://cdn.plot.ly/plotly-mapbox-1.54.5.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.7 MB | 976.8 kB | 318.1 kB |
| 2.7 MB | 977 kB | 318.3 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.54.4.js |
| Tagged minified | https://cdn.plot.ly/plotly-finance-1.54.4.min.js |
| Tagged | https://cdn.plot.ly/plotly-finance-1.54.5.js |
| Tagged minified | https://cdn.plot.ly/plotly-finance-1.54.5.min.js |

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

Expand Down
13 changes: 9 additions & 4 deletions dist/plotly-basic.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* plotly.js (basic) v1.54.4
* plotly.js (basic) v1.54.5
* Copyright 2012-2020, Plotly, Inc.
* All rights reserved.
* Licensed under the MIT license
Expand Down Expand Up @@ -50858,6 +50858,9 @@ var isArrayOrTypedArray = Lib.isArrayOrTypedArray;
* error message (shown in console in logger config argument is enable)
*/
module.exports = function validate(data, layout) {
if(data === undefined) data = [];
if(layout === undefined) layout = {};

var schema = PlotSchema.get();
var errorList = [];
var gd = {_context: Lib.extendFlat({}, dfltConfig)};
Expand Down Expand Up @@ -54236,6 +54239,8 @@ function getDividerVals(ax, vals) {
var out = [];
var i, current;

var reversed = (vals.length && vals[vals.length - 1].x < vals[0].x);

// never used for labels;
// no need to worry about the other tickTextObj keys
var _push = function(d, bndIndex) {
Expand All @@ -54249,11 +54254,11 @@ function getDividerVals(ax, vals) {
for(i = 0; i < vals.length; i++) {
var d = vals[i];
if(d.text2 !== current) {
_push(d, 0);
_push(d, reversed ? 1 : 0);
}
current = d.text2;
}
_push(vals[i - 1], 1);
_push(vals[i - 1], reversed ? 0 : 1);
}

return out;
Expand Down Expand Up @@ -78345,7 +78350,7 @@ module.exports = function handleXYDefaults(traceIn, traceOut, layout, coerce) {
'use strict';

// package version injected by `npm run preprocess`
exports.version = '1.54.4';
exports.version = '1.54.5';

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

Large diffs are not rendered by default.

67 changes: 49 additions & 18 deletions dist/plotly-cartesian.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* plotly.js (cartesian) v1.54.4
* plotly.js (cartesian) v1.54.5
* Copyright 2012-2020, Plotly, Inc.
* All rights reserved.
* Licensed under the MIT license
Expand Down Expand Up @@ -51022,6 +51022,9 @@ var isArrayOrTypedArray = Lib.isArrayOrTypedArray;
* error message (shown in console in logger config argument is enable)
*/
module.exports = function validate(data, layout) {
if(data === undefined) data = [];
if(layout === undefined) layout = {};

var schema = PlotSchema.get();
var errorList = [];
var gd = {_context: Lib.extendFlat({}, dfltConfig)};
Expand Down Expand Up @@ -54400,6 +54403,8 @@ function getDividerVals(ax, vals) {
var out = [];
var i, current;

var reversed = (vals.length && vals[vals.length - 1].x < vals[0].x);

// never used for labels;
// no need to worry about the other tickTextObj keys
var _push = function(d, bndIndex) {
Expand All @@ -54413,11 +54418,11 @@ function getDividerVals(ax, vals) {
for(i = 0; i < vals.length; i++) {
var d = vals[i];
if(d.text2 !== current) {
_push(d, 0);
_push(d, reversed ? 1 : 0);
}
current = d.text2;
}
_push(vals[i - 1], 1);
_push(vals[i - 1], reversed ? 0 : 1);
}

return out;
Expand Down Expand Up @@ -76260,8 +76265,11 @@ function plot(gd, plotinfo, cdbox, boxLayer) {
}

function plotBoxAndWhiskers(sel, axes, trace, t) {
var posAxis = axes.pos;
var isHorizontal = trace.orientation === 'h';
var valAxis = axes.val;
var posAxis = axes.pos;
var posHasRangeBreaks = !!posAxis.rangebreaks;

var bPos = t.bPos;
var wdPos = t.wdPos || 0;
var bPosPxOffset = t.bPosPxOffset || 0;
Expand Down Expand Up @@ -76295,11 +76303,15 @@ function plotBoxAndWhiskers(sel, axes, trace, t) {
if(d.empty) return 'M0,0Z';

var lcenter = posAxis.c2l(d.pos + bPos, true);
var posc = posAxis.l2p(lcenter) + bPosPxOffset;

var pos0 = posAxis.l2p(lcenter - bdPos0) + bPosPxOffset;
var pos1 = posAxis.l2p(lcenter + bdPos1) + bPosPxOffset;
var posw0 = posAxis.l2p(lcenter - wdPos) + bPosPxOffset;
var posw1 = posAxis.l2p(lcenter + wdPos) + bPosPxOffset;
var posc = posHasRangeBreaks ? (pos0 + pos1) / 2 : posAxis.l2p(lcenter) + bPosPxOffset;

var r = trace.whiskerwidth;
var posw0 = posHasRangeBreaks ? pos0 * r + (1 - r) * posc : posAxis.l2p(lcenter - wdPos) + bPosPxOffset;
var posw1 = posHasRangeBreaks ? pos1 * r + (1 - r) * posc : posAxis.l2p(lcenter + wdPos) + bPosPxOffset;

var posm0 = posAxis.l2p(lcenter - bdPos0 * nw) + bPosPxOffset;
var posm1 = posAxis.l2p(lcenter + bdPos1 * nw) + bPosPxOffset;
var q1 = valAxis.c2p(d.q1, true);
Expand All @@ -76323,30 +76335,45 @@ function plotBoxAndWhiskers(sel, axes, trace, t) {
var ln = valAxis.c2p(d.ln, true);
var un = valAxis.c2p(d.un, true);

if(trace.orientation === 'h') {
if(isHorizontal) {
d3.select(this).attr('d',
'M' + m + ',' + posm0 + 'V' + posm1 + // median line
'M' + q1 + ',' + pos0 + 'V' + pos1 + // left edge
(notched ? 'H' + ln + 'L' + m + ',' + posm1 + 'L' + un + ',' + pos1 : '') + // top notched edge
(notched ?
'H' + ln + 'L' + m + ',' + posm1 + 'L' + un + ',' + pos1 :
''
) + // top notched edge
'H' + q3 + // end of the top edge
'V' + pos0 + // right edge
(notched ? 'H' + un + 'L' + m + ',' + posm0 + 'L' + ln + ',' + pos0 : '') + // bottom notched edge
'Z' + // end of the box
'M' + q1 + ',' + posc + 'H' + lf + 'M' + q3 + ',' + posc + 'H' + uf + // whiskers
((whiskerWidth === 0) ? '' : // whisker caps
'M' + lf + ',' + posw0 + 'V' + posw1 + 'M' + uf + ',' + posw0 + 'V' + posw1));
(whiskerWidth === 0 ?
'' : // whisker caps
'M' + lf + ',' + posw0 + 'V' + posw1 + 'M' + uf + ',' + posw0 + 'V' + posw1
)
);
} else {
d3.select(this).attr('d',
'M' + posm0 + ',' + m + 'H' + posm1 + // median line
'M' + pos0 + ',' + q1 + 'H' + pos1 + // top of the box
(notched ? 'V' + ln + 'L' + posm1 + ',' + m + 'L' + pos1 + ',' + un : '') + // notched right edge
(notched ?
'V' + ln + 'L' + posm1 + ',' + m + 'L' + pos1 + ',' + un :
''
) + // notched right edge
'V' + q3 + // end of the right edge
'H' + pos0 + // bottom of the box
(notched ? 'V' + un + 'L' + posm0 + ',' + m + 'L' + pos0 + ',' + ln : '') + // notched left edge
(notched ?
'V' + un + 'L' + posm0 + ',' + m + 'L' + pos0 + ',' + ln :
''
) + // notched left edge
'Z' + // end of the box
'M' + posc + ',' + q1 + 'V' + lf + 'M' + posc + ',' + q3 + 'V' + uf + // whiskers
((whiskerWidth === 0) ? '' : // whisker caps
'M' + posw0 + ',' + lf + 'H' + posw1 + 'M' + posw0 + ',' + uf + 'H' + posw1));
(whiskerWidth === 0 ?
'' : // whisker caps
'M' + posw0 + ',' + lf + 'H' + posw1 + 'M' + posw0 + ',' + uf + 'H' + posw1
)
);
}
});
}
Expand Down Expand Up @@ -76462,8 +76489,10 @@ function plotPoints(sel, axes, trace, t) {
}

function plotBoxMean(sel, axes, trace, t) {
var posAxis = axes.pos;
var valAxis = axes.val;
var posAxis = axes.pos;
var posHasRangeBreaks = !!posAxis.rangebreaks;

var bPos = t.bPos;
var bPosPxOffset = t.bPosPxOffset || 0;

Expand Down Expand Up @@ -76497,9 +76526,11 @@ function plotBoxMean(sel, axes, trace, t) {

paths.each(function(d) {
var lcenter = posAxis.c2l(d.pos + bPos, true);
var posc = posAxis.l2p(lcenter) + bPosPxOffset;

var pos0 = posAxis.l2p(lcenter - bdPos0) + bPosPxOffset;
var pos1 = posAxis.l2p(lcenter + bdPos1) + bPosPxOffset;
var posc = posHasRangeBreaks ? (pos0 + pos1) / 2 : posAxis.l2p(lcenter) + bPosPxOffset;

var m = valAxis.c2p(d.mean, true);
var sl = valAxis.c2p(d.mean - d.sd, true);
var sh = valAxis.c2p(d.mean + d.sd, true);
Expand Down Expand Up @@ -89979,7 +90010,7 @@ module.exports = function style(gd) {
'use strict';

// package version injected by `npm run preprocess`
exports.version = '1.54.4';
exports.version = '1.54.5';

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

Large diffs are not rendered by default.

Loading

0 comments on commit 3451056

Please sign in to comment.