Skip to content

Commit

Permalink
1.58.5
Browse files Browse the repository at this point in the history
  • Loading branch information
archmoj committed Jul 6, 2021
1 parent c8014f8 commit 23fb7fa
Show file tree
Hide file tree
Showing 22 changed files with 322 additions and 187 deletions.
40 changes: 20 additions & 20 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.58.4.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.58.5.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.58.4.min.js
- using CDN URL https://cdn.plot.ly/plotly-latest.min.js OR https://cdn.plot.ly/plotly-1.58.5.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.58.4.js
- using CDN URL https://cdn.plot.ly/plotly-latest.js OR https://cdn.plot.ly/plotly-1.58.5.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://plotly.com/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 |
|-----------|---------------|----------------------|---------------------|
| 7.2 MB | 3.3 MB | 1007.2 kB | 7.5 MB |
| 7.2 MB | 3.3 MB | 1007.3 kB | 7.5 MB |

## Partial bundles

Expand All @@ -114,16 +114,16 @@ The `basic` partial bundle contains trace modules `scatter`, `bar` and `pie`.

| Raw size | Minified size | Minified + gzip size |
|------|-----------------|------------------------|
| 2.6 MB | 937.1 kB | 307.9 kB |
| 2.6 MB | 937.1 kB | 308 kB |

#### CDN links

| Flavor | URL |
| ------ | --- |
| 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.58.4.js |
| Tagged minified | https://cdn.plot.ly/plotly-basic-1.58.4.min.js |
| Tagged | https://cdn.plot.ly/plotly-basic-1.58.5.js |
| Tagged minified | https://cdn.plot.ly/plotly-basic-1.58.5.min.js |

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

Expand Down Expand Up @@ -175,8 +175,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.58.4.js |
| Tagged minified | https://cdn.plot.ly/plotly-cartesian-1.58.4.min.js |
| Tagged | https://cdn.plot.ly/plotly-cartesian-1.58.5.js |
| Tagged minified | https://cdn.plot.ly/plotly-cartesian-1.58.5.min.js |

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

Expand Down Expand Up @@ -228,8 +228,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.58.4.js |
| Tagged minified | https://cdn.plot.ly/plotly-geo-1.58.4.min.js |
| Tagged | https://cdn.plot.ly/plotly-geo-1.58.5.js |
| Tagged minified | https://cdn.plot.ly/plotly-geo-1.58.5.min.js |

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

Expand Down Expand Up @@ -281,8 +281,8 @@ The `gl3d` partial bundle contains trace modules `scatter`, `scatter3d`, `surfac
| ------ | --- |
| 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.58.4.js |
| Tagged minified | https://cdn.plot.ly/plotly-gl3d-1.58.4.min.js |
| Tagged | https://cdn.plot.ly/plotly-gl3d-1.58.5.js |
| Tagged minified | https://cdn.plot.ly/plotly-gl3d-1.58.5.min.js |

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

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

| Raw size | Minified size | Minified + gzip size |
|------|-----------------|------------------------|
| 3.7 MB | 1.5 MB | 488.6 kB |
| 3.7 MB | 1.5 MB | 488.7 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.58.4.js |
| Tagged minified | https://cdn.plot.ly/plotly-gl2d-1.58.4.min.js |
| Tagged | https://cdn.plot.ly/plotly-gl2d-1.58.5.js |
| Tagged minified | https://cdn.plot.ly/plotly-gl2d-1.58.5.min.js |

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

Expand Down Expand Up @@ -387,8 +387,8 @@ The `mapbox` partial bundle contains trace modules `scatter`, `scattermapbox`, `
| ------ | --- |
| 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.58.4.js |
| Tagged minified | https://cdn.plot.ly/plotly-mapbox-1.58.4.min.js |
| Tagged | https://cdn.plot.ly/plotly-mapbox-1.58.5.js |
| Tagged minified | https://cdn.plot.ly/plotly-mapbox-1.58.5.min.js |

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

Expand Down Expand Up @@ -440,8 +440,8 @@ The `finance` partial bundle contains trace modules `scatter`, `bar`, `histogram
| ------ | --- |
| 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.58.4.js |
| Tagged minified | https://cdn.plot.ly/plotly-finance-1.58.4.min.js |
| Tagged | https://cdn.plot.ly/plotly-finance-1.58.5.js |
| Tagged minified | https://cdn.plot.ly/plotly-finance-1.58.5.min.js |

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

Expand Down
45 changes: 30 additions & 15 deletions dist/plotly-basic.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/**
* plotly.js (basic) v1.58.4
* Copyright 2012-2020, Plotly, Inc.
* plotly.js (basic) v1.58.5
* Copyright 2012-2021, Plotly, Inc.
* All rights reserved.
* Licensed under the MIT license
*/
Expand Down Expand Up @@ -45453,14 +45453,9 @@ function buildSVGText(containerNode, str) {
var href = getQuotedMatch(extra, HREFMATCH);

if(href) {
// check safe protocols
var dummyAnchor = document.createElement('a');
dummyAnchor.href = href;
if(PROTOCOLS.indexOf(dummyAnchor.protocol) !== -1) {
// Decode href to allow both already encoded and not encoded
// URIs. Without decoding prior encoding, an already encoded
// URI would be encoded twice producing a semantically different URI.
nodeSpec.href = encodeURI(decodeURI(href));
var safeHref = sanitizeHref(href);
if(safeHref) {
nodeSpec.href = safeHref;
nodeSpec.target = getQuotedMatch(extra, TARGETMATCH) || '_blank';
nodeSpec.popup = getQuotedMatch(extra, POPUPMATCH);
}
Expand All @@ -45475,6 +45470,27 @@ function buildSVGText(containerNode, str) {
return hasLink;
}

function sanitizeHref(href) {
var decodedHref = encodeURI(decodeURI(href));
var dummyAnchor1 = document.createElement('a');
var dummyAnchor2 = document.createElement('a');
dummyAnchor1.href = href;
dummyAnchor2.href = decodedHref;

var p1 = dummyAnchor1.protocol;
var p2 = dummyAnchor2.protocol;

// check safe protocols
if(
PROTOCOLS.indexOf(p1) !== -1 &&
PROTOCOLS.indexOf(p2) !== -1
) {
return decodedHref;
} else {
return '';
}
}

/*
* sanitizeHTML: port of buildSVGText aimed at providing a clean subset of HTML
* @param {string} str: the html string to clean
Expand Down Expand Up @@ -45509,10 +45525,9 @@ exports.sanitizeHTML = function sanitizeHTML(str) {
var href = getQuotedMatch(extra, HREFMATCH);

if(href) {
var dummyAnchor = document.createElement('a');
dummyAnchor.href = href;
if(PROTOCOLS.indexOf(dummyAnchor.protocol) !== -1) {
nodeAttrs.href = encodeURI(decodeURI(href));
var safeHref = sanitizeHref(href);
if(safeHref) {
nodeAttrs.href = safeHref;
var target = getQuotedMatch(extra, TARGETMATCH);
if(target) {
nodeAttrs.target = target;
Expand Down Expand Up @@ -82645,7 +82660,7 @@ module.exports = function handleXYDefaults(traceIn, traceOut, layout, coerce) {
'use strict';

// package version injected by `npm run preprocess`
exports.version = '1.58.4';
exports.version = '1.58.5';

},{}]},{},[4])(4)
});
10 changes: 5 additions & 5 deletions dist/plotly-basic.min.js

Large diffs are not rendered by default.

45 changes: 30 additions & 15 deletions dist/plotly-cartesian.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/**
* plotly.js (cartesian) v1.58.4
* Copyright 2012-2020, Plotly, Inc.
* plotly.js (cartesian) v1.58.5
* Copyright 2012-2021, Plotly, Inc.
* All rights reserved.
* Licensed under the MIT license
*/
Expand Down Expand Up @@ -49151,14 +49151,9 @@ function buildSVGText(containerNode, str) {
var href = getQuotedMatch(extra, HREFMATCH);

if(href) {
// check safe protocols
var dummyAnchor = document.createElement('a');
dummyAnchor.href = href;
if(PROTOCOLS.indexOf(dummyAnchor.protocol) !== -1) {
// Decode href to allow both already encoded and not encoded
// URIs. Without decoding prior encoding, an already encoded
// URI would be encoded twice producing a semantically different URI.
nodeSpec.href = encodeURI(decodeURI(href));
var safeHref = sanitizeHref(href);
if(safeHref) {
nodeSpec.href = safeHref;
nodeSpec.target = getQuotedMatch(extra, TARGETMATCH) || '_blank';
nodeSpec.popup = getQuotedMatch(extra, POPUPMATCH);
}
Expand All @@ -49173,6 +49168,27 @@ function buildSVGText(containerNode, str) {
return hasLink;
}

function sanitizeHref(href) {
var decodedHref = encodeURI(decodeURI(href));
var dummyAnchor1 = document.createElement('a');
var dummyAnchor2 = document.createElement('a');
dummyAnchor1.href = href;
dummyAnchor2.href = decodedHref;

var p1 = dummyAnchor1.protocol;
var p2 = dummyAnchor2.protocol;

// check safe protocols
if(
PROTOCOLS.indexOf(p1) !== -1 &&
PROTOCOLS.indexOf(p2) !== -1
) {
return decodedHref;
} else {
return '';
}
}

/*
* sanitizeHTML: port of buildSVGText aimed at providing a clean subset of HTML
* @param {string} str: the html string to clean
Expand Down Expand Up @@ -49207,10 +49223,9 @@ exports.sanitizeHTML = function sanitizeHTML(str) {
var href = getQuotedMatch(extra, HREFMATCH);

if(href) {
var dummyAnchor = document.createElement('a');
dummyAnchor.href = href;
if(PROTOCOLS.indexOf(dummyAnchor.protocol) !== -1) {
nodeAttrs.href = encodeURI(decodeURI(href));
var safeHref = sanitizeHref(href);
if(safeHref) {
nodeAttrs.href = safeHref;
var target = getQuotedMatch(extra, TARGETMATCH);
if(target) {
nodeAttrs.target = target;
Expand Down Expand Up @@ -98103,7 +98118,7 @@ module.exports = function style(gd) {
'use strict';

// package version injected by `npm run preprocess`
exports.version = '1.58.4';
exports.version = '1.58.5';

},{}]},{},[11])(11)
});
6 changes: 3 additions & 3 deletions dist/plotly-cartesian.min.js

Large diffs are not rendered by default.

45 changes: 30 additions & 15 deletions dist/plotly-finance.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/**
* plotly.js (finance) v1.58.4
* Copyright 2012-2020, Plotly, Inc.
* plotly.js (finance) v1.58.5
* Copyright 2012-2021, Plotly, Inc.
* All rights reserved.
* Licensed under the MIT license
*/
Expand Down Expand Up @@ -45573,14 +45573,9 @@ function buildSVGText(containerNode, str) {
var href = getQuotedMatch(extra, HREFMATCH);

if(href) {
// check safe protocols
var dummyAnchor = document.createElement('a');
dummyAnchor.href = href;
if(PROTOCOLS.indexOf(dummyAnchor.protocol) !== -1) {
// Decode href to allow both already encoded and not encoded
// URIs. Without decoding prior encoding, an already encoded
// URI would be encoded twice producing a semantically different URI.
nodeSpec.href = encodeURI(decodeURI(href));
var safeHref = sanitizeHref(href);
if(safeHref) {
nodeSpec.href = safeHref;
nodeSpec.target = getQuotedMatch(extra, TARGETMATCH) || '_blank';
nodeSpec.popup = getQuotedMatch(extra, POPUPMATCH);
}
Expand All @@ -45595,6 +45590,27 @@ function buildSVGText(containerNode, str) {
return hasLink;
}

function sanitizeHref(href) {
var decodedHref = encodeURI(decodeURI(href));
var dummyAnchor1 = document.createElement('a');
var dummyAnchor2 = document.createElement('a');
dummyAnchor1.href = href;
dummyAnchor2.href = decodedHref;

var p1 = dummyAnchor1.protocol;
var p2 = dummyAnchor2.protocol;

// check safe protocols
if(
PROTOCOLS.indexOf(p1) !== -1 &&
PROTOCOLS.indexOf(p2) !== -1
) {
return decodedHref;
} else {
return '';
}
}

/*
* sanitizeHTML: port of buildSVGText aimed at providing a clean subset of HTML
* @param {string} str: the html string to clean
Expand Down Expand Up @@ -45629,10 +45645,9 @@ exports.sanitizeHTML = function sanitizeHTML(str) {
var href = getQuotedMatch(extra, HREFMATCH);

if(href) {
var dummyAnchor = document.createElement('a');
dummyAnchor.href = href;
if(PROTOCOLS.indexOf(dummyAnchor.protocol) !== -1) {
nodeAttrs.href = encodeURI(decodeURI(href));
var safeHref = sanitizeHref(href);
if(safeHref) {
nodeAttrs.href = safeHref;
var target = getQuotedMatch(extra, TARGETMATCH);
if(target) {
nodeAttrs.target = target;
Expand Down Expand Up @@ -90235,7 +90250,7 @@ module.exports = {
'use strict';

// package version injected by `npm run preprocess`
exports.version = '1.58.4';
exports.version = '1.58.5';

},{}]},{},[8])(8)
});
6 changes: 3 additions & 3 deletions dist/plotly-finance.min.js

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions dist/plotly-geo-assets.js

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

0 comments on commit 23fb7fa

Please sign in to comment.