Skip to content

Commit 775682f

Browse files
committed
1.20.2
1 parent 9e71209 commit 775682f

23 files changed

+241
-155
lines changed

dist/README.md

+21-21
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.20.1.min.js
40+
- using CDN URL https://cdn.plot.ly/plotly-plotly-latest.min.js OR https://cdn.plot.ly/plotly-plotly-1.20.2.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.20.1.js
44+
- using CDN URL https://cdn.plot.ly/plotly-plotly-latest.js OR https://cdn.plot.ly/plotly-plotly-1.20.2.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`
@@ -74,13 +74,13 @@ The `basic` partial bundle contains the `scatter`, `bar` and `pie` trace modules
7474
| dist bundle (minified) | `dist/plotly-basic.min.js` |
7575
| CDN URL (latest) | https://cdn.plot.ly/plotly-basic-latest.js |
7676
| CDN URL (latest minified) | https://cdn.plot.ly/plotly-basic-latest.min.js |
77-
| CDN URL (tagged) | https://cdn.plot.ly/plotly-basic-1.20.1.js |
78-
| CDN URL (tagged minified) | https://cdn.plot.ly/plotly-basic-1.20.1.min.js |
77+
| CDN URL (tagged) | https://cdn.plot.ly/plotly-basic-1.20.2.js |
78+
| CDN URL (tagged minified) | https://cdn.plot.ly/plotly-basic-1.20.2.min.js |
7979
| CommonJS | `require('plotly.js/lib/index-basic')` |
8080

8181
| Raw size | Minified size | Minified + gzip size |
8282
|------|-----------------|------------------------|
83-
| 1.6 MB | 606.4 kB | 196.5 kB |
83+
| 1.6 MB | 606.5 kB | 196.6 kB |
8484

8585
### plotly.js cartesian
8686

@@ -92,13 +92,13 @@ The `cartesian` partial bundle contains the `scatter`, `bar`, `box`, `heatmap`,
9292
| dist bundle (minified) | `dist/plotly-cartesian.min.js` |
9393
| CDN URL (latest) | https://cdn.plot.ly/plotly-cartesian-latest.js |
9494
| CDN URL (latest minified) | https://cdn.plot.ly/plotly-cartesian-latest.min.js |
95-
| CDN URL (tagged) | https://cdn.plot.ly/plotly-cartesian-1.20.1.js |
96-
| CDN URL (tagged minified) | https://cdn.plot.ly/plotly-cartesian-1.20.1.min.js |
95+
| CDN URL (tagged) | https://cdn.plot.ly/plotly-cartesian-1.20.2.js |
96+
| CDN URL (tagged minified) | https://cdn.plot.ly/plotly-cartesian-1.20.2.min.js |
9797
| CommonJS | `require('plotly.js/lib/index-cartesian')` |
9898

9999
| Raw size | Minified size | Minified + gzip size |
100100
|------|-----------------|------------------------|
101-
| 1.8 MB | 677.1 kB | 217.7 kB |
101+
| 1.8 MB | 677.2 kB | 217.8 kB |
102102

103103
### plotly.js geo
104104

@@ -110,13 +110,13 @@ The `geo` partial bundle contains the `scatter`, `scattergeo` and `choropleth` t
110110
| dist bundle (minified) | `dist/plotly-geo.min.js` |
111111
| CDN URL (latest) | https://cdn.plot.ly/plotly-geo-latest.js |
112112
| CDN URL (latest minified) | https://cdn.plot.ly/plotly-geo-latest.min.js |
113-
| CDN URL (tagged) | https://cdn.plot.ly/plotly-geo-1.20.1.js |
114-
| CDN URL (tagged minified) | https://cdn.plot.ly/plotly-geo-1.20.1.min.js |
113+
| CDN URL (tagged) | https://cdn.plot.ly/plotly-geo-1.20.2.js |
114+
| CDN URL (tagged minified) | https://cdn.plot.ly/plotly-geo-1.20.2.min.js |
115115
| CommonJS | `require('plotly.js/lib/index-geo')` |
116116

117117
| Raw size | Minified size | Minified + gzip size |
118118
|------|-----------------|------------------------|
119-
| 1.6 MB | 634.9 kB | 207.1 kB |
119+
| 1.6 MB | 635 kB | 207.1 kB |
120120

121121
### plotly.js gl3d
122122

@@ -128,8 +128,8 @@ The `gl3d` partial bundle contains the `scatter`, `scatter3d`, `surface` and `me
128128
| dist bundle (minified) | `dist/plotly-gl3d.min.js` |
129129
| CDN URL (latest) | https://cdn.plot.ly/plotly-gl3d-latest.js |
130130
| CDN URL (latest minified) | https://cdn.plot.ly/plotly-gl3d-latest.min.js |
131-
| CDN URL (tagged) | https://cdn.plot.ly/plotly-gl3d-1.20.1.js |
132-
| CDN URL (tagged minified) | https://cdn.plot.ly/plotly-gl3d-1.20.1.min.js |
131+
| CDN URL (tagged) | https://cdn.plot.ly/plotly-gl3d-1.20.2.js |
132+
| CDN URL (tagged minified) | https://cdn.plot.ly/plotly-gl3d-1.20.2.min.js |
133133
| CommonJS | `require('plotly.js/lib/index-gl3d')` |
134134

135135
| Raw size | Minified size | Minified + gzip size |
@@ -146,13 +146,13 @@ The `gl2d` partial bundle contains the `scatter`, `scattergl`, `pointcloud`, `he
146146
| dist bundle (minified) | `dist/plotly-gl2d.min.js` |
147147
| CDN URL (latest) | https://cdn.plot.ly/plotly-gl2d-latest.js |
148148
| CDN URL (latest minified) | https://cdn.plot.ly/plotly-gl2d-latest.min.js |
149-
| CDN URL (tagged) | https://cdn.plot.ly/plotly-gl2d-1.20.1.js |
150-
| CDN URL (tagged minified) | https://cdn.plot.ly/plotly-gl2d-1.20.1.min.js |
149+
| CDN URL (tagged) | https://cdn.plot.ly/plotly-gl2d-1.20.2.js |
150+
| CDN URL (tagged minified) | https://cdn.plot.ly/plotly-gl2d-1.20.2.min.js |
151151
| CommonJS | `require('plotly.js/lib/index-gl2d')` |
152152

153153
| Raw size | Minified size | Minified + gzip size |
154154
|------|-----------------|------------------------|
155-
| 2.2 MB | 928.8 kB | 290.7 kB |
155+
| 2.2 MB | 928.9 kB | 290.7 kB |
156156

157157
### plotly.js mapbox
158158

@@ -164,8 +164,8 @@ The `mapbox` partial bundle contains the `scatter` and `scattermapbox` trace mod
164164
| dist bundle (minified) | `dist/plotly-mapbox.min.js` |
165165
| CDN URL (latest) | https://cdn.plot.ly/plotly-mapbox-latest.js |
166166
| CDN URL (latest minified) | https://cdn.plot.ly/plotly-mapbox-latest.min.js |
167-
| CDN URL (tagged) | https://cdn.plot.ly/plotly-mapbox-1.20.1.js |
168-
| CDN URL (tagged minified) | https://cdn.plot.ly/plotly-mapbox-1.20.1.min.js |
167+
| CDN URL (tagged) | https://cdn.plot.ly/plotly-mapbox-1.20.2.js |
168+
| CDN URL (tagged minified) | https://cdn.plot.ly/plotly-mapbox-1.20.2.min.js |
169169
| CommonJS | `require('plotly.js/lib/index-mapbox')` |
170170

171171
| Raw size | Minified size | Minified + gzip size |
@@ -182,13 +182,13 @@ The `finance` partial bundle contains the `scatter`, `bar`, `histogram`, `pie`,
182182
| dist bundle (minified) | `dist/plotly-finance.min.js` |
183183
| CDN URL (latest) | https://cdn.plot.ly/plotly-finance-latest.js |
184184
| CDN URL (latest minified) | https://cdn.plot.ly/plotly-finance-latest.min.js |
185-
| CDN URL (tagged) | https://cdn.plot.ly/plotly-finance-1.20.1.js |
186-
| CDN URL (tagged minified) | https://cdn.plot.ly/plotly-finance-1.20.1.min.js |
185+
| CDN URL (tagged) | https://cdn.plot.ly/plotly-finance-1.20.2.js |
186+
| CDN URL (tagged minified) | https://cdn.plot.ly/plotly-finance-1.20.2.min.js |
187187
| CommonJS | `require('plotly.js/lib/index-finance')` |
188188

189189
| Raw size | Minified size | Minified + gzip size |
190190
|------|-----------------|------------------------|
191-
| 1.6 MB | 631.6 kB | 203.4 kB |
191+
| 1.6 MB | 631.7 kB | 203.5 kB |
192192

193193
----------------
194194

dist/npm-ls.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "plotly.js",
3-
"version": "1.20.1",
3+
"version": "1.20.2",
44
"dependencies": {
55
"3d-view": {
66
"version": "2.0.0",

dist/plotly-basic.js

+17-7
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* plotly.js (basic) v1.20.1
2+
* plotly.js (basic) v1.20.2
33
* Copyright 2012-2016, Plotly, Inc.
44
* All rights reserved.
55
* Licensed under the MIT license
@@ -19798,9 +19798,18 @@ function handleCartesian(gd, ev) {
1979819798
}
1979919799
}
1980019800
else {
19801-
var rangeNow = ax.range;
19802-
aobj[axName + '.range[0]'] = r0 * rangeNow[0] + r1 * rangeNow[1];
19803-
aobj[axName + '.range[1]'] = r0 * rangeNow[1] + r1 * rangeNow[0];
19801+
var rangeNow = [
19802+
ax.r2l(ax.range[0]),
19803+
ax.r2l(ax.range[1]),
19804+
];
19805+
19806+
var rangeNew = [
19807+
r0 * rangeNow[0] + r1 * rangeNow[1],
19808+
r0 * rangeNow[1] + r1 * rangeNow[0]
19809+
];
19810+
19811+
aobj[axName + '.range[0]'] = ax.l2r(rangeNew[0]);
19812+
aobj[axName + '.range[1]'] = ax.l2r(rangeNew[1]);
1980419813
}
1980519814
}
1980619815
}
@@ -25295,7 +25304,7 @@ exports.svgAttrs = {
2529525304
var Plotly = require('./plotly');
2529625305

2529725306
// package version injected by `npm run preprocess`
25298-
exports.version = '1.20.1';
25307+
exports.version = '1.20.2';
2529925308

2530025309
// inject promise polyfill
2530125310
require('es6-promise').polyfill();
@@ -46312,17 +46321,18 @@ module.exports = function hoverPoints(pointData, xval, yval, hovermode) {
4631246321
if(Color.opacity(mc)) pointData.color = mc;
4631346322
else if(Color.opacity(mlc) && mlw) pointData.color = mlc;
4631446323

46324+
var size = (trace.base) ? di.b + di.s : di.s;
4631546325
if(trace.orientation === 'h') {
4631646326
pointData.x0 = pointData.x1 = xa.c2p(di.x, true);
46317-
pointData.xLabelVal = di.b + di.s;
46327+
pointData.xLabelVal = size;
4631846328

4631946329
pointData.y0 = ya.c2p(barPos(di) - barDelta, true);
4632046330
pointData.y1 = ya.c2p(barPos(di) + barDelta, true);
4632146331
pointData.yLabelVal = di.p;
4632246332
}
4632346333
else {
4632446334
pointData.y0 = pointData.y1 = ya.c2p(di.y, true);
46325-
pointData.yLabelVal = di.b + di.s;
46335+
pointData.yLabelVal = size;
4632646336

4632746337
pointData.x0 = xa.c2p(barPos(di) - barDelta, true);
4632846338
pointData.x1 = xa.c2p(barPos(di) + barDelta, true);

dist/plotly-basic.min.js

+6-6
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/plotly-cartesian.js

+17-7
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* plotly.js (cartesian) v1.20.1
2+
* plotly.js (cartesian) v1.20.2
33
* Copyright 2012-2016, Plotly, Inc.
44
* All rights reserved.
55
* Licensed under the MIT license
@@ -19896,9 +19896,18 @@ function handleCartesian(gd, ev) {
1989619896
}
1989719897
}
1989819898
else {
19899-
var rangeNow = ax.range;
19900-
aobj[axName + '.range[0]'] = r0 * rangeNow[0] + r1 * rangeNow[1];
19901-
aobj[axName + '.range[1]'] = r0 * rangeNow[1] + r1 * rangeNow[0];
19899+
var rangeNow = [
19900+
ax.r2l(ax.range[0]),
19901+
ax.r2l(ax.range[1]),
19902+
];
19903+
19904+
var rangeNew = [
19905+
r0 * rangeNow[0] + r1 * rangeNow[1],
19906+
r0 * rangeNow[1] + r1 * rangeNow[0]
19907+
];
19908+
19909+
aobj[axName + '.range[0]'] = ax.l2r(rangeNew[0]);
19910+
aobj[axName + '.range[1]'] = ax.l2r(rangeNew[1]);
1990219911
}
1990319912
}
1990419913
}
@@ -25393,7 +25402,7 @@ exports.svgAttrs = {
2539325402
var Plotly = require('./plotly');
2539425403

2539525404
// package version injected by `npm run preprocess`
25396-
exports.version = '1.20.1';
25405+
exports.version = '1.20.2';
2539725406

2539825407
// inject promise polyfill
2539925408
require('es6-promise').polyfill();
@@ -47532,17 +47541,18 @@ module.exports = function hoverPoints(pointData, xval, yval, hovermode) {
4753247541
if(Color.opacity(mc)) pointData.color = mc;
4753347542
else if(Color.opacity(mlc) && mlw) pointData.color = mlc;
4753447543

47544+
var size = (trace.base) ? di.b + di.s : di.s;
4753547545
if(trace.orientation === 'h') {
4753647546
pointData.x0 = pointData.x1 = xa.c2p(di.x, true);
47537-
pointData.xLabelVal = di.b + di.s;
47547+
pointData.xLabelVal = size;
4753847548

4753947549
pointData.y0 = ya.c2p(barPos(di) - barDelta, true);
4754047550
pointData.y1 = ya.c2p(barPos(di) + barDelta, true);
4754147551
pointData.yLabelVal = di.p;
4754247552
}
4754347553
else {
4754447554
pointData.y0 = pointData.y1 = ya.c2p(di.y, true);
47545-
pointData.yLabelVal = di.b + di.s;
47555+
pointData.yLabelVal = size;
4754647556

4754747557
pointData.x0 = xa.c2p(barPos(di) - barDelta, true);
4754847558
pointData.x1 = xa.c2p(barPos(di) + barDelta, true);

dist/plotly-cartesian.min.js

+10-10
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/plotly-finance.js

+17-7
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* plotly.js (finance) v1.20.1
2+
* plotly.js (finance) v1.20.2
33
* Copyright 2012-2016, Plotly, Inc.
44
* All rights reserved.
55
* Licensed under the MIT license
@@ -19840,9 +19840,18 @@ function handleCartesian(gd, ev) {
1984019840
}
1984119841
}
1984219842
else {
19843-
var rangeNow = ax.range;
19844-
aobj[axName + '.range[0]'] = r0 * rangeNow[0] + r1 * rangeNow[1];
19845-
aobj[axName + '.range[1]'] = r0 * rangeNow[1] + r1 * rangeNow[0];
19843+
var rangeNow = [
19844+
ax.r2l(ax.range[0]),
19845+
ax.r2l(ax.range[1]),
19846+
];
19847+
19848+
var rangeNew = [
19849+
r0 * rangeNow[0] + r1 * rangeNow[1],
19850+
r0 * rangeNow[1] + r1 * rangeNow[0]
19851+
];
19852+
19853+
aobj[axName + '.range[0]'] = ax.l2r(rangeNew[0]);
19854+
aobj[axName + '.range[1]'] = ax.l2r(rangeNew[1]);
1984619855
}
1984719856
}
1984819857
}
@@ -25337,7 +25346,7 @@ exports.svgAttrs = {
2533725346
var Plotly = require('./plotly');
2533825347

2533925348
// package version injected by `npm run preprocess`
25340-
exports.version = '1.20.1';
25349+
exports.version = '1.20.2';
2534125350

2534225351
// inject promise polyfill
2534325352
require('es6-promise').polyfill();
@@ -46354,17 +46363,18 @@ module.exports = function hoverPoints(pointData, xval, yval, hovermode) {
4635446363
if(Color.opacity(mc)) pointData.color = mc;
4635546364
else if(Color.opacity(mlc) && mlw) pointData.color = mlc;
4635646365

46366+
var size = (trace.base) ? di.b + di.s : di.s;
4635746367
if(trace.orientation === 'h') {
4635846368
pointData.x0 = pointData.x1 = xa.c2p(di.x, true);
46359-
pointData.xLabelVal = di.b + di.s;
46369+
pointData.xLabelVal = size;
4636046370

4636146371
pointData.y0 = ya.c2p(barPos(di) - barDelta, true);
4636246372
pointData.y1 = ya.c2p(barPos(di) + barDelta, true);
4636346373
pointData.yLabelVal = di.p;
4636446374
}
4636546375
else {
4636646376
pointData.y0 = pointData.y1 = ya.c2p(di.y, true);
46367-
pointData.yLabelVal = di.b + di.s;
46377+
pointData.yLabelVal = size;
4636846378

4636946379
pointData.x0 = xa.c2p(barPos(di) - barDelta, true);
4637046380
pointData.x1 = xa.c2p(barPos(di) + barDelta, true);

dist/plotly-finance.min.js

+6-6
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/plotly-geo-assets.js

+2-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/plotly-geo.js

+14-5
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* plotly.js (geo) v1.20.1
2+
* plotly.js (geo) v1.20.2
33
* Copyright 2012-2016, Plotly, Inc.
44
* All rights reserved.
55
* Licensed under the MIT license
@@ -20577,9 +20577,18 @@ function handleCartesian(gd, ev) {
2057720577
}
2057820578
}
2057920579
else {
20580-
var rangeNow = ax.range;
20581-
aobj[axName + '.range[0]'] = r0 * rangeNow[0] + r1 * rangeNow[1];
20582-
aobj[axName + '.range[1]'] = r0 * rangeNow[1] + r1 * rangeNow[0];
20580+
var rangeNow = [
20581+
ax.r2l(ax.range[0]),
20582+
ax.r2l(ax.range[1]),
20583+
];
20584+
20585+
var rangeNew = [
20586+
r0 * rangeNow[0] + r1 * rangeNow[1],
20587+
r0 * rangeNow[1] + r1 * rangeNow[0]
20588+
];
20589+
20590+
aobj[axName + '.range[0]'] = ax.l2r(rangeNew[0]);
20591+
aobj[axName + '.range[1]'] = ax.l2r(rangeNew[1]);
2058320592
}
2058420593
}
2058520594
}
@@ -26074,7 +26083,7 @@ exports.svgAttrs = {
2607426083
var Plotly = require('./plotly');
2607526084

2607626085
// package version injected by `npm run preprocess`
26077-
exports.version = '1.20.1';
26086+
exports.version = '1.20.2';
2607826087

2607926088
// inject promise polyfill
2608026089
require('es6-promise').polyfill();

dist/plotly-geo.min.js

+4-4
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)