Skip to content

Commit

Permalink
1.35.1
Browse files Browse the repository at this point in the history
  • Loading branch information
etpinard committed Mar 9, 2018
1 parent 7d9decf commit ae7ba10
Show file tree
Hide file tree
Showing 23 changed files with 238 additions and 331 deletions.
36 changes: 18 additions & 18 deletions dist/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ You can grab the relevant MathJax files in `./dist/extras/mathjax/`.
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.35.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.35.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 @@ -61,11 +61,11 @@ 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.35.0.min.js
- using CDN URL https://cdn.plot.ly/plotly-latest.min.js OR https://cdn.plot.ly/plotly-1.35.1.min.js

or as raw javascript:
- using dist file `dist/plotly.js`
- using CDN URL https://cdn.plot.ly/plotly-latest.js OR https://cdn.plot.ly/plotly-1.35.0.js
- using CDN URL https://cdn.plot.ly/plotly-latest.js OR https://cdn.plot.ly/plotly-1.35.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 @@ -98,8 +98,8 @@ The `basic` partial bundle contains the `scatter`, `bar` and `pie` trace modules
| dist bundle (minified) | `dist/plotly-basic.min.js` |
| CDN URL (latest) | https://cdn.plot.ly/plotly-basic-latest.js |
| CDN URL (latest minified) | https://cdn.plot.ly/plotly-basic-latest.min.js |
| CDN URL (tagged) | https://cdn.plot.ly/plotly-basic-1.35.0.js |
| CDN URL (tagged minified) | https://cdn.plot.ly/plotly-basic-1.35.0.min.js |
| CDN URL (tagged) | https://cdn.plot.ly/plotly-basic-1.35.1.js |
| CDN URL (tagged minified) | https://cdn.plot.ly/plotly-basic-1.35.1.min.js |
| CommonJS | `require('plotly.js/lib/index-basic')` |

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

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

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

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

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

| Raw size | Minified size | Minified + gzip size |
|------|-----------------|------------------------|
| 3.3 MB | 1.3 MB | 382 kB |
| 3.3 MB | 1.3 MB | 382.1 kB |

### plotly.js finance

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

| Raw size | Minified size | Minified + gzip size |
Expand Down
53 changes: 21 additions & 32 deletions dist/plotly-basic.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* plotly.js (basic) v1.35.0
* plotly.js (basic) v1.35.1
* Copyright 2012-2018, Plotly, Inc.
* All rights reserved.
* Licensed under the MIT license
Expand Down Expand Up @@ -27486,22 +27486,27 @@ axes.calcTicks = function calcTicks(ax) {
// find the first tick
ax._tmin = axes.tickFirst(ax);

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

// No visible ticks? Quit.
// I've only seen this on category axes with all categories off the edge.
if((ax._tmin < startTick) !== axrev) return [];

// return the full set of tick vals
var vals = [],
// add a tiny bit so we get ticks which may have rounded out
endtick = rng[1] * 1.0001 - rng[0] * 0.0001;
var vals = [];
if(ax.type === 'category') {
endtick = (axrev) ? Math.max(-0.5, endtick) :
Math.min(ax._categories.length - 0.5, endtick);
endTick = (axrev) ? Math.max(-0.5, endTick) :
Math.min(ax._categories.length - 0.5, endTick);
}

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

var hadScatter, hasScatter, hadGl, hasGl, i, oldPlots, ids, subplotInfo;
var hadScatter, hasScatter, hadGl, hasGl, i, oldPlots, ids, subplotInfo, moduleName;


for(i = 0; i < oldModules.length; i++) {
if(oldModules[i].name === 'scatter') {
hadScatter = true;
}
break;
moduleName = oldModules[i].name;
if(moduleName === 'scatter') hadScatter = true;
else if(moduleName === 'scattergl') hadGl = true;
}

for(i = 0; i < newModules.length; i++) {
if(newModules[i].name === 'scatter') {
hasScatter = true;
break;
}
}

for(i = 0; i < oldModules.length; i++) {
if(oldModules[i].name === 'scattergl') {
hadGl = true;
}
break;
}

for(i = 0; i < newModules.length; i++) {
if(newModules[i].name === 'scattergl') {
hasGl = true;
break;
}
moduleName = newModules[i].name;
if(moduleName === 'scatter') hasScatter = true;
else if(moduleName === 'scattergl') hasGl = true;
}

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

// package version injected by `npm run preprocess`
_$core_148.version = '1.35.0';
_$core_148.version = '1.35.1';

// inject promise polyfill
_$es6Promise_8.polyfill();
Expand Down
4 changes: 2 additions & 2 deletions dist/plotly-basic.min.js

Large diffs are not rendered by default.

53 changes: 21 additions & 32 deletions dist/plotly-cartesian.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* plotly.js (cartesian) v1.35.0
* plotly.js (cartesian) v1.35.1
* Copyright 2012-2018, Plotly, Inc.
* All rights reserved.
* Licensed under the MIT license
Expand Down Expand Up @@ -27486,22 +27486,27 @@ axes.calcTicks = function calcTicks(ax) {
// find the first tick
ax._tmin = axes.tickFirst(ax);

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

// No visible ticks? Quit.
// I've only seen this on category axes with all categories off the edge.
if((ax._tmin < startTick) !== axrev) return [];

// return the full set of tick vals
var vals = [],
// add a tiny bit so we get ticks which may have rounded out
endtick = rng[1] * 1.0001 - rng[0] * 0.0001;
var vals = [];
if(ax.type === 'category') {
endtick = (axrev) ? Math.max(-0.5, endtick) :
Math.min(ax._categories.length - 0.5, endtick);
endTick = (axrev) ? Math.max(-0.5, endTick) :
Math.min(ax._categories.length - 0.5, endTick);
}

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

var hadScatter, hasScatter, hadGl, hasGl, i, oldPlots, ids, subplotInfo;
var hadScatter, hasScatter, hadGl, hasGl, i, oldPlots, ids, subplotInfo, moduleName;


for(i = 0; i < oldModules.length; i++) {
if(oldModules[i].name === 'scatter') {
hadScatter = true;
}
break;
moduleName = oldModules[i].name;
if(moduleName === 'scatter') hadScatter = true;
else if(moduleName === 'scattergl') hadGl = true;
}

for(i = 0; i < newModules.length; i++) {
if(newModules[i].name === 'scatter') {
hasScatter = true;
break;
}
}

for(i = 0; i < oldModules.length; i++) {
if(oldModules[i].name === 'scattergl') {
hadGl = true;
}
break;
}

for(i = 0; i < newModules.length; i++) {
if(newModules[i].name === 'scattergl') {
hasGl = true;
break;
}
moduleName = newModules[i].name;
if(moduleName === 'scatter') hasScatter = true;
else if(moduleName === 'scattergl') hasGl = true;
}

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

// package version injected by `npm run preprocess`
_$core_157.version = '1.35.0';
_$core_157.version = '1.35.1';

// inject promise polyfill
_$es6Promise_16.polyfill();
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 ae7ba10

Please sign in to comment.