Skip to content

Commit

Permalink
Merge branch 'master' into offset-alignment-groups
Browse files Browse the repository at this point in the history
  • Loading branch information
etpinard committed Feb 18, 2019
2 parents 1c1ca3a + 25fa0c2 commit a146340
Show file tree
Hide file tree
Showing 180 changed files with 13,497 additions and 1,842 deletions.
9 changes: 9 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,15 @@ https://github.com/plotly/plotly.js/compare/vX.Y.Z...master
where X.Y.Z is the semver of most recent plotly.js release.


## [1.44.4] -- 2019-02-12

### Fixed
- Fix `Plotly.react` used with `uirevision` when removing traces [#3527]
- Fix `scattergl` update calls that change the number of on-graph text elements [#3536]
- Fix annotations SVG errors on trace-less subplots [#3534]
- Fix `ohlc` and `candlestick` hover on blank coordinates (bug introduced in 1.43.2) [#3537]


## [1.44.3] -- 2019-02-06

### Fixed
Expand Down
4 changes: 2 additions & 2 deletions build/plotcss.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,12 +35,12 @@ var rules = {
"X .ease-bg": "-webkit-transition:background-color 0.3s ease 0s;-moz-transition:background-color 0.3s ease 0s;-ms-transition:background-color 0.3s ease 0s;-o-transition:background-color 0.3s ease 0s;transition:background-color 0.3s ease 0s;",
"X .modebar--hover>:not(.watermark)": "opacity:0;-webkit-transition:opacity 0.3s ease 0s;-moz-transition:opacity 0.3s ease 0s;-ms-transition:opacity 0.3s ease 0s;-o-transition:opacity 0.3s ease 0s;transition:opacity 0.3s ease 0s;",
"X:hover .modebar--hover .modebar-group": "opacity:1;",
"X .modebar-group": "float:left;display:inline-block;box-sizing:border-box;margin-left:8px;position:relative;vertical-align:middle;white-space:nowrap;",
"X .modebar-group": "float:left;display:inline-block;box-sizing:border-box;padding-left:8px;position:relative;vertical-align:middle;white-space:nowrap;",
"X .modebar-btn": "position:relative;font-size:16px;padding:3px 4px;height:22px;cursor:pointer;line-height:normal;box-sizing:border-box;",
"X .modebar-btn svg": "position:relative;top:2px;",
"X .modebar.vertical": "display:flex;flex-direction:column;flex-wrap:wrap;align-content:flex-end;max-height:100%;",
"X .modebar.vertical svg": "top:-1px;",
"X .modebar.vertical .modebar-group": "display:block;float:none;margin-left:0px;margin-bottom:8px;",
"X .modebar.vertical .modebar-group": "display:block;float:none;padding-left:0px;padding-bottom:8px;",
"X .modebar.vertical .modebar-group .modebar-btn": "display:block;text-align:center;",
"X [data-title]:before,X [data-title]:after": "position:absolute;-webkit-transform:translate3d(0, 0, 0);-moz-transform:translate3d(0, 0, 0);-ms-transform:translate3d(0, 0, 0);-o-transform:translate3d(0, 0, 0);transform:translate3d(0, 0, 0);display:none;opacity:0;z-index:1001;pointer-events:none;top:110%;right:50%;",
"X [data-title]:hover:before,X [data-title]:hover:after": "display:block;opacity:1;",
Expand Down
44 changes: 22 additions & 22 deletions dist/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ object. This property must be set before the plotly.js script tag, for example:
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.44.3.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.44.4.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 @@ -74,12 +74,12 @@ 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.44.3.min.js
- using CDN URL https://cdn.plot.ly/plotly-latest.min.js OR https://cdn.plot.ly/plotly-1.44.4.min.js

or as raw javascript:
- using the `plotly.js-dist` npm package (starting in `v1.39.0`)
- using dist file `dist/plotly.js`
- using CDN URL https://cdn.plot.ly/plotly-latest.js OR https://cdn.plot.ly/plotly-1.44.3.js
- using CDN URL https://cdn.plot.ly/plotly-latest.js OR https://cdn.plot.ly/plotly-1.44.4.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 @@ -88,7 +88,7 @@ The main plotly.js bundle weights in at:

| plotly.js | plotly.min.js | plotly.min.js + gzip | plotly-with-meta.js |
|-----------|---------------|----------------------|---------------------|
| 6.1 MB | 2.8 MB | 849.3 kB | 6.3 MB |
| 6.1 MB | 2.8 MB | 849.5 kB | 6.3 MB |

## Partial bundles

Expand Down Expand Up @@ -119,8 +119,8 @@ The `basic` partial bundle contains trace modules `scatter`, `bar` and `pie`.
| ------ | --- |
| Latest | https://cdn.plot.ly/plotly-basic-latest.js |
| Latest minified | https://cdn.plot.ly/plotly-basic-latest.min.js |
| Tagged | https://cdn.plot.ly/plotly-basic-1.44.3.js |
| Tagged minified | https://cdn.plot.ly/plotly-basic-1.44.3.min.js |
| Tagged | https://cdn.plot.ly/plotly-basic-1.44.4.js |
| Tagged minified | https://cdn.plot.ly/plotly-basic-1.44.4.min.js |

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

Expand Down Expand Up @@ -165,8 +165,8 @@ The `cartesian` partial bundle contains trace modules `scatter`, `bar`, `box`, `
| ------ | --- |
| Latest | https://cdn.plot.ly/plotly-cartesian-latest.js |
| Latest minified | https://cdn.plot.ly/plotly-cartesian-latest.min.js |
| Tagged | https://cdn.plot.ly/plotly-cartesian-1.44.3.js |
| Tagged minified | https://cdn.plot.ly/plotly-cartesian-1.44.3.min.js |
| Tagged | https://cdn.plot.ly/plotly-cartesian-1.44.4.js |
| Tagged minified | https://cdn.plot.ly/plotly-cartesian-1.44.4.min.js |

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

Expand Down Expand Up @@ -211,8 +211,8 @@ The `geo` partial bundle contains trace modules `scatter`, `scattergeo` and `cho
| ------ | --- |
| Latest | https://cdn.plot.ly/plotly-geo-latest.js |
| Latest minified | https://cdn.plot.ly/plotly-geo-latest.min.js |
| Tagged | https://cdn.plot.ly/plotly-geo-1.44.3.js |
| Tagged minified | https://cdn.plot.ly/plotly-geo-1.44.3.min.js |
| Tagged | https://cdn.plot.ly/plotly-geo-1.44.4.js |
| Tagged minified | https://cdn.plot.ly/plotly-geo-1.44.4.min.js |

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

Expand Down Expand Up @@ -249,16 +249,16 @@ The `gl3d` partial bundle contains trace modules `scatter`, `scatter3d`, `surfac

| Raw size | Minified size | Minified + gzip size |
|------|-----------------|------------------------|
| 3.4 MB | 1.3 MB | 425.1 kB |
| 3.4 MB | 1.3 MB | 425.2 kB |

#### CDN links

| Flavor | URL |
| ------ | --- |
| Latest | https://cdn.plot.ly/plotly-gl3d-latest.js |
| Latest minified | https://cdn.plot.ly/plotly-gl3d-latest.min.js |
| Tagged | https://cdn.plot.ly/plotly-gl3d-1.44.3.js |
| Tagged minified | https://cdn.plot.ly/plotly-gl3d-1.44.3.min.js |
| Tagged | https://cdn.plot.ly/plotly-gl3d-1.44.4.js |
| Tagged minified | https://cdn.plot.ly/plotly-gl3d-1.44.4.min.js |

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

Expand Down Expand Up @@ -295,16 +295,16 @@ The `gl2d` partial bundle contains trace modules `scatter`, `scattergl`, `splom`

| Raw size | Minified size | Minified + gzip size |
|------|-----------------|------------------------|
| 3.4 MB | 1.4 MB | 442.5 kB |
| 3.4 MB | 1.4 MB | 442.6 kB |

#### CDN links

| Flavor | URL |
| ------ | --- |
| Latest | https://cdn.plot.ly/plotly-gl2d-latest.js |
| Latest minified | https://cdn.plot.ly/plotly-gl2d-latest.min.js |
| Tagged | https://cdn.plot.ly/plotly-gl2d-1.44.3.js |
| Tagged minified | https://cdn.plot.ly/plotly-gl2d-1.44.3.min.js |
| Tagged | https://cdn.plot.ly/plotly-gl2d-1.44.4.js |
| Tagged minified | https://cdn.plot.ly/plotly-gl2d-1.44.4.min.js |

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

Expand Down Expand Up @@ -341,16 +341,16 @@ The `mapbox` partial bundle contains trace modules `scatter` and `scattermapbox`

| Raw size | Minified size | Minified + gzip size |
|------|-----------------|------------------------|
| 2.8 MB | 1.4 MB | 410.7 kB |
| 2.8 MB | 1.4 MB | 410.8 kB |

#### CDN links

| Flavor | URL |
| ------ | --- |
| Latest | https://cdn.plot.ly/plotly-mapbox-latest.js |
| Latest minified | https://cdn.plot.ly/plotly-mapbox-latest.min.js |
| Tagged | https://cdn.plot.ly/plotly-mapbox-1.44.3.js |
| Tagged minified | https://cdn.plot.ly/plotly-mapbox-1.44.3.min.js |
| Tagged | https://cdn.plot.ly/plotly-mapbox-1.44.4.js |
| Tagged minified | https://cdn.plot.ly/plotly-mapbox-1.44.4.min.js |

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

Expand Down Expand Up @@ -387,16 +387,16 @@ The `finance` partial bundle contains trace modules `scatter`, `bar`, `histogram

| Raw size | Minified size | Minified + gzip size |
|------|-----------------|------------------------|
| 2.4 MB | 843.4 kB | 274.8 kB |
| 2.4 MB | 843.5 kB | 274.9 kB |

#### CDN links

| Flavor | URL |
| ------ | --- |
| Latest | https://cdn.plot.ly/plotly-finance-latest.js |
| Latest minified | https://cdn.plot.ly/plotly-finance-latest.min.js |
| Tagged | https://cdn.plot.ly/plotly-finance-1.44.3.js |
| Tagged minified | https://cdn.plot.ly/plotly-finance-1.44.3.min.js |
| Tagged | https://cdn.plot.ly/plotly-finance-1.44.4.js |
| Tagged minified | https://cdn.plot.ly/plotly-finance-1.44.4.min.js |

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

Expand Down
9 changes: 6 additions & 3 deletions dist/plotly-basic.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* plotly.js (basic) v1.44.3
* plotly.js (basic) v1.44.4
* Copyright 2012-2019, Plotly, Inc.
* All rights reserved.
* Licensed under the MIT license
Expand Down Expand Up @@ -15655,6 +15655,9 @@ function drawOne(gd, index) {
var xa = Axes.getFromId(gd, options.xref);
var ya = Axes.getFromId(gd, options.yref);

if(xa) xa.setScale();
if(ya) ya.setScale();

drawRaw(gd, options, index, false, xa, ya);
}

Expand Down Expand Up @@ -33772,7 +33775,7 @@ exports.svgAttrs = {
'use strict';

// package version injected by `npm run preprocess`
exports.version = '1.44.3';
exports.version = '1.44.4';

// inject promise polyfill
_dereq_('es6-promise').polyfill();
Expand Down Expand Up @@ -43925,7 +43928,7 @@ function getTraceIndexFromUid(uid, data, tracei) {
if(data[i].uid === uid) return i;
}
// fall back on trace order, but only if user didn't provide a uid for that trace
return data[tracei].uid ? -1 : tracei;
return (!data[tracei] || data[tracei].uid) ? -1 : tracei;
}

function valsMatch(v1, v2) {
Expand Down
4 changes: 2 additions & 2 deletions dist/plotly-basic.min.js

Large diffs are not rendered by default.

9 changes: 6 additions & 3 deletions dist/plotly-cartesian.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* plotly.js (cartesian) v1.44.3
* plotly.js (cartesian) v1.44.4
* Copyright 2012-2019, Plotly, Inc.
* All rights reserved.
* Licensed under the MIT license
Expand Down Expand Up @@ -15767,6 +15767,9 @@ function drawOne(gd, index) {
var xa = Axes.getFromId(gd, options.xref);
var ya = Axes.getFromId(gd, options.yref);

if(xa) xa.setScale();
if(ya) ya.setScale();

drawRaw(gd, options, index, false, xa, ya);
}

Expand Down Expand Up @@ -33922,7 +33925,7 @@ exports.svgAttrs = {
'use strict';

// package version injected by `npm run preprocess`
exports.version = '1.44.3';
exports.version = '1.44.4';

// inject promise polyfill
_dereq_('es6-promise').polyfill();
Expand Down Expand Up @@ -44075,7 +44078,7 @@ function getTraceIndexFromUid(uid, data, tracei) {
if(data[i].uid === uid) return i;
}
// fall back on trace order, but only if user didn't provide a uid for that trace
return data[tracei].uid ? -1 : tracei;
return (!data[tracei] || data[tracei].uid) ? -1 : tracei;
}

function valsMatch(v1, v2) {
Expand Down
4 changes: 2 additions & 2 deletions dist/plotly-cartesian.min.js

Large diffs are not rendered by default.

12 changes: 9 additions & 3 deletions dist/plotly-finance.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* plotly.js (finance) v1.44.3
* plotly.js (finance) v1.44.4
* Copyright 2012-2019, Plotly, Inc.
* All rights reserved.
* Licensed under the MIT license
Expand Down Expand Up @@ -15697,6 +15697,9 @@ function drawOne(gd, index) {
var xa = Axes.getFromId(gd, options.xref);
var ya = Axes.getFromId(gd, options.yref);

if(xa) xa.setScale();
if(ya) ya.setScale();

drawRaw(gd, options, index, false, xa, ya);
}

Expand Down Expand Up @@ -33814,7 +33817,7 @@ exports.svgAttrs = {
'use strict';

// package version injected by `npm run preprocess`
exports.version = '1.44.3';
exports.version = '1.44.4';

// inject promise polyfill
_dereq_('es6-promise').polyfill();
Expand Down Expand Up @@ -43967,7 +43970,7 @@ function getTraceIndexFromUid(uid, data, tracei) {
if(data[i].uid === uid) return i;
}
// fall back on trace order, but only if user didn't provide a uid for that trace
return data[tracei].uid ? -1 : tracei;
return (!data[tracei] || data[tracei].uid) ? -1 : tracei;
}

function valsMatch(v1, v2) {
Expand Down Expand Up @@ -70355,6 +70358,9 @@ function getClosestPoint(pointData, xval, yval, hovermode) {
if(pointData.index === false) return null;

var di = cd[pointData.index];

if(di.empty) return null;

var dir = di.dir;
var container = trace[dir];
var lc = container.line.color;
Expand Down
4 changes: 2 additions & 2 deletions dist/plotly-finance.min.js

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions dist/plotly-geo-assets.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 6 additions & 3 deletions dist/plotly-geo.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* plotly.js (geo) v1.44.3
* plotly.js (geo) v1.44.4
* Copyright 2012-2019, Plotly, Inc.
* All rights reserved.
* Licensed under the MIT license
Expand Down Expand Up @@ -16434,6 +16434,9 @@ function drawOne(gd, index) {
var xa = Axes.getFromId(gd, options.xref);
var ya = Axes.getFromId(gd, options.yref);

if(xa) xa.setScale();
if(ya) ya.setScale();

drawRaw(gd, options, index, false, xa, ya);
}

Expand Down Expand Up @@ -34551,7 +34554,7 @@ exports.svgAttrs = {
'use strict';

// package version injected by `npm run preprocess`
exports.version = '1.44.3';
exports.version = '1.44.4';

// inject promise polyfill
_dereq_('es6-promise').polyfill();
Expand Down Expand Up @@ -44919,7 +44922,7 @@ function getTraceIndexFromUid(uid, data, tracei) {
if(data[i].uid === uid) return i;
}
// fall back on trace order, but only if user didn't provide a uid for that trace
return data[tracei].uid ? -1 : tracei;
return (!data[tracei] || data[tracei].uid) ? -1 : tracei;
}

function valsMatch(v1, v2) {
Expand Down
4 changes: 2 additions & 2 deletions dist/plotly-geo.min.js

Large diffs are not rendered by default.

22 changes: 19 additions & 3 deletions dist/plotly-gl2d.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* plotly.js (gl2d) v1.44.3
* plotly.js (gl2d) v1.44.4
* Copyright 2012-2019, Plotly, Inc.
* All rights reserved.
* Licensed under the MIT license
Expand Down Expand Up @@ -48961,6 +48961,9 @@ function drawOne(gd, index) {
var xa = Axes.getFromId(gd, options.xref);
var ya = Axes.getFromId(gd, options.yref);

if(xa) xa.setScale();
if(ya) ya.setScale();

drawRaw(gd, options, index, false, xa, ya);
}

Expand Down Expand Up @@ -67116,7 +67119,7 @@ exports.svgAttrs = {
'use strict';

// package version injected by `npm run preprocess`
exports.version = '1.44.3';
exports.version = '1.44.4';

// inject promise polyfill
_dereq_('es6-promise').polyfill();
Expand Down Expand Up @@ -77570,7 +77573,7 @@ function getTraceIndexFromUid(uid, data, tracei) {
if(data[i].uid === uid) return i;
}
// fall back on trace order, but only if user didn't provide a uid for that trace
return data[tracei].uid ? -1 : tracei;
return (!data[tracei] || data[tracei].uid) ? -1 : tracei;
}

function valsMatch(v1, v2) {
Expand Down Expand Up @@ -110202,6 +110205,19 @@ function plot(gd, subplot, cdata) {

// update main marker options
if(scene.glText) {
if(scene.count > scene.glText.length) {
// add gl text marker
var textsToAdd = scene.count - scene.glText.length;
for(i = 0; i < textsToAdd; i++) {
scene.glText.push(new Text(regl));
}
} else if(scene.count < scene.glText.length) {
// remove gl text marker
var textsToRemove = scene.glText.length - scene.count;
var removedTexts = scene.glText.splice(scene.count, textsToRemove);
removedTexts.forEach(function(text) { text.destroy(); });
}

for(i = 0; i < scene.count; i++) {
scene.glText[i].update(scene.textOptions[i]);
}
Expand Down
Loading

0 comments on commit a146340

Please sign in to comment.