Skip to content

Commit ae7ba10

Browse files
committed
1.35.1
1 parent 7d9decf commit ae7ba10

23 files changed

+238
-331
lines changed

dist/README.md

+18-18
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ You can grab the relevant MathJax files in `./dist/extras/mathjax/`.
3838
Plotly.js defaults to US English (en-US) and includes British English (en) in the standard bundle.
3939
Many other localizations are available - here is an example using Swiss-German (de-CH),
4040
see the contents of this directory for the full list.
41-
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.35.0.js
41+
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.35.1.js
4242
Note that the file names are all lowercase, even though the region is uppercase when you apply a locale.
4343

4444
*After* the plotly.js script tag, add:
@@ -61,11 +61,11 @@ The main plotly.js bundle includes all the official (non-beta) trace modules.
6161

6262
It be can imported as minified javascript
6363
- using dist file `dist/plotly.min.js`
64-
- using CDN URL https://cdn.plot.ly/plotly-latest.min.js OR https://cdn.plot.ly/plotly-1.35.0.min.js
64+
- using CDN URL https://cdn.plot.ly/plotly-latest.min.js OR https://cdn.plot.ly/plotly-1.35.1.min.js
6565

6666
or as raw javascript:
6767
- using dist file `dist/plotly.js`
68-
- using CDN URL https://cdn.plot.ly/plotly-latest.js OR https://cdn.plot.ly/plotly-1.35.0.js
68+
- using CDN URL https://cdn.plot.ly/plotly-latest.js OR https://cdn.plot.ly/plotly-1.35.1.js
6969
- using CommonJS with `require('plotly.js')`
7070

7171
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`
@@ -98,8 +98,8 @@ The `basic` partial bundle contains the `scatter`, `bar` and `pie` trace modules
9898
| dist bundle (minified) | `dist/plotly-basic.min.js` |
9999
| CDN URL (latest) | https://cdn.plot.ly/plotly-basic-latest.js |
100100
| CDN URL (latest minified) | https://cdn.plot.ly/plotly-basic-latest.min.js |
101-
| CDN URL (tagged) | https://cdn.plot.ly/plotly-basic-1.35.0.js |
102-
| CDN URL (tagged minified) | https://cdn.plot.ly/plotly-basic-1.35.0.min.js |
101+
| CDN URL (tagged) | https://cdn.plot.ly/plotly-basic-1.35.1.js |
102+
| CDN URL (tagged minified) | https://cdn.plot.ly/plotly-basic-1.35.1.min.js |
103103
| CommonJS | `require('plotly.js/lib/index-basic')` |
104104

105105
| Raw size | Minified size | Minified + gzip size |
@@ -116,8 +116,8 @@ The `cartesian` partial bundle contains the `scatter`, `bar`, `box`, `heatmap`,
116116
| dist bundle (minified) | `dist/plotly-cartesian.min.js` |
117117
| CDN URL (latest) | https://cdn.plot.ly/plotly-cartesian-latest.js |
118118
| CDN URL (latest minified) | https://cdn.plot.ly/plotly-cartesian-latest.min.js |
119-
| CDN URL (tagged) | https://cdn.plot.ly/plotly-cartesian-1.35.0.js |
120-
| CDN URL (tagged minified) | https://cdn.plot.ly/plotly-cartesian-1.35.0.min.js |
119+
| CDN URL (tagged) | https://cdn.plot.ly/plotly-cartesian-1.35.1.js |
120+
| CDN URL (tagged minified) | https://cdn.plot.ly/plotly-cartesian-1.35.1.min.js |
121121
| CommonJS | `require('plotly.js/lib/index-cartesian')` |
122122

123123
| Raw size | Minified size | Minified + gzip size |
@@ -134,8 +134,8 @@ The `geo` partial bundle contains the `scatter`, `scattergeo` and `choropleth` t
134134
| dist bundle (minified) | `dist/plotly-geo.min.js` |
135135
| CDN URL (latest) | https://cdn.plot.ly/plotly-geo-latest.js |
136136
| CDN URL (latest minified) | https://cdn.plot.ly/plotly-geo-latest.min.js |
137-
| CDN URL (tagged) | https://cdn.plot.ly/plotly-geo-1.35.0.js |
138-
| CDN URL (tagged minified) | https://cdn.plot.ly/plotly-geo-1.35.0.min.js |
137+
| CDN URL (tagged) | https://cdn.plot.ly/plotly-geo-1.35.1.js |
138+
| CDN URL (tagged minified) | https://cdn.plot.ly/plotly-geo-1.35.1.min.js |
139139
| CommonJS | `require('plotly.js/lib/index-geo')` |
140140

141141
| Raw size | Minified size | Minified + gzip size |
@@ -152,8 +152,8 @@ The `gl3d` partial bundle contains the `scatter`, `scatter3d`, `surface` and `me
152152
| dist bundle (minified) | `dist/plotly-gl3d.min.js` |
153153
| CDN URL (latest) | https://cdn.plot.ly/plotly-gl3d-latest.js |
154154
| CDN URL (latest minified) | https://cdn.plot.ly/plotly-gl3d-latest.min.js |
155-
| CDN URL (tagged) | https://cdn.plot.ly/plotly-gl3d-1.35.0.js |
156-
| CDN URL (tagged minified) | https://cdn.plot.ly/plotly-gl3d-1.35.0.min.js |
155+
| CDN URL (tagged) | https://cdn.plot.ly/plotly-gl3d-1.35.1.js |
156+
| CDN URL (tagged minified) | https://cdn.plot.ly/plotly-gl3d-1.35.1.min.js |
157157
| CommonJS | `require('plotly.js/lib/index-gl3d')` |
158158

159159
| Raw size | Minified size | Minified + gzip size |
@@ -170,8 +170,8 @@ The `gl2d` partial bundle contains the `scatter`, `scattergl`, `pointcloud`, `he
170170
| dist bundle (minified) | `dist/plotly-gl2d.min.js` |
171171
| CDN URL (latest) | https://cdn.plot.ly/plotly-gl2d-latest.js |
172172
| CDN URL (latest minified) | https://cdn.plot.ly/plotly-gl2d-latest.min.js |
173-
| CDN URL (tagged) | https://cdn.plot.ly/plotly-gl2d-1.35.0.js |
174-
| CDN URL (tagged minified) | https://cdn.plot.ly/plotly-gl2d-1.35.0.min.js |
173+
| CDN URL (tagged) | https://cdn.plot.ly/plotly-gl2d-1.35.1.js |
174+
| CDN URL (tagged minified) | https://cdn.plot.ly/plotly-gl2d-1.35.1.min.js |
175175
| CommonJS | `require('plotly.js/lib/index-gl2d')` |
176176

177177
| Raw size | Minified size | Minified + gzip size |
@@ -188,13 +188,13 @@ The `mapbox` partial bundle contains the `scatter` and `scattermapbox` trace mod
188188
| dist bundle (minified) | `dist/plotly-mapbox.min.js` |
189189
| CDN URL (latest) | https://cdn.plot.ly/plotly-mapbox-latest.js |
190190
| CDN URL (latest minified) | https://cdn.plot.ly/plotly-mapbox-latest.min.js |
191-
| CDN URL (tagged) | https://cdn.plot.ly/plotly-mapbox-1.35.0.js |
192-
| CDN URL (tagged minified) | https://cdn.plot.ly/plotly-mapbox-1.35.0.min.js |
191+
| CDN URL (tagged) | https://cdn.plot.ly/plotly-mapbox-1.35.1.js |
192+
| CDN URL (tagged minified) | https://cdn.plot.ly/plotly-mapbox-1.35.1.min.js |
193193
| CommonJS | `require('plotly.js/lib/index-mapbox')` |
194194

195195
| Raw size | Minified size | Minified + gzip size |
196196
|------|-----------------|------------------------|
197-
| 3.3 MB | 1.3 MB | 382 kB |
197+
| 3.3 MB | 1.3 MB | 382.1 kB |
198198

199199
### plotly.js finance
200200

@@ -206,8 +206,8 @@ The `finance` partial bundle contains the `scatter`, `bar`, `histogram`, `pie`,
206206
| dist bundle (minified) | `dist/plotly-finance.min.js` |
207207
| CDN URL (latest) | https://cdn.plot.ly/plotly-finance-latest.js |
208208
| CDN URL (latest minified) | https://cdn.plot.ly/plotly-finance-latest.min.js |
209-
| CDN URL (tagged) | https://cdn.plot.ly/plotly-finance-1.35.0.js |
210-
| CDN URL (tagged minified) | https://cdn.plot.ly/plotly-finance-1.35.0.min.js |
209+
| CDN URL (tagged) | https://cdn.plot.ly/plotly-finance-1.35.1.js |
210+
| CDN URL (tagged minified) | https://cdn.plot.ly/plotly-finance-1.35.1.min.js |
211211
| CommonJS | `require('plotly.js/lib/index-finance')` |
212212

213213
| Raw size | Minified size | Minified + gzip size |

dist/plotly-basic.js

+21-32
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* plotly.js (basic) v1.35.0
2+
* plotly.js (basic) v1.35.1
33
* Copyright 2012-2018, Plotly, Inc.
44
* All rights reserved.
55
* Licensed under the MIT license
@@ -27486,22 +27486,27 @@ axes.calcTicks = function calcTicks(ax) {
2748627486
// find the first tick
2748727487
ax._tmin = axes.tickFirst(ax);
2748827488

27489+
// add a tiny bit so we get ticks which may have rounded out
27490+
var startTick = rng[0] * 1.0001 - rng[1] * 0.0001;
27491+
var endTick = rng[1] * 1.0001 - rng[0] * 0.0001;
2748927492
// check for reversed axis
2749027493
var axrev = (rng[1] < rng[0]);
2749127494

27495+
// No visible ticks? Quit.
27496+
// I've only seen this on category axes with all categories off the edge.
27497+
if((ax._tmin < startTick) !== axrev) return [];
27498+
2749227499
// return the full set of tick vals
27493-
var vals = [],
27494-
// add a tiny bit so we get ticks which may have rounded out
27495-
endtick = rng[1] * 1.0001 - rng[0] * 0.0001;
27500+
var vals = [];
2749627501
if(ax.type === 'category') {
27497-
endtick = (axrev) ? Math.max(-0.5, endtick) :
27498-
Math.min(ax._categories.length - 0.5, endtick);
27502+
endTick = (axrev) ? Math.max(-0.5, endTick) :
27503+
Math.min(ax._categories.length - 0.5, endTick);
2749927504
}
2750027505

2750127506
var xPrevious = null;
2750227507
var maxTicks = Math.max(1000, ax._length || 0);
2750327508
for(var x = ax._tmin;
27504-
(axrev) ? (x >= endtick) : (x <= endtick);
27509+
(axrev) ? (x >= endTick) : (x <= endTick);
2750527510
x = axes.tickIncrement(x, ax.dtick, axrev, ax.calendar)) {
2750627511
// prevent infinite loops - no more than one tick per pixel,
2750727512
// and make sure each value is different from the previous
@@ -28746,7 +28751,7 @@ axes.doTicks = function(gd, axid, skipTitle) {
2874628751
var anchor = labelanchor(angle, d);
2874728752
var thisLabel = _$d3_7.select(this),
2874828753
mathjaxGroup = thisLabel.select('.text-math-group'),
28749-
transform = transfn(d) +
28754+
transform = transfn.call(thisLabel.node(), d) +
2875028755
((_$fastIsnumeric_10(angle) && +angle !== 0) ?
2875128756
(' rotate(' + angle + ',' + labelx(d) + ',' +
2875228757
(labely(d) - d.fontSize / 2) + ')') :
@@ -29964,35 +29969,19 @@ _$cartesian_215.clean = function(newFullData, newFullLayout, oldFullData, oldFul
2996429969
var oldModules = oldFullLayout._modules || [],
2996529970
newModules = newFullLayout._modules || [];
2996629971

29967-
var hadScatter, hasScatter, hadGl, hasGl, i, oldPlots, ids, subplotInfo;
29972+
var hadScatter, hasScatter, hadGl, hasGl, i, oldPlots, ids, subplotInfo, moduleName;
2996829973

2996929974

2997029975
for(i = 0; i < oldModules.length; i++) {
29971-
if(oldModules[i].name === 'scatter') {
29972-
hadScatter = true;
29973-
}
29974-
break;
29976+
moduleName = oldModules[i].name;
29977+
if(moduleName === 'scatter') hadScatter = true;
29978+
else if(moduleName === 'scattergl') hadGl = true;
2997529979
}
2997629980

2997729981
for(i = 0; i < newModules.length; i++) {
29978-
if(newModules[i].name === 'scatter') {
29979-
hasScatter = true;
29980-
break;
29981-
}
29982-
}
29983-
29984-
for(i = 0; i < oldModules.length; i++) {
29985-
if(oldModules[i].name === 'scattergl') {
29986-
hadGl = true;
29987-
}
29988-
break;
29989-
}
29990-
29991-
for(i = 0; i < newModules.length; i++) {
29992-
if(newModules[i].name === 'scattergl') {
29993-
hasGl = true;
29994-
break;
29995-
}
29982+
moduleName = newModules[i].name;
29983+
if(moduleName === 'scatter') hasScatter = true;
29984+
else if(moduleName === 'scattergl') hasGl = true;
2999629985
}
2999729986

2999829987
if(hadScatter && !hasScatter) {
@@ -63562,7 +63551,7 @@ var _$core_148 = {};
6356263551
'use strict';
6356363552

6356463553
// package version injected by `npm run preprocess`
63565-
_$core_148.version = '1.35.0';
63554+
_$core_148.version = '1.35.1';
6356663555

6356763556
// inject promise polyfill
6356863557
_$es6Promise_8.polyfill();

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-32
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* plotly.js (cartesian) v1.35.0
2+
* plotly.js (cartesian) v1.35.1
33
* Copyright 2012-2018, Plotly, Inc.
44
* All rights reserved.
55
* Licensed under the MIT license
@@ -27486,22 +27486,27 @@ axes.calcTicks = function calcTicks(ax) {
2748627486
// find the first tick
2748727487
ax._tmin = axes.tickFirst(ax);
2748827488

27489+
// add a tiny bit so we get ticks which may have rounded out
27490+
var startTick = rng[0] * 1.0001 - rng[1] * 0.0001;
27491+
var endTick = rng[1] * 1.0001 - rng[0] * 0.0001;
2748927492
// check for reversed axis
2749027493
var axrev = (rng[1] < rng[0]);
2749127494

27495+
// No visible ticks? Quit.
27496+
// I've only seen this on category axes with all categories off the edge.
27497+
if((ax._tmin < startTick) !== axrev) return [];
27498+
2749227499
// return the full set of tick vals
27493-
var vals = [],
27494-
// add a tiny bit so we get ticks which may have rounded out
27495-
endtick = rng[1] * 1.0001 - rng[0] * 0.0001;
27500+
var vals = [];
2749627501
if(ax.type === 'category') {
27497-
endtick = (axrev) ? Math.max(-0.5, endtick) :
27498-
Math.min(ax._categories.length - 0.5, endtick);
27502+
endTick = (axrev) ? Math.max(-0.5, endTick) :
27503+
Math.min(ax._categories.length - 0.5, endTick);
2749927504
}
2750027505

2750127506
var xPrevious = null;
2750227507
var maxTicks = Math.max(1000, ax._length || 0);
2750327508
for(var x = ax._tmin;
27504-
(axrev) ? (x >= endtick) : (x <= endtick);
27509+
(axrev) ? (x >= endTick) : (x <= endTick);
2750527510
x = axes.tickIncrement(x, ax.dtick, axrev, ax.calendar)) {
2750627511
// prevent infinite loops - no more than one tick per pixel,
2750727512
// and make sure each value is different from the previous
@@ -28746,7 +28751,7 @@ axes.doTicks = function(gd, axid, skipTitle) {
2874628751
var anchor = labelanchor(angle, d);
2874728752
var thisLabel = _$d3_15.select(this),
2874828753
mathjaxGroup = thisLabel.select('.text-math-group'),
28749-
transform = transfn(d) +
28754+
transform = transfn.call(thisLabel.node(), d) +
2875028755
((_$fastIsnumeric_18(angle) && +angle !== 0) ?
2875128756
(' rotate(' + angle + ',' + labelx(d) + ',' +
2875228757
(labely(d) - d.fontSize / 2) + ')') :
@@ -29964,35 +29969,19 @@ _$cartesian_224.clean = function(newFullData, newFullLayout, oldFullData, oldFul
2996429969
var oldModules = oldFullLayout._modules || [],
2996529970
newModules = newFullLayout._modules || [];
2996629971

29967-
var hadScatter, hasScatter, hadGl, hasGl, i, oldPlots, ids, subplotInfo;
29972+
var hadScatter, hasScatter, hadGl, hasGl, i, oldPlots, ids, subplotInfo, moduleName;
2996829973

2996929974

2997029975
for(i = 0; i < oldModules.length; i++) {
29971-
if(oldModules[i].name === 'scatter') {
29972-
hadScatter = true;
29973-
}
29974-
break;
29976+
moduleName = oldModules[i].name;
29977+
if(moduleName === 'scatter') hadScatter = true;
29978+
else if(moduleName === 'scattergl') hadGl = true;
2997529979
}
2997629980

2997729981
for(i = 0; i < newModules.length; i++) {
29978-
if(newModules[i].name === 'scatter') {
29979-
hasScatter = true;
29980-
break;
29981-
}
29982-
}
29983-
29984-
for(i = 0; i < oldModules.length; i++) {
29985-
if(oldModules[i].name === 'scattergl') {
29986-
hadGl = true;
29987-
}
29988-
break;
29989-
}
29990-
29991-
for(i = 0; i < newModules.length; i++) {
29992-
if(newModules[i].name === 'scattergl') {
29993-
hasGl = true;
29994-
break;
29995-
}
29982+
moduleName = newModules[i].name;
29983+
if(moduleName === 'scatter') hasScatter = true;
29984+
else if(moduleName === 'scattergl') hasGl = true;
2999629985
}
2999729986

2999829987
if(hadScatter && !hasScatter) {
@@ -69430,7 +69419,7 @@ var _$core_157 = {};
6943069419
'use strict';
6943169420

6943269421
// package version injected by `npm run preprocess`
69433-
_$core_157.version = '1.35.0';
69422+
_$core_157.version = '1.35.1';
6943469423

6943569424
// inject promise polyfill
6943669425
_$es6Promise_16.polyfill();

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)