Skip to content

Commit

Permalink
1.48.2
Browse files Browse the repository at this point in the history
  • Loading branch information
etpinard committed Jun 11, 2019
1 parent 20187fe commit 8f58763
Show file tree
Hide file tree
Showing 25 changed files with 535 additions and 501 deletions.
42 changes: 21 additions & 21 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.48.1.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.48.2.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.48.1.min.js
- using CDN URL https://cdn.plot.ly/plotly-latest.min.js OR https://cdn.plot.ly/plotly-1.48.2.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.48.1.js
- using CDN URL https://cdn.plot.ly/plotly-latest.js OR https://cdn.plot.ly/plotly-1.48.2.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://plot.ly/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 |
|-----------|---------------|----------------------|---------------------|
| 6.4 MB | 2.9 MB | 892.7 kB | 6.7 MB |
| 6.4 MB | 2.9 MB | 892.8 kB | 6.7 MB |

## Partial bundles

Expand Down Expand Up @@ -119,8 +119,8 @@ The `basic` partial bundle contains trace modules `scatter`, `bar` and `pie`.
| ------ | --- |
| 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.48.1.js |
| Tagged minified | https://cdn.plot.ly/plotly-basic-1.48.1.min.js |
| Tagged | https://cdn.plot.ly/plotly-basic-1.48.2.js |
| Tagged minified | https://cdn.plot.ly/plotly-basic-1.48.2.min.js |

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

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

| Raw size | Minified size | Minified + gzip size |
|------|-----------------|------------------------|
| 2.6 MB | 948.3 kB | 309.8 kB |
| 2.6 MB | 948.5 kB | 309.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.48.1.js |
| Tagged minified | https://cdn.plot.ly/plotly-cartesian-1.48.1.min.js |
| Tagged | https://cdn.plot.ly/plotly-cartesian-1.48.2.js |
| Tagged minified | https://cdn.plot.ly/plotly-cartesian-1.48.2.min.js |

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

Expand Down Expand Up @@ -211,8 +211,8 @@ The `geo` partial bundle contains trace modules `scatter`, `scattergeo` and `cho
| ------ | --- |
| 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.48.1.js |
| Tagged minified | https://cdn.plot.ly/plotly-geo-1.48.1.min.js |
| Tagged | https://cdn.plot.ly/plotly-geo-1.48.2.js |
| Tagged minified | https://cdn.plot.ly/plotly-geo-1.48.2.min.js |

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

Expand Down Expand Up @@ -257,8 +257,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.48.1.js |
| Tagged minified | https://cdn.plot.ly/plotly-gl3d-1.48.1.min.js |
| Tagged | https://cdn.plot.ly/plotly-gl3d-1.48.2.js |
| Tagged minified | https://cdn.plot.ly/plotly-gl3d-1.48.2.min.js |

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

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

| Raw size | Minified size | Minified + gzip size |
|------|-----------------|------------------------|
| 3.4 MB | 1.4 MB | 450.7 kB |
| 3.4 MB | 1.4 MB | 450.8 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.48.1.js |
| Tagged minified | https://cdn.plot.ly/plotly-gl2d-1.48.1.min.js |
| Tagged | https://cdn.plot.ly/plotly-gl2d-1.48.2.js |
| Tagged minified | https://cdn.plot.ly/plotly-gl2d-1.48.2.min.js |

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

Expand Down Expand Up @@ -349,8 +349,8 @@ The `mapbox` partial bundle contains trace modules `scatter` and `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.48.1.js |
| Tagged minified | https://cdn.plot.ly/plotly-mapbox-1.48.1.min.js |
| Tagged | https://cdn.plot.ly/plotly-mapbox-1.48.2.js |
| Tagged minified | https://cdn.plot.ly/plotly-mapbox-1.48.2.min.js |

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

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

| Raw size | Minified size | Minified + gzip size |
|------|-----------------|------------------------|
| 2.5 MB | 893.2 kB | 290.2 kB |
| 2.5 MB | 893.4 kB | 290.2 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.48.1.js |
| Tagged minified | https://cdn.plot.ly/plotly-finance-1.48.1.min.js |
| Tagged | https://cdn.plot.ly/plotly-finance-1.48.2.js |
| Tagged minified | https://cdn.plot.ly/plotly-finance-1.48.2.min.js |

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

Expand Down
4 changes: 2 additions & 2 deletions dist/plot-schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -36337,13 +36337,13 @@
"tickvals": {
"valType": "data_array",
"editType": "calc",
"description": "Sets the values at which ticks on this axis appear. Only has an effect if `tickmode` is set to *array*. Used with `ticktext`.",
"description": "Sets the values at which ticks on this axis appear.",
"role": "data"
},
"ticktext": {
"valType": "data_array",
"editType": "calc",
"description": "Sets the text displayed at the ticks position via `tickvals`. Only has an effect if `tickmode` is set to *array*. Used with `tickvals`.",
"description": "Sets the text displayed at the ticks position via `tickvals`.",
"role": "data"
},
"tickformat": {
Expand Down
77 changes: 36 additions & 41 deletions dist/plotly-basic.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* plotly.js (basic) v1.48.1
* plotly.js (basic) v1.48.2
* Copyright 2012-2019, Plotly, Inc.
* All rights reserved.
* Licensed under the MIT license
Expand Down Expand Up @@ -11499,30 +11499,30 @@ return Promise;

}).call(this,_dereq_('_process'),typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {})
},{"_process":25}],10:[function(_dereq_,module,exports){
/**
* inspired by is-number <https://github.com/jonschlinkert/is-number>
* but significantly simplified and sped up by ignoring number and string constructors
* ie these return false:
* new Number(1)
* new String('1')
*/
'use strict';
var allBlankCharCodes = _dereq_('is-string-blank');
module.exports = function(n) {
var type = typeof n;
if(type === 'string') {
var original = n;
n = +n;
// whitespace strings cast to zero - filter them out
if(n===0 && allBlankCharCodes(original)) return false;
}
else if(type !== 'number') return false;
return n - n < 1;
};
/**
* inspired by is-number <https://github.com/jonschlinkert/is-number>
* but significantly simplified and sped up by ignoring number and string constructors
* ie these return false:
* new Number(1)
* new String('1')
*/

'use strict';

var allBlankCharCodes = _dereq_('is-string-blank');

module.exports = function(n) {
var type = typeof n;
if(type === 'string') {
var original = n;
n = +n;
// whitespace strings cast to zero - filter them out
if(n===0 && allBlankCharCodes(original)) return false;
}
else if(type !== 'number') return false;

return n - n < 1;
};

},{"is-string-blank":15}],11:[function(_dereq_,module,exports){
module.exports = fromQuat;
Expand Down Expand Up @@ -34082,7 +34082,7 @@ exports.svgAttrs = {
'use strict';

// package version injected by `npm run preprocess`
exports.version = '1.48.1';
exports.version = '1.48.2';

// inject promise polyfill
_dereq_('es6-promise').polyfill();
Expand Down Expand Up @@ -53608,7 +53608,7 @@ function makeDragBox(gd, plotinfo, x, y, w, h, ns, ew) {
// graph-wide optimization flags
var hasScatterGl, hasSplom, hasSVG;
// collected changes to be made to the plot by relayout at the end
var updates = {};
var updates;

function recomputeAxisLists() {
xa0 = plotinfo.xaxis;
Expand Down Expand Up @@ -53938,6 +53938,8 @@ function makeDragBox(gd, plotinfo, x, y, w, h, ns, ew) {
}

function computeZoomUpdates() {
updates = {};

// TODO: edit linked axes in zoomAxRanges and in dragTail
if(zoomMode === 'xy' || zoomMode === 'x') {
zoomAxRanges(xaxes, box.l / pw, box.r / pw, updates, links.xaxes);
Expand All @@ -53950,8 +53952,6 @@ function makeDragBox(gd, plotinfo, x, y, w, h, ns, ew) {
}

function zoomDone() {
updates = {};

// more strict than dragged, which allows you to come back to where you started
// and still count as dragged
if(Math.min(box.h, box.w) < MINDRAG * 2) {
Expand Down Expand Up @@ -54177,12 +54177,12 @@ function makeDragBox(gd, plotinfo, x, y, w, h, ns, ew) {
var ax2 = constrainedAxes[0] || xaHash[axId2] || yaHash[axId2];

if(ax2) {
var rng = ax2.range;
if(out) {
out[ax._name + '.range[0]'] = rng[0];
out[ax._name + '.range[1]'] = rng[1];
// zoombox case - don't mutate 'range', just add keys in 'updates'
out[ax._name + '.range[0]'] = out[ax2._name + '.range[0]'];
out[ax._name + '.range[1]'] = out[ax2._name + '.range[1]'];
} else {
ax.range = rng;
ax.range = ax2.range.slice();
}
}
}
Expand Down Expand Up @@ -54518,19 +54518,14 @@ function zoomAxRanges(axList, r0Fraction, r1Fraction, updates, linkedAxes) {

var axRangeLinear0 = axi._rl[0];
var axRangeLinearSpan = axi._rl[1] - axRangeLinear0;
axi.range = [
axi.l2r(axRangeLinear0 + axRangeLinearSpan * r0Fraction),
axi.l2r(axRangeLinear0 + axRangeLinearSpan * r1Fraction)
];

updates[axi._name + '.range[0]'] = axi.range[0];
updates[axi._name + '.range[1]'] = axi.range[1];
updates[axi._name + '.range[0]'] = axi.l2r(axRangeLinear0 + axRangeLinearSpan * r0Fraction);
updates[axi._name + '.range[1]'] = axi.l2r(axRangeLinear0 + axRangeLinearSpan * r1Fraction);
}

// zoom linked axes about their centers
if(linkedAxes && linkedAxes.length) {
var linkedR0Fraction = (r0Fraction + (1 - r1Fraction)) / 2;
zoomAxRanges(linkedAxes, linkedR0Fraction, 1 - linkedR0Fraction, updates, [], []);
zoomAxRanges(linkedAxes, linkedR0Fraction, 1 - linkedR0Fraction, updates, []);
}
}

Expand Down
4 changes: 2 additions & 2 deletions dist/plotly-basic.min.js

Large diffs are not rendered by default.

Loading

0 comments on commit 8f58763

Please sign in to comment.