Skip to content

Commit dad0ae7

Browse files
committed
1.50.1
1 parent 3439517 commit dad0ae7

23 files changed

+246
-264
lines changed

dist/README.md

+23-23
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ object. This property must be set before the plotly.js script tag, for example:
5151
Plotly.js defaults to US English (en-US) and includes British English (en) in the standard bundle.
5252
Many other localizations are available - here is an example using Swiss-German (de-CH),
5353
see the contents of this directory for the full list.
54-
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
54+
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
5555
Note that the file names are all lowercase, even though the region is uppercase when you apply a locale.
5656

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

7575
It be can imported as minified javascript
7676
- using dist file `dist/plotly.min.js`
77-
- using CDN URL https://cdn.plot.ly/plotly-latest.min.js OR https://cdn.plot.ly/plotly-1.50.0.min.js
77+
- using CDN URL https://cdn.plot.ly/plotly-latest.min.js OR https://cdn.plot.ly/plotly-1.50.1.min.js
7878

7979
or as raw javascript:
8080
- using the `plotly.js-dist` npm package (starting in `v1.39.0`)
8181
- using dist file `dist/plotly.js`
82-
- using CDN URL https://cdn.plot.ly/plotly-latest.js OR https://cdn.plot.ly/plotly-1.50.0.js
82+
- using CDN URL https://cdn.plot.ly/plotly-latest.js OR https://cdn.plot.ly/plotly-1.50.1.js
8383
- using CommonJS with `require('plotly.js')`
8484

8585
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`
@@ -114,16 +114,16 @@ The `basic` partial bundle contains trace modules `scatter`, `bar` and `pie`.
114114

115115
| Raw size | Minified size | Minified + gzip size |
116116
|------|-----------------|------------------------|
117-
| 2.3 MB | 840.8 kB | 276 kB |
117+
| 2.3 MB | 841 kB | 276.1 kB |
118118

119119
#### CDN links
120120

121121
| Flavor | URL |
122122
| ------ | --- |
123123
| Latest | https://cdn.plot.ly/plotly-basic-latest.js |
124124
| Latest minified | https://cdn.plot.ly/plotly-basic-latest.min.js |
125-
| Tagged | https://cdn.plot.ly/plotly-basic-1.50.0.js |
126-
| Tagged minified | https://cdn.plot.ly/plotly-basic-1.50.0.min.js |
125+
| Tagged | https://cdn.plot.ly/plotly-basic-1.50.1.js |
126+
| Tagged minified | https://cdn.plot.ly/plotly-basic-1.50.1.min.js |
127127

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

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

168168
| Raw size | Minified size | Minified + gzip size |
169169
|------|-----------------|------------------------|
170-
| 2.7 MB | 958.5 kB | 313.4 kB |
170+
| 2.7 MB | 958.7 kB | 313.5 kB |
171171

172172
#### CDN links
173173

174174
| Flavor | URL |
175175
| ------ | --- |
176176
| Latest | https://cdn.plot.ly/plotly-cartesian-latest.js |
177177
| Latest minified | https://cdn.plot.ly/plotly-cartesian-latest.min.js |
178-
| Tagged | https://cdn.plot.ly/plotly-cartesian-1.50.0.js |
179-
| Tagged minified | https://cdn.plot.ly/plotly-cartesian-1.50.0.min.js |
178+
| Tagged | https://cdn.plot.ly/plotly-cartesian-1.50.1.js |
179+
| Tagged minified | https://cdn.plot.ly/plotly-cartesian-1.50.1.min.js |
180180

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

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

221221
| Raw size | Minified size | Minified + gzip size |
222222
|------|-----------------|------------------------|
223-
| 2.3 MB | 852.6 kB | 281.6 kB |
223+
| 2.3 MB | 852.8 kB | 281.7 kB |
224224

225225
#### CDN links
226226

227227
| Flavor | URL |
228228
| ------ | --- |
229229
| Latest | https://cdn.plot.ly/plotly-geo-latest.js |
230230
| Latest minified | https://cdn.plot.ly/plotly-geo-latest.min.js |
231-
| Tagged | https://cdn.plot.ly/plotly-geo-1.50.0.js |
232-
| Tagged minified | https://cdn.plot.ly/plotly-geo-1.50.0.min.js |
231+
| Tagged | https://cdn.plot.ly/plotly-geo-1.50.1.js |
232+
| Tagged minified | https://cdn.plot.ly/plotly-geo-1.50.1.min.js |
233233

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

@@ -281,8 +281,8 @@ The `gl3d` partial bundle contains trace modules `scatter`, `scatter3d`, `surfac
281281
| ------ | --- |
282282
| Latest | https://cdn.plot.ly/plotly-gl3d-latest.js |
283283
| Latest minified | https://cdn.plot.ly/plotly-gl3d-latest.min.js |
284-
| Tagged | https://cdn.plot.ly/plotly-gl3d-1.50.0.js |
285-
| Tagged minified | https://cdn.plot.ly/plotly-gl3d-1.50.0.min.js |
284+
| Tagged | https://cdn.plot.ly/plotly-gl3d-1.50.1.js |
285+
| Tagged minified | https://cdn.plot.ly/plotly-gl3d-1.50.1.min.js |
286286

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

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

327327
| Raw size | Minified size | Minified + gzip size |
328328
|------|-----------------|------------------------|
329-
| 3.5 MB | 1.4 MB | 456.3 kB |
329+
| 3.5 MB | 1.4 MB | 456.4 kB |
330330

331331
#### CDN links
332332

333333
| Flavor | URL |
334334
| ------ | --- |
335335
| Latest | https://cdn.plot.ly/plotly-gl2d-latest.js |
336336
| Latest minified | https://cdn.plot.ly/plotly-gl2d-latest.min.js |
337-
| Tagged | https://cdn.plot.ly/plotly-gl2d-1.50.0.js |
338-
| Tagged minified | https://cdn.plot.ly/plotly-gl2d-1.50.0.min.js |
337+
| Tagged | https://cdn.plot.ly/plotly-gl2d-1.50.1.js |
338+
| Tagged minified | https://cdn.plot.ly/plotly-gl2d-1.50.1.min.js |
339339

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

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

380380
| Raw size | Minified size | Minified + gzip size |
381381
|------|-----------------|------------------------|
382-
| 3.1 MB | 1.5 MB | 461.6 kB |
382+
| 3.1 MB | 1.5 MB | 461.7 kB |
383383

384384
#### CDN links
385385

386386
| Flavor | URL |
387387
| ------ | --- |
388388
| Latest | https://cdn.plot.ly/plotly-mapbox-latest.js |
389389
| Latest minified | https://cdn.plot.ly/plotly-mapbox-latest.min.js |
390-
| Tagged | https://cdn.plot.ly/plotly-mapbox-1.50.0.js |
391-
| Tagged minified | https://cdn.plot.ly/plotly-mapbox-1.50.0.min.js |
390+
| Tagged | https://cdn.plot.ly/plotly-mapbox-1.50.1.js |
391+
| Tagged minified | https://cdn.plot.ly/plotly-mapbox-1.50.1.min.js |
392392

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

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

433433
| Raw size | Minified size | Minified + gzip size |
434434
|------|-----------------|------------------------|
435-
| 2.5 MB | 926.7 kB | 300.6 kB |
435+
| 2.5 MB | 926.9 kB | 300.7 kB |
436436

437437
#### CDN links
438438

439439
| Flavor | URL |
440440
| ------ | --- |
441441
| Latest | https://cdn.plot.ly/plotly-finance-latest.js |
442442
| Latest minified | https://cdn.plot.ly/plotly-finance-latest.min.js |
443-
| Tagged | https://cdn.plot.ly/plotly-finance-1.50.0.js |
444-
| Tagged minified | https://cdn.plot.ly/plotly-finance-1.50.0.min.js |
443+
| Tagged | https://cdn.plot.ly/plotly-finance-1.50.1.js |
444+
| Tagged minified | https://cdn.plot.ly/plotly-finance-1.50.1.min.js |
445445

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

dist/plotly-basic.js

+21-23
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* plotly.js (basic) v1.50.0
2+
* plotly.js (basic) v1.50.1
33
* Copyright 2012-2019, Plotly, Inc.
44
* All rights reserved.
55
* Licensed under the MIT license
@@ -22409,24 +22409,20 @@ function _hover(gd, evt, subplot, noHoverEvent) {
2240922409
for(var i = 0; i < len; i++) {
2241022410
var spId = subplots[i];
2241122411

22412-
// 'cartesian' case
22413-
var plotObj = plots[spId];
22414-
if(plotObj) {
22412+
if(plots[spId]) {
22413+
// 'cartesian' case
2241522414
supportsCompare = true;
22416-
22417-
// TODO make sure that fullLayout_plots axis refs
22418-
// get updated properly so that we don't have
22419-
// to use Axes.getFromId in general.
22420-
22421-
xaArray[i] = Axes.getFromId(gd, plotObj.xaxis._id);
22422-
yaArray[i] = Axes.getFromId(gd, plotObj.yaxis._id);
22423-
continue;
22415+
xaArray[i] = plots[spId].xaxis;
22416+
yaArray[i] = plots[spId].yaxis;
22417+
} else if(fullLayout[spId] && fullLayout[spId]._subplot) {
22418+
// other subplot types
22419+
var _subplot = fullLayout[spId]._subplot;
22420+
xaArray[i] = _subplot.xaxis;
22421+
yaArray[i] = _subplot.yaxis;
22422+
} else {
22423+
Lib.warn('Unrecognized subplot: ' + spId);
22424+
return;
2242422425
}
22425-
22426-
// other subplot types
22427-
var _subplot = fullLayout[spId]._subplot;
22428-
xaArray[i] = _subplot.xaxis;
22429-
yaArray[i] = _subplot.yaxis;
2243022426
}
2243122427

2243222428
var hovermode = evt.hovermode || fullLayout.hovermode;
@@ -33900,7 +33896,7 @@ exports.svgAttrs = {
3390033896
'use strict';
3390133897

3390233898
// package version injected by `npm run preprocess`
33903-
exports.version = '1.50.0';
33899+
exports.version = '1.50.1';
3390433900

3390533901
// inject promise polyfill
3390633902
_dereq_('es6-promise').polyfill();
@@ -37158,6 +37154,8 @@ lib.minExtend = function(obj1, obj2) {
3715837154
} else {
3715937155
objOut[k] = v.slice(0, arrayLen);
3716037156
}
37157+
} else if(lib.isTypedArray(v)) {
37158+
objOut[k] = v.subarray(0, arrayLen);
3716137159
} else if(v && (typeof v === 'object')) objOut[k] = lib.minExtend(obj1[k], obj2[k]);
3716237160
else objOut[k] = v;
3716337161
}
@@ -51565,7 +51563,7 @@ axes.drawOne = function(gd, ax, opts) {
5156551563
ax.title.font.size;
5156651564
}
5156751565

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

5157151569
mirrorPush[sMirror] = ax.linewidth;
@@ -54961,7 +54959,7 @@ exports.initInteractions = function initInteractions(gd) {
5496154959
// This is on `gd._fullLayout`, *not* fullLayout because the reference
5496254960
// changes by the time this is called again.
5496354961
gd._fullLayout._rehover = function() {
54964-
if(gd._fullLayout._hoversubplot === subplot) {
54962+
if((gd._fullLayout._hoversubplot === subplot) && gd._fullLayout._plots[subplot]) {
5496554963
Fx.hover(gd, evt, subplot);
5496654964
}
5496754965
};
@@ -60998,7 +60996,7 @@ plots.linkSubplots = function(newFullData, newFullLayout, oldFullData, oldFullLa
6099860996
// this loop can be costly, so only compute it when required
6099960997
if(ax._counterAxes.length && (
6100060998
(ax.spikemode && ax.spikemode.indexOf('across') !== -1) ||
61001-
(ax.automargin && ax.mirror) ||
60999+
(ax.automargin && ax.mirror && ax.anchor !== 'free') ||
6100261000
Registry.getComponentMethod('rangeslider', 'isVisible')(ax)
6100361001
)) {
6100461002
var min = 1;
@@ -62682,14 +62680,14 @@ plots.transitionFromReact = function(gd, restyleFlags, relayoutFlags, oldFullLay
6268262680
axisTransitionOpts = Lib.extendFlat({}, transitionOpts, {duration: 0});
6268362681
transitionedTraces = allTraceIndices;
6268462682
traceTransitionOpts = transitionOpts;
62685-
transitionTraces();
6268662683
setTimeout(transitionAxes, transitionOpts.duration);
62684+
transitionTraces();
6268762685
} else {
6268862686
axisTransitionOpts = transitionOpts;
6268962687
transitionedTraces = null;
6269062688
traceTransitionOpts = Lib.extendFlat({}, transitionOpts, {duration: 0});
62689+
setTimeout(transitionTraces, axisTransitionOpts.duration);
6269162690
transitionAxes();
62692-
transitionTraces();
6269362691
}
6269462692
} else if(axEdits.length) {
6269562693
axisTransitionOpts = transitionOpts;

dist/plotly-basic.min.js

+2-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/plotly-cartesian.js

+21-23
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* plotly.js (cartesian) v1.50.0
2+
* plotly.js (cartesian) v1.50.1
33
* Copyright 2012-2019, Plotly, Inc.
44
* All rights reserved.
55
* Licensed under the MIT license
@@ -22521,24 +22521,20 @@ function _hover(gd, evt, subplot, noHoverEvent) {
2252122521
for(var i = 0; i < len; i++) {
2252222522
var spId = subplots[i];
2252322523

22524-
// 'cartesian' case
22525-
var plotObj = plots[spId];
22526-
if(plotObj) {
22524+
if(plots[spId]) {
22525+
// 'cartesian' case
2252722526
supportsCompare = true;
22528-
22529-
// TODO make sure that fullLayout_plots axis refs
22530-
// get updated properly so that we don't have
22531-
// to use Axes.getFromId in general.
22532-
22533-
xaArray[i] = Axes.getFromId(gd, plotObj.xaxis._id);
22534-
yaArray[i] = Axes.getFromId(gd, plotObj.yaxis._id);
22535-
continue;
22527+
xaArray[i] = plots[spId].xaxis;
22528+
yaArray[i] = plots[spId].yaxis;
22529+
} else if(fullLayout[spId] && fullLayout[spId]._subplot) {
22530+
// other subplot types
22531+
var _subplot = fullLayout[spId]._subplot;
22532+
xaArray[i] = _subplot.xaxis;
22533+
yaArray[i] = _subplot.yaxis;
22534+
} else {
22535+
Lib.warn('Unrecognized subplot: ' + spId);
22536+
return;
2253622537
}
22537-
22538-
// other subplot types
22539-
var _subplot = fullLayout[spId]._subplot;
22540-
xaArray[i] = _subplot.xaxis;
22541-
yaArray[i] = _subplot.yaxis;
2254222538
}
2254322539

2254422540
var hovermode = evt.hovermode || fullLayout.hovermode;
@@ -34050,7 +34046,7 @@ exports.svgAttrs = {
3405034046
'use strict';
3405134047

3405234048
// package version injected by `npm run preprocess`
34053-
exports.version = '1.50.0';
34049+
exports.version = '1.50.1';
3405434050

3405534051
// inject promise polyfill
3405634052
_dereq_('es6-promise').polyfill();
@@ -37308,6 +37304,8 @@ lib.minExtend = function(obj1, obj2) {
3730837304
} else {
3730937305
objOut[k] = v.slice(0, arrayLen);
3731037306
}
37307+
} else if(lib.isTypedArray(v)) {
37308+
objOut[k] = v.subarray(0, arrayLen);
3731137309
} else if(v && (typeof v === 'object')) objOut[k] = lib.minExtend(obj1[k], obj2[k]);
3731237310
else objOut[k] = v;
3731337311
}
@@ -51715,7 +51713,7 @@ axes.drawOne = function(gd, ax, opts) {
5171551713
ax.title.font.size;
5171651714
}
5171751715

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

5172151719
mirrorPush[sMirror] = ax.linewidth;
@@ -55111,7 +55109,7 @@ exports.initInteractions = function initInteractions(gd) {
5511155109
// This is on `gd._fullLayout`, *not* fullLayout because the reference
5511255110
// changes by the time this is called again.
5511355111
gd._fullLayout._rehover = function() {
55114-
if(gd._fullLayout._hoversubplot === subplot) {
55112+
if((gd._fullLayout._hoversubplot === subplot) && gd._fullLayout._plots[subplot]) {
5511555113
Fx.hover(gd, evt, subplot);
5511655114
}
5511755115
};
@@ -61148,7 +61146,7 @@ plots.linkSubplots = function(newFullData, newFullLayout, oldFullData, oldFullLa
6114861146
// this loop can be costly, so only compute it when required
6114961147
if(ax._counterAxes.length && (
6115061148
(ax.spikemode && ax.spikemode.indexOf('across') !== -1) ||
61151-
(ax.automargin && ax.mirror) ||
61149+
(ax.automargin && ax.mirror && ax.anchor !== 'free') ||
6115261150
Registry.getComponentMethod('rangeslider', 'isVisible')(ax)
6115361151
)) {
6115461152
var min = 1;
@@ -62832,14 +62830,14 @@ plots.transitionFromReact = function(gd, restyleFlags, relayoutFlags, oldFullLay
6283262830
axisTransitionOpts = Lib.extendFlat({}, transitionOpts, {duration: 0});
6283362831
transitionedTraces = allTraceIndices;
6283462832
traceTransitionOpts = transitionOpts;
62835-
transitionTraces();
6283662833
setTimeout(transitionAxes, transitionOpts.duration);
62834+
transitionTraces();
6283762835
} else {
6283862836
axisTransitionOpts = transitionOpts;
6283962837
transitionedTraces = null;
6284062838
traceTransitionOpts = Lib.extendFlat({}, transitionOpts, {duration: 0});
62839+
setTimeout(transitionTraces, axisTransitionOpts.duration);
6284162840
transitionAxes();
62842-
transitionTraces();
6284362841
}
6284462842
} else if(axEdits.length) {
6284562843
axisTransitionOpts = transitionOpts;

dist/plotly-cartesian.min.js

+2-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)