plotly.js 3.0.0-rc.2 → 3.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +4 -4
- package/CITATION.cff +2 -2
- package/README.md +3 -3
- package/dist/README.md +18 -18
- package/dist/plotly-basic.js +11 -8
- package/dist/plotly-basic.min.js +5 -5
- package/dist/plotly-cartesian.js +11 -8
- package/dist/plotly-cartesian.min.js +5 -5
- package/dist/plotly-finance.js +11 -8
- package/dist/plotly-finance.min.js +5 -5
- package/dist/plotly-geo-assets.js +3 -3
- package/dist/plotly-geo.js +11 -8
- package/dist/plotly-geo.min.js +5 -5
- package/dist/plotly-gl2d.js +11 -8
- package/dist/plotly-gl2d.min.js +5 -5
- package/dist/plotly-gl3d.js +11 -8
- package/dist/plotly-gl3d.min.js +5 -5
- package/dist/plotly-mapbox.js +11 -8
- package/dist/plotly-mapbox.min.js +5 -5
- package/dist/plotly-strict.js +11 -8
- package/dist/plotly-strict.min.js +5 -5
- package/dist/plotly-with-meta.js +11 -8
- package/dist/plotly.js +11 -8
- package/dist/plotly.min.js +5 -5
- package/dist/translation-keys.txt +1 -1
- package/package.json +1 -1
- package/src/components/modebar/modebar.js +4 -3
- package/src/lib/dom.js +5 -3
- package/src/version.js +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -9,7 +9,7 @@ To see all merged commits on the master branch that will be part of the next plo
|
|
|
9
9
|
|
|
10
10
|
where X.Y.Z is the semver of most recent plotly.js release.
|
|
11
11
|
|
|
12
|
-
## [3.0.0
|
|
12
|
+
## [3.0.0] -- 2025-01-27
|
|
13
13
|
|
|
14
14
|
### Removed
|
|
15
15
|
- Drop support for passing a string to the `title` attribute, and drop support for deprecated attributes `titlefont`, `titleposition`, `titleside`, and `titleoffset` (use `title.text`, `title.font`, `title.side`, `title.offset` instead)[[#7212](https://github.com/plotly/plotly.js/pull/7212)]
|
|
@@ -639,7 +639,7 @@ Drop support for deprecated `bardir` attribute (use `orientation` instead) [[#72
|
|
|
639
639
|
## [2.15.1] -- 2022-10-11
|
|
640
640
|
|
|
641
641
|
### Fixed
|
|
642
|
-
- Fix latest version of plotly.js main module on npm
|
|
642
|
+
- Fix latest version of plotly.js main module on npm
|
|
643
643
|
|
|
644
644
|
|
|
645
645
|
## [2.15.0] -- 2022-10-06
|
|
@@ -658,9 +658,9 @@ Drop support for deprecated `bardir` attribute (use `orientation` instead) [[#72
|
|
|
658
658
|
- Fix automargin to update axis titles in redraws [[#6312](https://github.com/plotly/plotly.js/pull/6312)]
|
|
659
659
|
- Fix exporting patterns with transparent color [[#6318](https://github.com/plotly/plotly.js/pull/6318)]
|
|
660
660
|
- Fix exporting text on empty slices [[#6335](https://github.com/plotly/plotly.js/pull/6335)]
|
|
661
|
-
- Disable interactions for `treemap`, `icicle`, `sunburst`, `pie`, `funnelarea`,
|
|
661
|
+
- Disable interactions for `treemap`, `icicle`, `sunburst`, `pie`, `funnelarea`,
|
|
662
662
|
`parcats`, `parcoords` and `sankey` traces when `staticPlot` is set to true [[#6296](https://github.com/plotly/plotly.js/pull/6296)]
|
|
663
|
-
|
|
663
|
+
|
|
664
664
|
|
|
665
665
|
## [2.14.0] -- 2022-08-10
|
|
666
666
|
|
package/CITATION.cff
CHANGED
|
@@ -9,7 +9,7 @@ authors:
|
|
|
9
9
|
- family-names: "Samimi"
|
|
10
10
|
given-names: "Mojtaba"
|
|
11
11
|
title: "Open source Plotly charting library"
|
|
12
|
-
version: 3.0.0
|
|
12
|
+
version: 3.0.0
|
|
13
13
|
doi: 10.5281/zenodo.13964707
|
|
14
|
-
date-released:
|
|
14
|
+
date-released: 2025-01-27
|
|
15
15
|
url: "https://github.com/plotly/plotly.js"
|
package/README.md
CHANGED
|
@@ -62,7 +62,7 @@ You may also consider using [`plotly.js-dist`](https://www.npmjs.com/package/plo
|
|
|
62
62
|
|
|
63
63
|
```html
|
|
64
64
|
<head>
|
|
65
|
-
<script src="https://cdn.plot.ly/plotly-3.0.0
|
|
65
|
+
<script src="https://cdn.plot.ly/plotly-3.0.0.min.js" charset="utf-8"></script>
|
|
66
66
|
</head>
|
|
67
67
|
<body>
|
|
68
68
|
<div id="gd"></div>
|
|
@@ -79,7 +79,7 @@ You may also consider using [`plotly.js-dist`](https://www.npmjs.com/package/plo
|
|
|
79
79
|
Alternatively you may consider using [native ES6 import](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Modules) in the script tag.
|
|
80
80
|
```html
|
|
81
81
|
<script type="module">
|
|
82
|
-
import "https://cdn.plot.ly/plotly-3.0.0
|
|
82
|
+
import "https://cdn.plot.ly/plotly-3.0.0.min.js"
|
|
83
83
|
Plotly.newPlot("gd", [{ y: [1, 2, 3] }])
|
|
84
84
|
</script>
|
|
85
85
|
```
|
|
@@ -89,7 +89,7 @@ Fastly supports Plotly.js with free CDN service. Read more at <https://www.fastl
|
|
|
89
89
|
### Un-minified versions are also available on CDN
|
|
90
90
|
While non-minified source files may contain characters outside UTF-8, it is recommended that you specify the `charset` when loading those bundles.
|
|
91
91
|
```html
|
|
92
|
-
<script src="https://cdn.plot.ly/plotly-3.0.0
|
|
92
|
+
<script src="https://cdn.plot.ly/plotly-3.0.0.js" charset="utf-8"></script>
|
|
93
93
|
```
|
|
94
94
|
|
|
95
95
|
> Please note that as of v2 the "plotly-latest" outputs (e.g. https://cdn.plot.ly/plotly-latest.min.js) will no longer be updated on the CDN, and will stay at the last v1 patch v1.58.5. Therefore, to use the CDN with plotly.js v2 and higher, you must specify an exact plotly.js version.
|
package/dist/README.md
CHANGED
|
@@ -46,9 +46,9 @@ The main plotly.js bundles weight in at:
|
|
|
46
46
|
| 10.3 MB | 4.4 MB | 1.4 MB | 10.6 MB |
|
|
47
47
|
|
|
48
48
|
#### CDN links
|
|
49
|
-
> https://cdn.plot.ly/plotly-3.0.0
|
|
49
|
+
> https://cdn.plot.ly/plotly-3.0.0.js
|
|
50
50
|
|
|
51
|
-
> https://cdn.plot.ly/plotly-3.0.0
|
|
51
|
+
> https://cdn.plot.ly/plotly-3.0.0.min.js
|
|
52
52
|
|
|
53
53
|
|
|
54
54
|
#### npm packages
|
|
@@ -94,9 +94,9 @@ The `basic` partial bundle contains trace modules `bar`, `pie` and `scatter`.
|
|
|
94
94
|
| 2.6 MB | 1008.8 kB | 349.3 kB |
|
|
95
95
|
|
|
96
96
|
#### CDN links
|
|
97
|
-
> https://cdn.plot.ly/plotly-basic-3.0.0
|
|
97
|
+
> https://cdn.plot.ly/plotly-basic-3.0.0.js
|
|
98
98
|
|
|
99
|
-
> https://cdn.plot.ly/plotly-basic-3.0.0
|
|
99
|
+
> https://cdn.plot.ly/plotly-basic-3.0.0.min.js
|
|
100
100
|
|
|
101
101
|
|
|
102
102
|
#### npm packages
|
|
@@ -117,9 +117,9 @@ The `cartesian` partial bundle contains trace modules `bar`, `box`, `contour`, `
|
|
|
117
117
|
| 3.3 MB | 1.3 MB | 446.5 kB |
|
|
118
118
|
|
|
119
119
|
#### CDN links
|
|
120
|
-
> https://cdn.plot.ly/plotly-cartesian-3.0.0
|
|
120
|
+
> https://cdn.plot.ly/plotly-cartesian-3.0.0.js
|
|
121
121
|
|
|
122
|
-
> https://cdn.plot.ly/plotly-cartesian-3.0.0
|
|
122
|
+
> https://cdn.plot.ly/plotly-cartesian-3.0.0.min.js
|
|
123
123
|
|
|
124
124
|
|
|
125
125
|
#### npm packages
|
|
@@ -140,9 +140,9 @@ The `geo` partial bundle contains trace modules `choropleth`, `scatter` and `sca
|
|
|
140
140
|
| 2.9 MB | 1.1 MB | 398.8 kB |
|
|
141
141
|
|
|
142
142
|
#### CDN links
|
|
143
|
-
> https://cdn.plot.ly/plotly-geo-3.0.0
|
|
143
|
+
> https://cdn.plot.ly/plotly-geo-3.0.0.js
|
|
144
144
|
|
|
145
|
-
> https://cdn.plot.ly/plotly-geo-3.0.0
|
|
145
|
+
> https://cdn.plot.ly/plotly-geo-3.0.0.min.js
|
|
146
146
|
|
|
147
147
|
|
|
148
148
|
#### npm packages
|
|
@@ -163,9 +163,9 @@ The `gl3d` partial bundle contains trace modules `cone`, `isosurface`, `mesh3d`,
|
|
|
163
163
|
| 4.1 MB | 1.5 MB | 513.8 kB |
|
|
164
164
|
|
|
165
165
|
#### CDN links
|
|
166
|
-
> https://cdn.plot.ly/plotly-gl3d-3.0.0
|
|
166
|
+
> https://cdn.plot.ly/plotly-gl3d-3.0.0.js
|
|
167
167
|
|
|
168
|
-
> https://cdn.plot.ly/plotly-gl3d-3.0.0
|
|
168
|
+
> https://cdn.plot.ly/plotly-gl3d-3.0.0.min.js
|
|
169
169
|
|
|
170
170
|
|
|
171
171
|
#### npm packages
|
|
@@ -186,9 +186,9 @@ The `gl2d` partial bundle contains trace modules `parcoords`, `scatter`, `scatte
|
|
|
186
186
|
| 3.4 MB | 1.3 MB | 469.1 kB |
|
|
187
187
|
|
|
188
188
|
#### CDN links
|
|
189
|
-
> https://cdn.plot.ly/plotly-gl2d-3.0.0
|
|
189
|
+
> https://cdn.plot.ly/plotly-gl2d-3.0.0.js
|
|
190
190
|
|
|
191
|
-
> https://cdn.plot.ly/plotly-gl2d-3.0.0
|
|
191
|
+
> https://cdn.plot.ly/plotly-gl2d-3.0.0.min.js
|
|
192
192
|
|
|
193
193
|
|
|
194
194
|
#### npm packages
|
|
@@ -209,9 +209,9 @@ The `mapbox` partial bundle contains trace modules `choroplethmapbox`, `densitym
|
|
|
209
209
|
| 4.4 MB | 1.8 MB | 564.4 kB |
|
|
210
210
|
|
|
211
211
|
#### CDN links
|
|
212
|
-
> https://cdn.plot.ly/plotly-mapbox-3.0.0
|
|
212
|
+
> https://cdn.plot.ly/plotly-mapbox-3.0.0.js
|
|
213
213
|
|
|
214
|
-
> https://cdn.plot.ly/plotly-mapbox-3.0.0
|
|
214
|
+
> https://cdn.plot.ly/plotly-mapbox-3.0.0.min.js
|
|
215
215
|
|
|
216
216
|
|
|
217
217
|
#### npm packages
|
|
@@ -232,9 +232,9 @@ The `finance` partial bundle contains trace modules `bar`, `candlestick`, `funne
|
|
|
232
232
|
| 2.8 MB | 1.1 MB | 383 kB |
|
|
233
233
|
|
|
234
234
|
#### CDN links
|
|
235
|
-
> https://cdn.plot.ly/plotly-finance-3.0.0
|
|
235
|
+
> https://cdn.plot.ly/plotly-finance-3.0.0.js
|
|
236
236
|
|
|
237
|
-
> https://cdn.plot.ly/plotly-finance-3.0.0
|
|
237
|
+
> https://cdn.plot.ly/plotly-finance-3.0.0.min.js
|
|
238
238
|
|
|
239
239
|
|
|
240
240
|
#### npm packages
|
|
@@ -255,9 +255,9 @@ The `strict` partial bundle contains trace modules `bar`, `barpolar`, `box`, `ca
|
|
|
255
255
|
| 11.1 MB | 4.8 MB | 1.4 MB |
|
|
256
256
|
|
|
257
257
|
#### CDN links
|
|
258
|
-
> https://cdn.plot.ly/plotly-strict-3.0.0
|
|
258
|
+
> https://cdn.plot.ly/plotly-strict-3.0.0.js
|
|
259
259
|
|
|
260
|
-
> https://cdn.plot.ly/plotly-strict-3.0.0
|
|
260
|
+
> https://cdn.plot.ly/plotly-strict-3.0.0.min.js
|
|
261
261
|
|
|
262
262
|
|
|
263
263
|
#### npm packages
|
package/dist/plotly-basic.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* plotly.js (basic) v3.0.0
|
|
3
|
-
* Copyright 2012-
|
|
2
|
+
* plotly.js (basic) v3.0.0
|
|
3
|
+
* Copyright 2012-2025, Plotly, Inc.
|
|
4
4
|
* All rights reserved.
|
|
5
5
|
* Licensed under the MIT license
|
|
6
6
|
*/
|
|
@@ -38,7 +38,7 @@ var Plotly = (() => {
|
|
|
38
38
|
var require_version = __commonJS({
|
|
39
39
|
"src/version.js"(exports) {
|
|
40
40
|
"use strict";
|
|
41
|
-
exports.version = "3.0.0
|
|
41
|
+
exports.version = "3.0.0";
|
|
42
42
|
}
|
|
43
43
|
});
|
|
44
44
|
|
|
@@ -12768,11 +12768,14 @@ var Plotly = (() => {
|
|
|
12768
12768
|
var style = document.getElementById(id);
|
|
12769
12769
|
if (style) removeElement(style);
|
|
12770
12770
|
}
|
|
12771
|
-
function setStyleOnHover(selector, activeSelector, childSelector, activeStyle, inactiveStyle) {
|
|
12771
|
+
function setStyleOnHover(selector, activeSelector, childSelector, activeStyle, inactiveStyle, element) {
|
|
12772
12772
|
var activeStyleParts = activeStyle.split(":");
|
|
12773
12773
|
var inactiveStyleParts = inactiveStyle.split(":");
|
|
12774
12774
|
var eventAddedAttrName = "data-btn-style-event-added";
|
|
12775
|
-
|
|
12775
|
+
if (!element) {
|
|
12776
|
+
element = document;
|
|
12777
|
+
}
|
|
12778
|
+
element.querySelectorAll(selector).forEach(function(el) {
|
|
12776
12779
|
if (!el.getAttribute(eventAddedAttrName)) {
|
|
12777
12780
|
el.addEventListener("mouseenter", function() {
|
|
12778
12781
|
var childEl = this.querySelector(childSelector);
|
|
@@ -13734,10 +13737,10 @@ var Plotly = (() => {
|
|
|
13734
13737
|
}
|
|
13735
13738
|
});
|
|
13736
13739
|
|
|
13737
|
-
// stylePlugin:/
|
|
13740
|
+
// stylePlugin:/Users/alex/plotly/plotly.js/node_modules/maplibre-gl/dist/maplibre-gl.css
|
|
13738
13741
|
var maplibre_gl_exports = {};
|
|
13739
13742
|
var init_maplibre_gl2 = __esm({
|
|
13740
|
-
"stylePlugin:/
|
|
13743
|
+
"stylePlugin:/Users/alex/plotly/plotly.js/node_modules/maplibre-gl/dist/maplibre-gl.css"() {
|
|
13741
13744
|
init_maplibre_gl();
|
|
13742
13745
|
}
|
|
13743
13746
|
});
|
|
@@ -37154,7 +37157,6 @@ var Plotly = (() => {
|
|
|
37154
37157
|
document.querySelectorAll(groupSelector).forEach(function(group) {
|
|
37155
37158
|
group.style.backgroundColor = style.bgcolor;
|
|
37156
37159
|
});
|
|
37157
|
-
Lib.setStyleOnHover("#" + modeBarId + " .modebar-btn", ".active", ".icon path", "fill: " + style.activecolor, "fill: " + style.color);
|
|
37158
37160
|
var needsNewButtons = !this.hasButtons(buttons);
|
|
37159
37161
|
var needsNewLogo = this.hasLogo !== context.displaylogo;
|
|
37160
37162
|
var needsNewLocale = this.locale !== context.locale;
|
|
@@ -37176,6 +37178,7 @@ var Plotly = (() => {
|
|
|
37176
37178
|
}
|
|
37177
37179
|
}
|
|
37178
37180
|
this.updateActiveButton();
|
|
37181
|
+
Lib.setStyleOnHover("#" + modeBarId + " .modebar-btn", ".active", ".icon path", "fill: " + style.activecolor, "fill: " + style.color, this.element);
|
|
37179
37182
|
};
|
|
37180
37183
|
proto.updateButtons = function(buttons) {
|
|
37181
37184
|
var _this = this;
|