Skip to content

Commit

Permalink
1.50.1
Browse files Browse the repository at this point in the history
  • Loading branch information
archmoj committed Oct 15, 2019
1 parent 3439517 commit dad0ae7
Show file tree
Hide file tree
Showing 23 changed files with 246 additions and 264 deletions.
46 changes: 23 additions & 23 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.50.0.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.50.1.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.50.0.min.js
- using CDN URL https://cdn.plot.ly/plotly-latest.min.js OR https://cdn.plot.ly/plotly-1.50.1.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.50.0.js
- using CDN URL https://cdn.plot.ly/plotly-latest.js OR https://cdn.plot.ly/plotly-1.50.1.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 Down Expand Up @@ -114,16 +114,16 @@ The `basic` partial bundle contains trace modules `scatter`, `bar` and `pie`.

| Raw size | Minified size | Minified + gzip size |
|------|-----------------|------------------------|
| 2.3 MB | 840.8 kB | 276 kB |
| 2.3 MB | 841 kB | 276.1 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.50.0.js |
| Tagged minified | https://cdn.plot.ly/plotly-basic-1.50.0.min.js |
| Tagged | https://cdn.plot.ly/plotly-basic-1.50.1.js |
| Tagged minified | https://cdn.plot.ly/plotly-basic-1.50.1.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.7 MB | 958.5 kB | 313.4 kB |
| 2.7 MB | 958.7 kB | 313.5 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.50.0.js |
| Tagged minified | https://cdn.plot.ly/plotly-cartesian-1.50.0.min.js |
| Tagged | https://cdn.plot.ly/plotly-cartesian-1.50.1.js |
| Tagged minified | https://cdn.plot.ly/plotly-cartesian-1.50.1.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.3 MB | 852.6 kB | 281.6 kB |
| 2.3 MB | 852.8 kB | 281.7 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.50.0.js |
| Tagged minified | https://cdn.plot.ly/plotly-geo-1.50.0.min.js |
| Tagged | https://cdn.plot.ly/plotly-geo-1.50.1.js |
| Tagged minified | https://cdn.plot.ly/plotly-geo-1.50.1.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.50.0.js |
| Tagged minified | https://cdn.plot.ly/plotly-gl3d-1.50.0.min.js |
| Tagged | https://cdn.plot.ly/plotly-gl3d-1.50.1.js |
| Tagged minified | https://cdn.plot.ly/plotly-gl3d-1.50.1.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.5 MB | 1.4 MB | 456.3 kB |
| 3.5 MB | 1.4 MB | 456.4 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.50.0.js |
| Tagged minified | https://cdn.plot.ly/plotly-gl2d-1.50.0.min.js |
| Tagged | https://cdn.plot.ly/plotly-gl2d-1.50.1.js |
| Tagged minified | https://cdn.plot.ly/plotly-gl2d-1.50.1.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.1 MB | 1.5 MB | 461.6 kB |
| 3.1 MB | 1.5 MB | 461.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.50.0.js |
| Tagged minified | https://cdn.plot.ly/plotly-mapbox-1.50.0.min.js |
| Tagged | https://cdn.plot.ly/plotly-mapbox-1.50.1.js |
| Tagged minified | https://cdn.plot.ly/plotly-mapbox-1.50.1.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.5 MB | 926.7 kB | 300.6 kB |
| 2.5 MB | 926.9 kB | 300.7 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.50.0.js |
| Tagged minified | https://cdn.plot.ly/plotly-finance-1.50.0.min.js |
| Tagged | https://cdn.plot.ly/plotly-finance-1.50.1.js |
| Tagged minified | https://cdn.plot.ly/plotly-finance-1.50.1.min.js |

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

Expand Down
44 changes: 21 additions & 23 deletions dist/plotly-basic.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* plotly.js (basic) v1.50.0
* plotly.js (basic) v1.50.1
* Copyright 2012-2019, Plotly, Inc.
* All rights reserved.
* Licensed under the MIT license
Expand Down Expand Up @@ -22409,24 +22409,20 @@ function _hover(gd, evt, subplot, noHoverEvent) {
for(var i = 0; i < len; i++) {
var spId = subplots[i];

// 'cartesian' case
var plotObj = plots[spId];
if(plotObj) {
if(plots[spId]) {
// 'cartesian' case
supportsCompare = true;

// TODO make sure that fullLayout_plots axis refs
// get updated properly so that we don't have
// to use Axes.getFromId in general.

xaArray[i] = Axes.getFromId(gd, plotObj.xaxis._id);
yaArray[i] = Axes.getFromId(gd, plotObj.yaxis._id);
continue;
xaArray[i] = plots[spId].xaxis;
yaArray[i] = plots[spId].yaxis;
} else if(fullLayout[spId] && fullLayout[spId]._subplot) {
// other subplot types
var _subplot = fullLayout[spId]._subplot;
xaArray[i] = _subplot.xaxis;
yaArray[i] = _subplot.yaxis;
} else {
Lib.warn('Unrecognized subplot: ' + spId);
return;
}

// other subplot types
var _subplot = fullLayout[spId]._subplot;
xaArray[i] = _subplot.xaxis;
yaArray[i] = _subplot.yaxis;
}

var hovermode = evt.hovermode || fullLayout.hovermode;
Expand Down Expand Up @@ -33900,7 +33896,7 @@ exports.svgAttrs = {
'use strict';

// package version injected by `npm run preprocess`
exports.version = '1.50.0';
exports.version = '1.50.1';

// inject promise polyfill
_dereq_('es6-promise').polyfill();
Expand Down Expand Up @@ -37158,6 +37154,8 @@ lib.minExtend = function(obj1, obj2) {
} else {
objOut[k] = v.slice(0, arrayLen);
}
} else if(lib.isTypedArray(v)) {
objOut[k] = v.subarray(0, arrayLen);
} else if(v && (typeof v === 'object')) objOut[k] = lib.minExtend(obj1[k], obj2[k]);
else objOut[k] = v;
}
Expand Down Expand Up @@ -51565,7 +51563,7 @@ axes.drawOne = function(gd, ax, opts) {
ax.title.font.size;
}

if(ax.mirror) {
if(ax.mirror && ax.anchor !== 'free') {
mirrorPush = {x: 0, y: 0, r: 0, l: 0, t: 0, b: 0};

mirrorPush[sMirror] = ax.linewidth;
Expand Down Expand Up @@ -54961,7 +54959,7 @@ exports.initInteractions = function initInteractions(gd) {
// This is on `gd._fullLayout`, *not* fullLayout because the reference
// changes by the time this is called again.
gd._fullLayout._rehover = function() {
if(gd._fullLayout._hoversubplot === subplot) {
if((gd._fullLayout._hoversubplot === subplot) && gd._fullLayout._plots[subplot]) {
Fx.hover(gd, evt, subplot);
}
};
Expand Down Expand Up @@ -60998,7 +60996,7 @@ plots.linkSubplots = function(newFullData, newFullLayout, oldFullData, oldFullLa
// this loop can be costly, so only compute it when required
if(ax._counterAxes.length && (
(ax.spikemode && ax.spikemode.indexOf('across') !== -1) ||
(ax.automargin && ax.mirror) ||
(ax.automargin && ax.mirror && ax.anchor !== 'free') ||
Registry.getComponentMethod('rangeslider', 'isVisible')(ax)
)) {
var min = 1;
Expand Down Expand Up @@ -62682,14 +62680,14 @@ plots.transitionFromReact = function(gd, restyleFlags, relayoutFlags, oldFullLay
axisTransitionOpts = Lib.extendFlat({}, transitionOpts, {duration: 0});
transitionedTraces = allTraceIndices;
traceTransitionOpts = transitionOpts;
transitionTraces();
setTimeout(transitionAxes, transitionOpts.duration);
transitionTraces();
} else {
axisTransitionOpts = transitionOpts;
transitionedTraces = null;
traceTransitionOpts = Lib.extendFlat({}, transitionOpts, {duration: 0});
setTimeout(transitionTraces, axisTransitionOpts.duration);
transitionAxes();
transitionTraces();
}
} else if(axEdits.length) {
axisTransitionOpts = transitionOpts;
Expand Down
4 changes: 2 additions & 2 deletions dist/plotly-basic.min.js

Large diffs are not rendered by default.

44 changes: 21 additions & 23 deletions dist/plotly-cartesian.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* plotly.js (cartesian) v1.50.0
* plotly.js (cartesian) v1.50.1
* Copyright 2012-2019, Plotly, Inc.
* All rights reserved.
* Licensed under the MIT license
Expand Down Expand Up @@ -22521,24 +22521,20 @@ function _hover(gd, evt, subplot, noHoverEvent) {
for(var i = 0; i < len; i++) {
var spId = subplots[i];

// 'cartesian' case
var plotObj = plots[spId];
if(plotObj) {
if(plots[spId]) {
// 'cartesian' case
supportsCompare = true;

// TODO make sure that fullLayout_plots axis refs
// get updated properly so that we don't have
// to use Axes.getFromId in general.

xaArray[i] = Axes.getFromId(gd, plotObj.xaxis._id);
yaArray[i] = Axes.getFromId(gd, plotObj.yaxis._id);
continue;
xaArray[i] = plots[spId].xaxis;
yaArray[i] = plots[spId].yaxis;
} else if(fullLayout[spId] && fullLayout[spId]._subplot) {
// other subplot types
var _subplot = fullLayout[spId]._subplot;
xaArray[i] = _subplot.xaxis;
yaArray[i] = _subplot.yaxis;
} else {
Lib.warn('Unrecognized subplot: ' + spId);
return;
}

// other subplot types
var _subplot = fullLayout[spId]._subplot;
xaArray[i] = _subplot.xaxis;
yaArray[i] = _subplot.yaxis;
}

var hovermode = evt.hovermode || fullLayout.hovermode;
Expand Down Expand Up @@ -34050,7 +34046,7 @@ exports.svgAttrs = {
'use strict';

// package version injected by `npm run preprocess`
exports.version = '1.50.0';
exports.version = '1.50.1';

// inject promise polyfill
_dereq_('es6-promise').polyfill();
Expand Down Expand Up @@ -37308,6 +37304,8 @@ lib.minExtend = function(obj1, obj2) {
} else {
objOut[k] = v.slice(0, arrayLen);
}
} else if(lib.isTypedArray(v)) {
objOut[k] = v.subarray(0, arrayLen);
} else if(v && (typeof v === 'object')) objOut[k] = lib.minExtend(obj1[k], obj2[k]);
else objOut[k] = v;
}
Expand Down Expand Up @@ -51715,7 +51713,7 @@ axes.drawOne = function(gd, ax, opts) {
ax.title.font.size;
}

if(ax.mirror) {
if(ax.mirror && ax.anchor !== 'free') {
mirrorPush = {x: 0, y: 0, r: 0, l: 0, t: 0, b: 0};

mirrorPush[sMirror] = ax.linewidth;
Expand Down Expand Up @@ -55111,7 +55109,7 @@ exports.initInteractions = function initInteractions(gd) {
// This is on `gd._fullLayout`, *not* fullLayout because the reference
// changes by the time this is called again.
gd._fullLayout._rehover = function() {
if(gd._fullLayout._hoversubplot === subplot) {
if((gd._fullLayout._hoversubplot === subplot) && gd._fullLayout._plots[subplot]) {
Fx.hover(gd, evt, subplot);
}
};
Expand Down Expand Up @@ -61148,7 +61146,7 @@ plots.linkSubplots = function(newFullData, newFullLayout, oldFullData, oldFullLa
// this loop can be costly, so only compute it when required
if(ax._counterAxes.length && (
(ax.spikemode && ax.spikemode.indexOf('across') !== -1) ||
(ax.automargin && ax.mirror) ||
(ax.automargin && ax.mirror && ax.anchor !== 'free') ||
Registry.getComponentMethod('rangeslider', 'isVisible')(ax)
)) {
var min = 1;
Expand Down Expand Up @@ -62832,14 +62830,14 @@ plots.transitionFromReact = function(gd, restyleFlags, relayoutFlags, oldFullLay
axisTransitionOpts = Lib.extendFlat({}, transitionOpts, {duration: 0});
transitionedTraces = allTraceIndices;
traceTransitionOpts = transitionOpts;
transitionTraces();
setTimeout(transitionAxes, transitionOpts.duration);
transitionTraces();
} else {
axisTransitionOpts = transitionOpts;
transitionedTraces = null;
traceTransitionOpts = Lib.extendFlat({}, transitionOpts, {duration: 0});
setTimeout(transitionTraces, axisTransitionOpts.duration);
transitionAxes();
transitionTraces();
}
} else if(axEdits.length) {
axisTransitionOpts = transitionOpts;
Expand Down
4 changes: 2 additions & 2 deletions dist/plotly-cartesian.min.js

Large diffs are not rendered by default.

Loading

0 comments on commit dad0ae7

Please sign in to comment.