Skip to content

Commit c04fbb3

Browse files
committed
1.17.1
1 parent 7ee195e commit c04fbb3

20 files changed

+445
-132
lines changed

dist/README.md

Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -37,11 +37,11 @@ The main plotly.js bundle includes all the official (non-beta) trace modules.
3737

3838
It be can imported as minified javascript
3939
- using dist file `dist/plotly.min.js`
40-
- using CDN URL https://cdn.plot.ly/plotly-plotly-latest.min.js OR https://cdn.plot.ly/plotly-plotly-1.17.0.min.js
40+
- using CDN URL https://cdn.plot.ly/plotly-plotly-latest.min.js OR https://cdn.plot.ly/plotly-plotly-1.17.1.min.js
4141

4242
or as raw javascript:
4343
- using dist file `dist/plotly.js`
44-
- using CDN URL https://cdn.plot.ly/plotly-plotly-latest.js OR https://cdn.plot.ly/plotly-plotly-1.17.0.js
44+
- using CDN URL https://cdn.plot.ly/plotly-plotly-latest.js OR https://cdn.plot.ly/plotly-plotly-1.17.1.js
4545
- using CommonJS with `require('plotly.js')`
4646

4747
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`
@@ -50,7 +50,7 @@ The main plotly.js bundle weights in at:
5050

5151
| plotly.js | plotly.min.js | plotly.min.js + gzip | plotly-with-meta.js |
5252
|-----------|---------------|----------------------|---------------------|
53-
| 3.9 MB | 1.7 MB | 512.8 kB | 4 MB |
53+
| 3.9 MB | 1.7 MB | 512.9 kB | 4 MB |
5454

5555
## Partial bundles
5656

@@ -73,13 +73,13 @@ The `basic` partial bundle contains the `scatter`, `bar` and `pie` trace modules
7373
| dist bundle (minified) | `dist/plotly-basic.min.js` |
7474
| CDN URL (latest) | https://cdn.plot.ly/plotly-basic-latest.js |
7575
| CDN URL (latest minified) | https://cdn.plot.ly/plotly-basic-latest.min.js |
76-
| CDN URL (tagged) | https://cdn.plot.ly/plotly-basic-1.17.0.js |
77-
| CDN URL (tagged minified) | https://cdn.plot.ly/plotly-basic-1.17.0.min.js |
76+
| CDN URL (tagged) | https://cdn.plot.ly/plotly-basic-1.17.1.js |
77+
| CDN URL (tagged minified) | https://cdn.plot.ly/plotly-basic-1.17.1.min.js |
7878
| CommonJS | `require('plotly.js/lib/index-basic')` |
7979

8080
| Raw size | Minified size | Minified + gzip size |
8181
|------|-----------------|------------------------|
82-
| 1.5 MB | 575 kB | 187.9 kB |
82+
| 1.5 MB | 575.4 kB | 188 kB |
8383

8484
### plotly.js cartesian
8585

@@ -91,13 +91,13 @@ The `cartesian` partial bundle contains the `scatter`, `bar`, `box`, `heatmap`,
9191
| dist bundle (minified) | `dist/plotly-cartesian.min.js` |
9292
| CDN URL (latest) | https://cdn.plot.ly/plotly-cartesian-latest.js |
9393
| CDN URL (latest minified) | https://cdn.plot.ly/plotly-cartesian-latest.min.js |
94-
| CDN URL (tagged) | https://cdn.plot.ly/plotly-cartesian-1.17.0.js |
95-
| CDN URL (tagged minified) | https://cdn.plot.ly/plotly-cartesian-1.17.0.min.js |
94+
| CDN URL (tagged) | https://cdn.plot.ly/plotly-cartesian-1.17.1.js |
95+
| CDN URL (tagged minified) | https://cdn.plot.ly/plotly-cartesian-1.17.1.min.js |
9696
| CommonJS | `require('plotly.js/lib/index-cartesian')` |
9797

9898
| Raw size | Minified size | Minified + gzip size |
9999
|------|-----------------|------------------------|
100-
| 1.7 MB | 644.7 kB | 209 kB |
100+
| 1.7 MB | 645.1 kB | 209.1 kB |
101101

102102
### plotly.js geo
103103

@@ -109,13 +109,13 @@ The `geo` partial bundle contains the `scatter`, `scattergeo` and `choropleth` t
109109
| dist bundle (minified) | `dist/plotly-geo.min.js` |
110110
| CDN URL (latest) | https://cdn.plot.ly/plotly-geo-latest.js |
111111
| CDN URL (latest minified) | https://cdn.plot.ly/plotly-geo-latest.min.js |
112-
| CDN URL (tagged) | https://cdn.plot.ly/plotly-geo-1.17.0.js |
113-
| CDN URL (tagged minified) | https://cdn.plot.ly/plotly-geo-1.17.0.min.js |
112+
| CDN URL (tagged) | https://cdn.plot.ly/plotly-geo-1.17.1.js |
113+
| CDN URL (tagged minified) | https://cdn.plot.ly/plotly-geo-1.17.1.min.js |
114114
| CommonJS | `require('plotly.js/lib/index-geo')` |
115115

116116
| Raw size | Minified size | Minified + gzip size |
117117
|------|-----------------|------------------------|
118-
| 1.5 MB | 604.5 kB | 198.9 kB |
118+
| 1.5 MB | 604.8 kB | 199 kB |
119119

120120
### plotly.js gl3d
121121

@@ -127,13 +127,13 @@ The `gl3d` partial bundle contains the `scatter`, `scatter3d`, `surface` and `me
127127
| dist bundle (minified) | `dist/plotly-gl3d.min.js` |
128128
| CDN URL (latest) | https://cdn.plot.ly/plotly-gl3d-latest.js |
129129
| CDN URL (latest minified) | https://cdn.plot.ly/plotly-gl3d-latest.min.js |
130-
| CDN URL (tagged) | https://cdn.plot.ly/plotly-gl3d-1.17.0.js |
131-
| CDN URL (tagged minified) | https://cdn.plot.ly/plotly-gl3d-1.17.0.min.js |
130+
| CDN URL (tagged) | https://cdn.plot.ly/plotly-gl3d-1.17.1.js |
131+
| CDN URL (tagged minified) | https://cdn.plot.ly/plotly-gl3d-1.17.1.min.js |
132132
| CommonJS | `require('plotly.js/lib/index-gl3d')` |
133133

134134
| Raw size | Minified size | Minified + gzip size |
135135
|------|-----------------|------------------------|
136-
| 2.3 MB | 1011.4 kB | 318 kB |
136+
| 2.4 MB | 1011.8 kB | 318.1 kB |
137137

138138
### plotly.js gl2d
139139

@@ -145,13 +145,13 @@ The `gl2d` partial bundle contains the `scatter`, `scattergl`, `pointcloud`, `he
145145
| dist bundle (minified) | `dist/plotly-gl2d.min.js` |
146146
| CDN URL (latest) | https://cdn.plot.ly/plotly-gl2d-latest.js |
147147
| CDN URL (latest minified) | https://cdn.plot.ly/plotly-gl2d-latest.min.js |
148-
| CDN URL (tagged) | https://cdn.plot.ly/plotly-gl2d-1.17.0.js |
149-
| CDN URL (tagged minified) | https://cdn.plot.ly/plotly-gl2d-1.17.0.min.js |
148+
| CDN URL (tagged) | https://cdn.plot.ly/plotly-gl2d-1.17.1.js |
149+
| CDN URL (tagged minified) | https://cdn.plot.ly/plotly-gl2d-1.17.1.min.js |
150150
| CommonJS | `require('plotly.js/lib/index-gl2d')` |
151151

152152
| Raw size | Minified size | Minified + gzip size |
153153
|------|-----------------|------------------------|
154-
| 2.1 MB | 891.3 kB | 280.3 kB |
154+
| 2.1 MB | 891.7 kB | 280.4 kB |
155155

156156
### plotly.js mapbox
157157

@@ -163,13 +163,13 @@ The `mapbox` partial bundle contains the `scatter` and `scattermapbox` trace mod
163163
| dist bundle (minified) | `dist/plotly-mapbox.min.js` |
164164
| CDN URL (latest) | https://cdn.plot.ly/plotly-mapbox-latest.js |
165165
| CDN URL (latest minified) | https://cdn.plot.ly/plotly-mapbox-latest.min.js |
166-
| CDN URL (tagged) | https://cdn.plot.ly/plotly-mapbox-1.17.0.js |
167-
| CDN URL (tagged minified) | https://cdn.plot.ly/plotly-mapbox-1.17.0.min.js |
166+
| CDN URL (tagged) | https://cdn.plot.ly/plotly-mapbox-1.17.1.js |
167+
| CDN URL (tagged minified) | https://cdn.plot.ly/plotly-mapbox-1.17.1.min.js |
168168
| CommonJS | `require('plotly.js/lib/index-mapbox')` |
169169

170170
| Raw size | Minified size | Minified + gzip size |
171171
|------|-----------------|------------------------|
172-
| 2.5 MB | 1 MB | 306.2 kB |
172+
| 2.5 MB | 1 MB | 306.3 kB |
173173

174174
----------------
175175

dist/plotly-basic.js

Lines changed: 42 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* plotly.js (basic) v1.17.0
2+
* plotly.js (basic) v1.17.1
33
* Copyright 2012-2016, Plotly, Inc.
44
* All rights reserved.
55
* Licensed under the MIT license
@@ -23612,7 +23612,7 @@ exports.svgAttrs = {
2361223612
var Plotly = require('./plotly');
2361323613

2361423614
// package version injected by `npm run preprocess`
23615-
exports.version = '1.17.0';
23615+
exports.version = '1.17.1';
2361623616

2361723617
// inject promise polyfill
2361823618
require('es6-promise').polyfill();
@@ -29394,6 +29394,7 @@ function _relayout(gd, aobj) {
2939429394
if(p.parts[0].indexOf('scene') === 0) flags.doplot = true;
2939529395
else if(p.parts[0].indexOf('geo') === 0) flags.doplot = true;
2939629396
else if(p.parts[0].indexOf('ternary') === 0) flags.doplot = true;
29397+
else if(ai === 'paper_bgcolor') flags.doplot = true;
2939729398
else if(fullLayout._has('gl2d') &&
2939829399
(ai.indexOf('axis') !== -1 || p.parts[0] === 'plot_bgcolor')
2939929400
) flags.doplot = true;
@@ -30471,6 +30472,8 @@ module.exports = {
3047130472
topojsonURL: 'https://cdn.plot.ly/',
3047230473

3047330474
// Mapbox access token (required to plot mapbox trace types)
30475+
// If using an Mapbox Atlas server, set this option to '',
30476+
// so that plotly.js won't attempt to authenticate to the public Mapbox server.
3047430477
mapboxAccessToken: null,
3047530478

3047630479
// Turn all console logging on or off (errors will be thrown)
@@ -36806,6 +36809,42 @@ exports.plot = function(gd, traces, transitionOpts, makeOnCompleteCallback) {
3680636809
}
3680736810
};
3680836811

36812+
exports.clean = function(newFullData, newFullLayout, oldFullData, oldFullLayout) {
36813+
var oldModules = oldFullLayout._modules || [],
36814+
newModules = newFullLayout._modules || [];
36815+
36816+
var hadScatter, hasScatter, i;
36817+
36818+
for(i = 0; i < oldModules.length; i++) {
36819+
if(oldModules[i].name === 'scatter') {
36820+
hadScatter = true;
36821+
break;
36822+
}
36823+
}
36824+
36825+
for(i = 0; i < newModules.length; i++) {
36826+
if(newModules[i].name === 'scatter') {
36827+
hasScatter = true;
36828+
break;
36829+
}
36830+
}
36831+
36832+
if(hadScatter && !hasScatter) {
36833+
var oldPlots = oldFullLayout._plots,
36834+
ids = Object.keys(oldPlots || {});
36835+
36836+
for(i = 0; i < ids.length; i++) {
36837+
var subplotInfo = oldPlots[ids[i]];
36838+
36839+
if(subplotInfo.plot) {
36840+
subplotInfo.plot.select('g.scatterlayer')
36841+
.selectAll('g.trace')
36842+
.remove();
36843+
}
36844+
}
36845+
}
36846+
};
36847+
3680936848
},{"../plots":155,"./attributes":132,"./constants":138,"./transition_axes":151}],142:[function(require,module,exports){
3681036849
/**
3681136850
* Copyright 2012-2016, Plotly, Inc.
@@ -39339,6 +39378,7 @@ plots.supplyTraceDefaults = function(traceIn, traceIndex, layout) {
3933939378

3934039379
coerce('type');
3934139380
coerce('uid');
39381+
coerce('name', 'trace ' + traceIndex);
3934239382

3934339383
// coerce subplot attributes of all registered subplot types
3934439384
var subplotTypes = Object.keys(subplotsRegistry);
@@ -39365,8 +39405,6 @@ plots.supplyTraceDefaults = function(traceIn, traceIndex, layout) {
3936539405

3936639406
if(_module) _module.supplyDefaults(traceIn, traceOut, defaultColor, layout);
3936739407

39368-
coerce('name', 'trace ' + traceIndex);
39369-
3937039408
if(!plots.traceIs(traceOut, 'noOpacity')) coerce('opacity');
3937139409

3937239410
coerceSubplotAttr('cartesian', 'xaxis');

dist/plotly-basic.min.js

Lines changed: 9 additions & 9 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/plotly-cartesian.js

Lines changed: 42 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* plotly.js (cartesian) v1.17.0
2+
* plotly.js (cartesian) v1.17.1
33
* Copyright 2012-2016, Plotly, Inc.
44
* All rights reserved.
55
* Licensed under the MIT license
@@ -23696,7 +23696,7 @@ exports.svgAttrs = {
2369623696
var Plotly = require('./plotly');
2369723697

2369823698
// package version injected by `npm run preprocess`
23699-
exports.version = '1.17.0';
23699+
exports.version = '1.17.1';
2370023700

2370123701
// inject promise polyfill
2370223702
require('es6-promise').polyfill();
@@ -29502,6 +29502,7 @@ function _relayout(gd, aobj) {
2950229502
if(p.parts[0].indexOf('scene') === 0) flags.doplot = true;
2950329503
else if(p.parts[0].indexOf('geo') === 0) flags.doplot = true;
2950429504
else if(p.parts[0].indexOf('ternary') === 0) flags.doplot = true;
29505+
else if(ai === 'paper_bgcolor') flags.doplot = true;
2950529506
else if(fullLayout._has('gl2d') &&
2950629507
(ai.indexOf('axis') !== -1 || p.parts[0] === 'plot_bgcolor')
2950729508
) flags.doplot = true;
@@ -30579,6 +30580,8 @@ module.exports = {
3057930580
topojsonURL: 'https://cdn.plot.ly/',
3058030581

3058130582
// Mapbox access token (required to plot mapbox trace types)
30583+
// If using an Mapbox Atlas server, set this option to '',
30584+
// so that plotly.js won't attempt to authenticate to the public Mapbox server.
3058230585
mapboxAccessToken: null,
3058330586

3058430587
// Turn all console logging on or off (errors will be thrown)
@@ -36914,6 +36917,42 @@ exports.plot = function(gd, traces, transitionOpts, makeOnCompleteCallback) {
3691436917
}
3691536918
};
3691636919

36920+
exports.clean = function(newFullData, newFullLayout, oldFullData, oldFullLayout) {
36921+
var oldModules = oldFullLayout._modules || [],
36922+
newModules = newFullLayout._modules || [];
36923+
36924+
var hadScatter, hasScatter, i;
36925+
36926+
for(i = 0; i < oldModules.length; i++) {
36927+
if(oldModules[i].name === 'scatter') {
36928+
hadScatter = true;
36929+
break;
36930+
}
36931+
}
36932+
36933+
for(i = 0; i < newModules.length; i++) {
36934+
if(newModules[i].name === 'scatter') {
36935+
hasScatter = true;
36936+
break;
36937+
}
36938+
}
36939+
36940+
if(hadScatter && !hasScatter) {
36941+
var oldPlots = oldFullLayout._plots,
36942+
ids = Object.keys(oldPlots || {});
36943+
36944+
for(i = 0; i < ids.length; i++) {
36945+
var subplotInfo = oldPlots[ids[i]];
36946+
36947+
if(subplotInfo.plot) {
36948+
subplotInfo.plot.select('g.scatterlayer')
36949+
.selectAll('g.trace')
36950+
.remove();
36951+
}
36952+
}
36953+
}
36954+
};
36955+
3691736956
},{"../plots":163,"./attributes":140,"./constants":146,"./transition_axes":159}],150:[function(require,module,exports){
3691836957
/**
3691936958
* Copyright 2012-2016, Plotly, Inc.
@@ -39447,6 +39486,7 @@ plots.supplyTraceDefaults = function(traceIn, traceIndex, layout) {
3944739486

3944839487
coerce('type');
3944939488
coerce('uid');
39489+
coerce('name', 'trace ' + traceIndex);
3945039490

3945139491
// coerce subplot attributes of all registered subplot types
3945239492
var subplotTypes = Object.keys(subplotsRegistry);
@@ -39473,8 +39513,6 @@ plots.supplyTraceDefaults = function(traceIn, traceIndex, layout) {
3947339513

3947439514
if(_module) _module.supplyDefaults(traceIn, traceOut, defaultColor, layout);
3947539515

39476-
coerce('name', 'trace ' + traceIndex);
39477-
3947839516
if(!plots.traceIs(traceOut, 'noOpacity')) coerce('opacity');
3947939517

3948039518
coerceSubplotAttr('cartesian', 'xaxis');

dist/plotly-cartesian.min.js

Lines changed: 10 additions & 10 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/plotly-geo-assets.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)