Skip to content

Commit d9caee9

Browse files
committed
1.20.3
1 parent a23a460 commit d9caee9

23 files changed

+269
-179
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-latest.min.js OR https://cdn.plot.ly/plotly-1.20.2.min.js
40+
- using CDN URL https://cdn.plot.ly/plotly-latest.min.js OR https://cdn.plot.ly/plotly-1.20.3.min.js
4141

4242
or as raw javascript:
4343
- using dist file `dist/plotly.js`
44-
- using CDN URL https://cdn.plot.ly/plotly-latest.js OR https://cdn.plot.ly/plotly-1.20.2.js
44+
- using CDN URL https://cdn.plot.ly/plotly-latest.js OR https://cdn.plot.ly/plotly-1.20.3.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`
@@ -50,7 +50,7 @@ The main plotly.js bundle weights in at:
5050

5151
| plotly.js | plotly.min.js | plotly.min.js + gzip | plotly-with-meta.js |
5252
|-----------|---------------|----------------------|---------------------|
53-
| 4.2 MB | 1.7 MB | 526.2 kB | 4.3 MB |
53+
| 4.2 MB | 1.7 MB | 526.3 kB | 4.3 MB |
5454

5555
## Partial bundles
5656

@@ -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.2.js |
78-
| CDN URL (tagged minified) | https://cdn.plot.ly/plotly-basic-1.20.2.min.js |
77+
| CDN URL (tagged) | https://cdn.plot.ly/plotly-basic-1.20.3.js |
78+
| CDN URL (tagged minified) | https://cdn.plot.ly/plotly-basic-1.20.3.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.5 kB | 196.6 kB |
83+
| 1.6 MB | 606.6 kB | 196.6 kB |
8484

8585
### plotly.js cartesian
8686

@@ -92,8 +92,8 @@ 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.2.js |
96-
| CDN URL (tagged minified) | https://cdn.plot.ly/plotly-cartesian-1.20.2.min.js |
95+
| CDN URL (tagged) | https://cdn.plot.ly/plotly-cartesian-1.20.3.js |
96+
| CDN URL (tagged minified) | https://cdn.plot.ly/plotly-cartesian-1.20.3.min.js |
9797
| CommonJS | `require('plotly.js/lib/index-cartesian')` |
9898

9999
| Raw size | Minified size | Minified + gzip size |
@@ -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.2.js |
114-
| CDN URL (tagged minified) | https://cdn.plot.ly/plotly-geo-1.20.2.min.js |
113+
| CDN URL (tagged) | https://cdn.plot.ly/plotly-geo-1.20.3.js |
114+
| CDN URL (tagged minified) | https://cdn.plot.ly/plotly-geo-1.20.3.min.js |
115115
| CommonJS | `require('plotly.js/lib/index-geo')` |
116116

117117
| Raw size | Minified size | Minified + gzip size |
118118
|------|-----------------|------------------------|
119-
| 1.6 MB | 635 kB | 207.1 kB |
119+
| 1.6 MB | 635.1 kB | 207.2 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.2.js |
132-
| CDN URL (tagged minified) | https://cdn.plot.ly/plotly-gl3d-1.20.2.min.js |
131+
| CDN URL (tagged) | https://cdn.plot.ly/plotly-gl3d-1.20.3.js |
132+
| CDN URL (tagged minified) | https://cdn.plot.ly/plotly-gl3d-1.20.3.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.2.js |
150-
| CDN URL (tagged minified) | https://cdn.plot.ly/plotly-gl2d-1.20.2.min.js |
149+
| CDN URL (tagged) | https://cdn.plot.ly/plotly-gl2d-1.20.3.js |
150+
| CDN URL (tagged minified) | https://cdn.plot.ly/plotly-gl2d-1.20.3.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.9 kB | 290.7 kB |
155+
| 2.2 MB | 929 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.2.js |
168-
| CDN URL (tagged minified) | https://cdn.plot.ly/plotly-mapbox-1.20.2.min.js |
167+
| CDN URL (tagged) | https://cdn.plot.ly/plotly-mapbox-1.20.3.js |
168+
| CDN URL (tagged minified) | https://cdn.plot.ly/plotly-mapbox-1.20.3.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.2.js |
186-
| CDN URL (tagged minified) | https://cdn.plot.ly/plotly-finance-1.20.2.min.js |
185+
| CDN URL (tagged) | https://cdn.plot.ly/plotly-finance-1.20.3.js |
186+
| CDN URL (tagged minified) | https://cdn.plot.ly/plotly-finance-1.20.3.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.7 kB | 203.5 kB |
191+
| 1.6 MB | 631.8 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.2",
3+
"version": "1.20.3",
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.2
2+
* plotly.js (basic) v1.20.3
33
* Copyright 2012-2016, Plotly, Inc.
44
* All rights reserved.
55
* Licensed under the MIT license
@@ -25304,7 +25304,7 @@ exports.svgAttrs = {
2530425304
var Plotly = require('./plotly');
2530525305

2530625306
// package version injected by `npm run preprocess`
25307-
exports.version = '1.20.2';
25307+
exports.version = '1.20.3';
2530825308

2530925309
// inject promise polyfill
2531025310
require('es6-promise').polyfill();
@@ -29955,8 +29955,7 @@ function checkMoveTracesArgs(gd, currentIndices, newIndices) {
2995529955
* @param newIndices
2995629956
*/
2995729957
function checkAddTracesArgs(gd, traces, newIndices) {
29958-
var i,
29959-
value;
29958+
var i, value;
2996029959

2996129960
// check that gd has attribute 'data' and 'data' is array
2996229961
if(!Array.isArray(gd.data)) {
@@ -30278,10 +30277,16 @@ Plotly.addTraces = function addTraces(gd, traces, newIndices) {
3027830277
if(!Array.isArray(traces)) {
3027930278
traces = [traces];
3028030279
}
30280+
30281+
// make sure traces do not repeat existing ones
30282+
traces = traces.map(function(trace) {
30283+
return Lib.extendFlat({}, trace);
30284+
});
30285+
3028130286
helpers.cleanData(traces, gd.data);
3028230287

3028330288
// add the traces to gd.data (no redrawing yet!)
30284-
for(i = 0; i < traces.length; i += 1) {
30289+
for(i = 0; i < traces.length; i++) {
3028530290
gd.data.push(traces[i]);
3028630291
}
3028730292

@@ -40893,11 +40898,12 @@ exports.manageCommandObserver = function(gd, container, commandList, onchange) {
4089340898
* 3. the same property must be affected by all commands
4089440899
*/
4089540900
exports.hasSimpleAPICommandBindings = function(gd, commandList, bindingsByValue) {
40901+
var i;
4089640902
var n = commandList.length;
4089740903

4089840904
var refBinding;
4089940905

40900-
for(var i = 0; i < n; i++) {
40906+
for(i = 0; i < n; i++) {
4090140907
var binding;
4090240908
var command = commandList[i];
4090340909
var method = command.method;
@@ -40948,7 +40954,11 @@ exports.hasSimpleAPICommandBindings = function(gd, commandList, bindingsByValue)
4094840954
binding = bindings[0];
4094940955
var value = binding.value;
4095040956
if(Array.isArray(value)) {
40951-
value = value[0];
40957+
if(value.length === 1) {
40958+
value = value[0];
40959+
} else {
40960+
return false;
40961+
}
4095240962
}
4095340963
if(bindingsByValue) {
4095440964
bindingsByValue[value] = i;

dist/plotly-basic.min.js

+5-5
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.2
2+
* plotly.js (cartesian) v1.20.3
33
* Copyright 2012-2016, Plotly, Inc.
44
* All rights reserved.
55
* Licensed under the MIT license
@@ -25402,7 +25402,7 @@ exports.svgAttrs = {
2540225402
var Plotly = require('./plotly');
2540325403

2540425404
// package version injected by `npm run preprocess`
25405-
exports.version = '1.20.2';
25405+
exports.version = '1.20.3';
2540625406

2540725407
// inject promise polyfill
2540825408
require('es6-promise').polyfill();
@@ -30053,8 +30053,7 @@ function checkMoveTracesArgs(gd, currentIndices, newIndices) {
3005330053
* @param newIndices
3005430054
*/
3005530055
function checkAddTracesArgs(gd, traces, newIndices) {
30056-
var i,
30057-
value;
30056+
var i, value;
3005830057

3005930058
// check that gd has attribute 'data' and 'data' is array
3006030059
if(!Array.isArray(gd.data)) {
@@ -30376,10 +30375,16 @@ Plotly.addTraces = function addTraces(gd, traces, newIndices) {
3037630375
if(!Array.isArray(traces)) {
3037730376
traces = [traces];
3037830377
}
30378+
30379+
// make sure traces do not repeat existing ones
30380+
traces = traces.map(function(trace) {
30381+
return Lib.extendFlat({}, trace);
30382+
});
30383+
3037930384
helpers.cleanData(traces, gd.data);
3038030385

3038130386
// add the traces to gd.data (no redrawing yet!)
30382-
for(i = 0; i < traces.length; i += 1) {
30387+
for(i = 0; i < traces.length; i++) {
3038330388
gd.data.push(traces[i]);
3038430389
}
3038530390

@@ -40991,11 +40996,12 @@ exports.manageCommandObserver = function(gd, container, commandList, onchange) {
4099140996
* 3. the same property must be affected by all commands
4099240997
*/
4099340998
exports.hasSimpleAPICommandBindings = function(gd, commandList, bindingsByValue) {
40999+
var i;
4099441000
var n = commandList.length;
4099541001

4099641002
var refBinding;
4099741003

40998-
for(var i = 0; i < n; i++) {
41004+
for(i = 0; i < n; i++) {
4099941005
var binding;
4100041006
var command = commandList[i];
4100141007
var method = command.method;
@@ -41046,7 +41052,11 @@ exports.hasSimpleAPICommandBindings = function(gd, commandList, bindingsByValue)
4104641052
binding = bindings[0];
4104741053
var value = binding.value;
4104841054
if(Array.isArray(value)) {
41049-
value = value[0];
41055+
if(value.length === 1) {
41056+
value = value[0];
41057+
} else {
41058+
return false;
41059+
}
4105041060
}
4105141061
if(bindingsByValue) {
4105241062
bindingsByValue[value] = i;

dist/plotly-cartesian.min.js

+12-12
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.2
2+
* plotly.js (finance) v1.20.3
33
* Copyright 2012-2016, Plotly, Inc.
44
* All rights reserved.
55
* Licensed under the MIT license
@@ -25346,7 +25346,7 @@ exports.svgAttrs = {
2534625346
var Plotly = require('./plotly');
2534725347

2534825348
// package version injected by `npm run preprocess`
25349-
exports.version = '1.20.2';
25349+
exports.version = '1.20.3';
2535025350

2535125351
// inject promise polyfill
2535225352
require('es6-promise').polyfill();
@@ -29997,8 +29997,7 @@ function checkMoveTracesArgs(gd, currentIndices, newIndices) {
2999729997
* @param newIndices
2999829998
*/
2999929999
function checkAddTracesArgs(gd, traces, newIndices) {
30000-
var i,
30001-
value;
30000+
var i, value;
3000230001

3000330002
// check that gd has attribute 'data' and 'data' is array
3000430003
if(!Array.isArray(gd.data)) {
@@ -30320,10 +30319,16 @@ Plotly.addTraces = function addTraces(gd, traces, newIndices) {
3032030319
if(!Array.isArray(traces)) {
3032130320
traces = [traces];
3032230321
}
30322+
30323+
// make sure traces do not repeat existing ones
30324+
traces = traces.map(function(trace) {
30325+
return Lib.extendFlat({}, trace);
30326+
});
30327+
3032330328
helpers.cleanData(traces, gd.data);
3032430329

3032530330
// add the traces to gd.data (no redrawing yet!)
30326-
for(i = 0; i < traces.length; i += 1) {
30331+
for(i = 0; i < traces.length; i++) {
3032730332
gd.data.push(traces[i]);
3032830333
}
3032930334

@@ -40935,11 +40940,12 @@ exports.manageCommandObserver = function(gd, container, commandList, onchange) {
4093540940
* 3. the same property must be affected by all commands
4093640941
*/
4093740942
exports.hasSimpleAPICommandBindings = function(gd, commandList, bindingsByValue) {
40943+
var i;
4093840944
var n = commandList.length;
4093940945

4094040946
var refBinding;
4094140947

40942-
for(var i = 0; i < n; i++) {
40948+
for(i = 0; i < n; i++) {
4094340949
var binding;
4094440950
var command = commandList[i];
4094540951
var method = command.method;
@@ -40990,7 +40996,11 @@ exports.hasSimpleAPICommandBindings = function(gd, commandList, bindingsByValue)
4099040996
binding = bindings[0];
4099140997
var value = binding.value;
4099240998
if(Array.isArray(value)) {
40993-
value = value[0];
40999+
if(value.length === 1) {
41000+
value = value[0];
41001+
} else {
41002+
return false;
41003+
}
4099441004
}
4099541005
if(bindingsByValue) {
4099641006
bindingsByValue[value] = i;

dist/plotly-finance.min.js

+5-5
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.

0 commit comments

Comments
 (0)