Skip to content

Commit

Permalink
1.30.1
Browse files Browse the repository at this point in the history
  • Loading branch information
etpinard committed Sep 6, 2017
1 parent dd4f333 commit 253eb24
Show file tree
Hide file tree
Showing 23 changed files with 721 additions and 316 deletions.
48 changes: 24 additions & 24 deletions dist/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,11 +37,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.30.0.min.js
- using CDN URL https://cdn.plot.ly/plotly-latest.min.js OR https://cdn.plot.ly/plotly-1.30.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.30.0.js
- using CDN URL https://cdn.plot.ly/plotly-latest.js OR https://cdn.plot.ly/plotly-1.30.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 All @@ -50,7 +50,7 @@ The main plotly.js bundle weights in at:

| plotly.js | plotly.min.js | plotly.min.js + gzip | plotly-with-meta.js |
|-----------|---------------|----------------------|---------------------|
| 5.5 MB | 2.2 MB | 672.1 kB | 5.6 MB |
| 5.5 MB | 2.2 MB | 672.3 kB | 5.6 MB |

## Partial bundles

Expand All @@ -74,13 +74,13 @@ 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.30.0.js |
| CDN URL (tagged minified) | https://cdn.plot.ly/plotly-basic-1.30.0.min.js |
| CDN URL (tagged) | https://cdn.plot.ly/plotly-basic-1.30.1.js |
| CDN URL (tagged minified) | https://cdn.plot.ly/plotly-basic-1.30.1.min.js |
| CommonJS | `require('plotly.js/lib/index-basic')` |

| Raw size | Minified size | Minified + gzip size |
|------|-----------------|------------------------|
| 1.8 MB | 676 kB | 220.1 kB |
| 1.8 MB | 676.5 kB | 220.3 kB |

### plotly.js cartesian

Expand All @@ -92,13 +92,13 @@ 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.30.0.js |
| CDN URL (tagged minified) | https://cdn.plot.ly/plotly-cartesian-1.30.0.min.js |
| CDN URL (tagged) | https://cdn.plot.ly/plotly-cartesian-1.30.1.js |
| CDN URL (tagged minified) | https://cdn.plot.ly/plotly-cartesian-1.30.1.min.js |
| CommonJS | `require('plotly.js/lib/index-cartesian')` |

| Raw size | Minified size | Minified + gzip size |
|------|-----------------|------------------------|
| 2 MB | 759.1 kB | 245.6 kB |
| 2 MB | 759.7 kB | 245.8 kB |

### plotly.js geo

Expand All @@ -110,13 +110,13 @@ 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.30.0.js |
| CDN URL (tagged minified) | https://cdn.plot.ly/plotly-geo-1.30.0.min.js |
| CDN URL (tagged) | https://cdn.plot.ly/plotly-geo-1.30.1.js |
| CDN URL (tagged minified) | https://cdn.plot.ly/plotly-geo-1.30.1.min.js |
| CommonJS | `require('plotly.js/lib/index-geo')` |

| Raw size | Minified size | Minified + gzip size |
|------|-----------------|------------------------|
| 1.8 MB | 698.5 kB | 228.5 kB |
| 1.8 MB | 699.1 kB | 228.7 kB |

### plotly.js gl3d

Expand All @@ -128,13 +128,13 @@ 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.30.0.js |
| CDN URL (tagged minified) | https://cdn.plot.ly/plotly-gl3d-1.30.0.min.js |
| CDN URL (tagged) | https://cdn.plot.ly/plotly-gl3d-1.30.1.js |
| CDN URL (tagged minified) | https://cdn.plot.ly/plotly-gl3d-1.30.1.min.js |
| CommonJS | `require('plotly.js/lib/index-gl3d')` |

| Raw size | Minified size | Minified + gzip size |
|------|-----------------|------------------------|
| 2.7 MB | 1.1 MB | 358.4 kB |
| 2.7 MB | 1.1 MB | 358.6 kB |

### plotly.js gl2d

Expand All @@ -146,13 +146,13 @@ 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.30.0.js |
| CDN URL (tagged minified) | https://cdn.plot.ly/plotly-gl2d-1.30.0.min.js |
| CDN URL (tagged) | https://cdn.plot.ly/plotly-gl2d-1.30.1.js |
| CDN URL (tagged minified) | https://cdn.plot.ly/plotly-gl2d-1.30.1.min.js |
| CommonJS | `require('plotly.js/lib/index-gl2d')` |

| Raw size | Minified size | Minified + gzip size |
|------|-----------------|------------------------|
| 2.8 MB | 1.1 MB | 367.8 kB |
| 2.8 MB | 1.1 MB | 368 kB |

### plotly.js mapbox

Expand All @@ -164,13 +164,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.30.0.js |
| CDN URL (tagged minified) | https://cdn.plot.ly/plotly-mapbox-1.30.0.min.js |
| CDN URL (tagged) | https://cdn.plot.ly/plotly-mapbox-1.30.1.js |
| CDN URL (tagged minified) | https://cdn.plot.ly/plotly-mapbox-1.30.1.min.js |
| CommonJS | `require('plotly.js/lib/index-mapbox')` |

| Raw size | Minified size | Minified + gzip size |
|------|-----------------|------------------------|
| 2.9 MB | 1.1 MB | 333.6 kB |
| 2.9 MB | 1.1 MB | 333.8 kB |

### plotly.js finance

Expand All @@ -182,13 +182,13 @@ 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.30.0.js |
| CDN URL (tagged minified) | https://cdn.plot.ly/plotly-finance-1.30.0.min.js |
| CDN URL (tagged) | https://cdn.plot.ly/plotly-finance-1.30.1.js |
| CDN URL (tagged minified) | https://cdn.plot.ly/plotly-finance-1.30.1.min.js |
| CommonJS | `require('plotly.js/lib/index-finance')` |

| Raw size | Minified size | Minified + gzip size |
|------|-----------------|------------------------|
| 1.9 MB | 704.3 kB | 228.2 kB |
| 1.9 MB | 704.9 kB | 228.4 kB |

----------------

Expand Down
2 changes: 1 addition & 1 deletion dist/npm-ls.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "plotly.js",
"version": "1.30.0",
"version": "1.30.1",
"dependencies": {
"3d-view": {
"version": "2.0.0",
Expand Down
85 changes: 65 additions & 20 deletions dist/plotly-basic.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* plotly.js (basic) v1.30.0
* plotly.js (basic) v1.30.1
* Copyright 2012-2017, Plotly, Inc.
* All rights reserved.
* Licensed under the MIT license
Expand Down Expand Up @@ -25722,7 +25722,7 @@ function drawOne(gd, index) {
else {
var plotinfo = gd._fullLayout._plots[options.xref + options.yref];
if(plotinfo) {
var mainPlot = plotinfo.mainplot || plotinfo;
var mainPlot = plotinfo.mainplotinfo || plotinfo;
drawShape(mainPlot.shapelayer);
}
else {
Expand Down Expand Up @@ -29257,7 +29257,7 @@ exports.svgAttrs = {
var Plotly = require('./plotly');

// package version injected by `npm run preprocess`
exports.version = '1.30.0';
exports.version = '1.30.1';

// inject promise polyfill
require('es6-promise').polyfill();
Expand Down Expand Up @@ -41911,6 +41911,8 @@ axes.doTicks = function(gd, axid, skipTitle) {
.selectAll('path').remove();
plotinfo.zerolinelayer
.selectAll('path').remove();
fullLayout._infolayer.select('.g-' + xa._id + 'title').remove();
fullLayout._infolayer.select('.g-' + ya._id + 'title').remove();
});
}

Expand Down Expand Up @@ -42038,9 +42040,16 @@ axes.doTicks = function(gd, axid, skipTitle) {
// tick labels - for now just the main labels.
// TODO: mirror labels, esp for subplots
var tickLabels = container.selectAll('g.' + tcls).data(vals, datafn);
if(!ax.showticklabels || !isNumeric(position)) {

if(!isNumeric(position)) {
tickLabels.remove();
drawAxTitle();
return;
}
if(!ax.showticklabels) {
tickLabels.remove();
drawAxTitle();
calcBoundingBox();
return;
}

Expand Down Expand Up @@ -42206,23 +42215,59 @@ axes.doTicks = function(gd, axid, skipTitle) {
}

function calcBoundingBox() {
var bBox = container.node().getBoundingClientRect();
var gdBB = gd.getBoundingClientRect();
if(ax.showticklabels) {
var gdBB = gd.getBoundingClientRect();
var bBox = container.node().getBoundingClientRect();

/*
* the way we're going to use this, the positioning that matters
* is relative to the origin of gd. This is important particularly
* if gd is scrollable, and may have been scrolled between the time
* we calculate this and the time we use it
*/
ax._boundingBox = {
width: bBox.width,
height: bBox.height,
left: bBox.left - gdBB.left,
right: bBox.right - gdBB.left,
top: bBox.top - gdBB.top,
bottom: bBox.bottom - gdBB.top
};
/*
* the way we're going to use this, the positioning that matters
* is relative to the origin of gd. This is important particularly
* if gd is scrollable, and may have been scrolled between the time
* we calculate this and the time we use it
*/

ax._boundingBox = {
width: bBox.width,
height: bBox.height,
left: bBox.left - gdBB.left,
right: bBox.right - gdBB.left,
top: bBox.top - gdBB.top,
bottom: bBox.bottom - gdBB.top
};
} else {
var gs = fullLayout._size;
var pos;

// set dummy bbox for ticklabel-less axes

if(axLetter === 'x') {
pos = ax.anchor === 'free' ?
gs.t + gs.h * (1 - ax.position) :
gs.t + gs.h * (1 - ax._anchorAxis.domain[{bottom: 0, top: 1}[ax.side]]);

ax._boundingBox = {
top: pos,
bottom: pos,
left: ax._offset,
rigth: ax._offset + ax._length,
width: ax._length,
height: 0
};
} else {
pos = ax.anchor === 'free' ?
gs.l + gs.w * ax.position :
gs.l + gs.w * ax._anchorAxis.domain[{left: 0, right: 1}[ax.side]];

ax._boundingBox = {
left: pos,
right: pos,
bottom: ax._offset + ax._length,
top: ax._offset,
height: ax._length,
width: 0
};
}
}

/*
* for spikelines: what's the full domain of positions in the
Expand Down
20 changes: 10 additions & 10 deletions dist/plotly-basic.min.js

Large diffs are not rendered by default.

Loading

0 comments on commit 253eb24

Please sign in to comment.