Skip to content

Commit 13c6f4a

Browse files
committed
1.16.4
1 parent c37eea7 commit 13c6f4a

20 files changed

+338
-163
lines changed

dist/README.md

+18-18
Original file line numberDiff line numberDiff line change
@@ -36,11 +36,11 @@ The main plotly.js bundle includes all the official (non-beta) trace modules.
3636

3737
It be can imported as minified javascript
3838
- using dist file `dist/plotly.min.js`
39-
- using CDN URL https://cdn.plot.ly/plotly-plotly-latest.min.js OR https://cdn.plot.ly/plotly-plotly-1.16.3.min.js
39+
- using CDN URL https://cdn.plot.ly/plotly-plotly-latest.min.js OR https://cdn.plot.ly/plotly-plotly-1.16.4.min.js
4040

4141
or as raw javascript:
4242
- using dist file `dist/plotly.js`
43-
- using CDN URL https://cdn.plot.ly/plotly-plotly-latest.js OR https://cdn.plot.ly/plotly-plotly-1.16.3.js
43+
- using CDN URL https://cdn.plot.ly/plotly-plotly-latest.js OR https://cdn.plot.ly/plotly-plotly-1.16.4.js
4444
- using CommonJS with `require('plotly.js')`
4545

4646
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`
@@ -49,7 +49,7 @@ The main plotly.js bundle weights in at:
4949

5050
| plotly.js | plotly.min.js | plotly.min.js + gzip | plotly-with-meta.js |
5151
|-----------|---------------|----------------------|---------------------|
52-
| 3.8 MB | 1.7 MB | 502.9 kB | 3.9 MB |
52+
| 3.8 MB | 1.7 MB | 503 kB | 3.9 MB |
5353

5454
## Partial bundles
5555

@@ -72,8 +72,8 @@ The `basic` partial bundle contains the `scatter`, `bar` and `pie` trace modules
7272
| dist bundle (minified) | `dist/plotly-basic.min.js` |
7373
| CDN URL (latest) | https://cdn.plot.ly/plotly-basic-latest.js |
7474
| CDN URL (latest minified) | https://cdn.plot.ly/plotly-basic-latest.min.js |
75-
| CDN URL (tagged) | https://cdn.plot.ly/plotly-basic-1.16.3.js |
76-
| CDN URL (tagged minified) | https://cdn.plot.ly/plotly-basic-1.16.3.min.js |
75+
| CDN URL (tagged) | https://cdn.plot.ly/plotly-basic-1.16.4.js |
76+
| CDN URL (tagged minified) | https://cdn.plot.ly/plotly-basic-1.16.4.min.js |
7777
| CommonJS | `require('plotly.js/lib/index-basic')` |
7878

7979
| Raw size | Minified size | Minified + gzip size |
@@ -90,8 +90,8 @@ The `cartesian` partial bundle contains the `scatter`, `bar`, `box`, `heatmap`,
9090
| dist bundle (minified) | `dist/plotly-cartesian.min.js` |
9191
| CDN URL (latest) | https://cdn.plot.ly/plotly-cartesian-latest.js |
9292
| CDN URL (latest minified) | https://cdn.plot.ly/plotly-cartesian-latest.min.js |
93-
| CDN URL (tagged) | https://cdn.plot.ly/plotly-cartesian-1.16.3.js |
94-
| CDN URL (tagged minified) | https://cdn.plot.ly/plotly-cartesian-1.16.3.min.js |
93+
| CDN URL (tagged) | https://cdn.plot.ly/plotly-cartesian-1.16.4.js |
94+
| CDN URL (tagged minified) | https://cdn.plot.ly/plotly-cartesian-1.16.4.min.js |
9595
| CommonJS | `require('plotly.js/lib/index-cartesian')` |
9696

9797
| Raw size | Minified size | Minified + gzip size |
@@ -108,8 +108,8 @@ The `geo` partial bundle contains the `scatter`, `scattergeo` and `choropleth` t
108108
| dist bundle (minified) | `dist/plotly-geo.min.js` |
109109
| CDN URL (latest) | https://cdn.plot.ly/plotly-geo-latest.js |
110110
| CDN URL (latest minified) | https://cdn.plot.ly/plotly-geo-latest.min.js |
111-
| CDN URL (tagged) | https://cdn.plot.ly/plotly-geo-1.16.3.js |
112-
| CDN URL (tagged minified) | https://cdn.plot.ly/plotly-geo-1.16.3.min.js |
111+
| CDN URL (tagged) | https://cdn.plot.ly/plotly-geo-1.16.4.js |
112+
| CDN URL (tagged minified) | https://cdn.plot.ly/plotly-geo-1.16.4.min.js |
113113
| CommonJS | `require('plotly.js/lib/index-geo')` |
114114

115115
| Raw size | Minified size | Minified + gzip size |
@@ -126,13 +126,13 @@ The `gl3d` partial bundle contains the `scatter`, `scatter3d`, `surface` and `me
126126
| dist bundle (minified) | `dist/plotly-gl3d.min.js` |
127127
| CDN URL (latest) | https://cdn.plot.ly/plotly-gl3d-latest.js |
128128
| CDN URL (latest minified) | https://cdn.plot.ly/plotly-gl3d-latest.min.js |
129-
| CDN URL (tagged) | https://cdn.plot.ly/plotly-gl3d-1.16.3.js |
130-
| CDN URL (tagged minified) | https://cdn.plot.ly/plotly-gl3d-1.16.3.min.js |
129+
| CDN URL (tagged) | https://cdn.plot.ly/plotly-gl3d-1.16.4.js |
130+
| CDN URL (tagged minified) | https://cdn.plot.ly/plotly-gl3d-1.16.4.min.js |
131131
| CommonJS | `require('plotly.js/lib/index-gl3d')` |
132132

133133
| Raw size | Minified size | Minified + gzip size |
134134
|------|-----------------|------------------------|
135-
| 2.3 MB | 985.2 kB | 310.7 kB |
135+
| 2.3 MB | 985.6 kB | 310.8 kB |
136136

137137
### plotly.js gl2d
138138

@@ -144,13 +144,13 @@ The `gl2d` partial bundle contains the `scatter`, `scattergl`, `heatmapgl` and `
144144
| dist bundle (minified) | `dist/plotly-gl2d.min.js` |
145145
| CDN URL (latest) | https://cdn.plot.ly/plotly-gl2d-latest.js |
146146
| CDN URL (latest minified) | https://cdn.plot.ly/plotly-gl2d-latest.min.js |
147-
| CDN URL (tagged) | https://cdn.plot.ly/plotly-gl2d-1.16.3.js |
148-
| CDN URL (tagged minified) | https://cdn.plot.ly/plotly-gl2d-1.16.3.min.js |
147+
| CDN URL (tagged) | https://cdn.plot.ly/plotly-gl2d-1.16.4.js |
148+
| CDN URL (tagged minified) | https://cdn.plot.ly/plotly-gl2d-1.16.4.min.js |
149149
| CommonJS | `require('plotly.js/lib/index-gl2d')` |
150150

151151
| Raw size | Minified size | Minified + gzip size |
152152
|------|-----------------|------------------------|
153-
| 2 MB | 855.5 kB | 271.2 kB |
153+
| 2 MB | 855.8 kB | 271.3 kB |
154154

155155
### plotly.js mapbox
156156

@@ -162,13 +162,13 @@ The `mapbox` partial bundle contains the `scatter` and `scattermapbox` trace mod
162162
| dist bundle (minified) | `dist/plotly-mapbox.min.js` |
163163
| CDN URL (latest) | https://cdn.plot.ly/plotly-mapbox-latest.js |
164164
| CDN URL (latest minified) | https://cdn.plot.ly/plotly-mapbox-latest.min.js |
165-
| CDN URL (tagged) | https://cdn.plot.ly/plotly-mapbox-1.16.3.js |
166-
| CDN URL (tagged minified) | https://cdn.plot.ly/plotly-mapbox-1.16.3.min.js |
165+
| CDN URL (tagged) | https://cdn.plot.ly/plotly-mapbox-1.16.4.js |
166+
| CDN URL (tagged minified) | https://cdn.plot.ly/plotly-mapbox-1.16.4.min.js |
167167
| CommonJS | `require('plotly.js/lib/index-mapbox')` |
168168

169169
| Raw size | Minified size | Minified + gzip size |
170170
|------|-----------------|------------------------|
171-
| 2.4 MB | 1017.5 kB | 298.9 kB |
171+
| 2.4 MB | 1017.6 kB | 299 kB |
172172

173173
----------------
174174

dist/plotly-basic.js

+4-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* plotly.js (basic) v1.16.3
2+
* plotly.js (basic) v1.16.4
33
* Copyright 2012-2016, Plotly, Inc.
44
* All rights reserved.
55
* Licensed under the MIT license
@@ -23237,7 +23237,7 @@ exports.svgAttrs = {
2323723237
var Plotly = require('./plotly');
2323823238

2323923239
// package version injected by `npm run preprocess`
23240-
exports.version = '1.16.3';
23240+
exports.version = '1.16.4';
2324123241

2324223242
// plot api
2324323243
exports.plot = Plotly.plot;
@@ -29776,6 +29776,8 @@ module.exports = {
2977629776
topojsonURL: 'https://cdn.plot.ly/',
2977729777

2977829778
// Mapbox access token (required to plot mapbox trace types)
29779+
// If using an Mapbox Atlas server, set this option to '',
29780+
// so that plotly.js won't attempt to authenticate to the public Mapbox server.
2977929781
mapboxAccessToken: null,
2978029782

2978129783
// Turn all console logging on or off (errors will be thrown)

dist/plotly-basic.min.js

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

dist/plotly-cartesian.js

+4-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* plotly.js (cartesian) v1.16.3
2+
* plotly.js (cartesian) v1.16.4
33
* Copyright 2012-2016, Plotly, Inc.
44
* All rights reserved.
55
* Licensed under the MIT license
@@ -23321,7 +23321,7 @@ exports.svgAttrs = {
2332123321
var Plotly = require('./plotly');
2332223322

2332323323
// package version injected by `npm run preprocess`
23324-
exports.version = '1.16.3';
23324+
exports.version = '1.16.4';
2332523325

2332623326
// plot api
2332723327
exports.plot = Plotly.plot;
@@ -29884,6 +29884,8 @@ module.exports = {
2988429884
topojsonURL: 'https://cdn.plot.ly/',
2988529885

2988629886
// Mapbox access token (required to plot mapbox trace types)
29887+
// If using an Mapbox Atlas server, set this option to '',
29888+
// so that plotly.js won't attempt to authenticate to the public Mapbox server.
2988729889
mapboxAccessToken: null,
2988829890

2988929891
// Turn all console logging on or off (errors will be thrown)

dist/plotly-cartesian.min.js

+2-2
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

+4-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* plotly.js (geo) v1.16.3
2+
* plotly.js (geo) v1.16.4
33
* Copyright 2012-2016, Plotly, Inc.
44
* All rights reserved.
55
* Licensed under the MIT license
@@ -24045,7 +24045,7 @@ exports.svgAttrs = {
2404524045
var Plotly = require('./plotly');
2404624046

2404724047
// package version injected by `npm run preprocess`
24048-
exports.version = '1.16.3';
24048+
exports.version = '1.16.4';
2404924049

2405024050
// plot api
2405124051
exports.plot = Plotly.plot;
@@ -30720,6 +30720,8 @@ module.exports = {
3072030720
topojsonURL: 'https://cdn.plot.ly/',
3072130721

3072230722
// Mapbox access token (required to plot mapbox trace types)
30723+
// If using an Mapbox Atlas server, set this option to '',
30724+
// so that plotly.js won't attempt to authenticate to the public Mapbox server.
3072330725
mapboxAccessToken: null,
3072430726

3072530727
// Turn all console logging on or off (errors will be thrown)

dist/plotly-geo.min.js

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

dist/plotly-gl2d.js

+36-4
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* plotly.js (gl2d) v1.16.3
2+
* plotly.js (gl2d) v1.16.4
33
* Copyright 2012-2016, Plotly, Inc.
44
* All rights reserved.
55
* Licensed under the MIT license
@@ -24676,6 +24676,7 @@ var GLError = require("./lib/GLError")
2467624676
//Shader object
2467724677
function Shader(gl) {
2467824678
this.gl = gl
24679+
this.gl.lastAttribCount = 0 // fixme where else should we store info, safe but not nice on the gl object
2467924680

2468024681
//Default initialize these to null
2468124682
this._vref =
@@ -24695,10 +24696,38 @@ proto.bind = function() {
2469524696
if(!this.program) {
2469624697
this._relink()
2469724698
}
24699+
24700+
// ensuring that we have the right number of enabled vertex attributes
24701+
var i
24702+
var newAttribCount = this.gl.getProgramParameter(this.program, this.gl.ACTIVE_ATTRIBUTES) // more robust approach
24703+
//var newAttribCount = Object.keys(this.attributes).length // avoids the probably immaterial introspection slowdown
24704+
var oldAttribCount = this.gl.lastAttribCount
24705+
if(newAttribCount > oldAttribCount) {
24706+
for(i = oldAttribCount; i < newAttribCount; i++) {
24707+
this.gl.enableVertexAttribArray(i)
24708+
}
24709+
} else if(oldAttribCount > newAttribCount) {
24710+
for(i = newAttribCount; i < oldAttribCount; i++) {
24711+
this.gl.disableVertexAttribArray(i)
24712+
}
24713+
}
24714+
24715+
this.gl.lastAttribCount = newAttribCount
24716+
2469824717
this.gl.useProgram(this.program)
2469924718
}
2470024719

2470124720
proto.dispose = function() {
24721+
24722+
// disabling vertex attributes so new shader starts with zero
24723+
// and it's also useful if all shaders are disposed but the
24724+
// gl context is reused for subsequent replotting
24725+
var oldAttribCount = this.gl.lastAttribCount
24726+
for (var i = 0; i < oldAttribCount; i++) {
24727+
this.gl.disableVertexAttribArray(i)
24728+
}
24729+
this.gl.lastAttribCount = 0
24730+
2470224731
if(this._fref) {
2470324732
this._fref.dispose()
2470424733
}
@@ -24785,7 +24814,8 @@ proto.update = function(
2478524814
var attributeUnpacked = []
2478624815
var attributeNames = []
2478724816
var attributeLocations = []
24788-
for(var i=0; i<attributes.length; ++i) {
24817+
var i
24818+
for(i=0; i<attributes.length; ++i) {
2478924819
var attr = attributes[i]
2479024820
if(attr.type.indexOf('mat') >= 0) {
2479124821
var size = attr.type.charAt(attr.type.length-1)|0
@@ -24825,7 +24855,7 @@ proto.update = function(
2482524855

2482624856
//For all unspecified attributes, assign them lexicographically min attribute
2482724857
var curLocation = 0
24828-
for(var i=0; i<attributeLocations.length; ++i) {
24858+
for(i=0; i<attributeLocations.length; ++i) {
2482924859
if(attributeLocations[i] < 0) {
2483024860
while(attributeLocations.indexOf(curLocation) >= 0) {
2483124861
curLocation += 1
@@ -46493,7 +46523,7 @@ exports.svgAttrs = {
4649346523
var Plotly = require('./plotly');
4649446524

4649546525
// package version injected by `npm run preprocess`
46496-
exports.version = '1.16.3';
46526+
exports.version = '1.16.4';
4649746527

4649846528
// plot api
4649946529
exports.plot = Plotly.plot;
@@ -53251,6 +53281,8 @@ module.exports = {
5325153281
topojsonURL: 'https://cdn.plot.ly/',
5325253282

5325353283
// Mapbox access token (required to plot mapbox trace types)
53284+
// If using an Mapbox Atlas server, set this option to '',
53285+
// so that plotly.js won't attempt to authenticate to the public Mapbox server.
5325453286
mapboxAccessToken: null,
5325553287

5325653288
// Turn all console logging on or off (errors will be thrown)

dist/plotly-gl2d.min.js

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

0 commit comments

Comments
 (0)