Skip to content

Commit 262e9e4

Browse files
committed
Revert "3.0.2"
This reverts commit b8cff10.
1 parent b8cff10 commit 262e9e4

24 files changed

+1189
-2459
lines changed

dist/README.md

Lines changed: 24 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -46,9 +46,9 @@ The main plotly.js bundles weight in at:
4646
| 10.3 MB | 4.4 MB | 1.4 MB | 10.6 MB |
4747

4848
#### CDN links
49-
> https://cdn.plot.ly/plotly-3.0.2.js
49+
> https://cdn.plot.ly/plotly-3.0.1.js
5050
51-
> https://cdn.plot.ly/plotly-3.0.2.min.js
51+
> https://cdn.plot.ly/plotly-3.0.1.min.js
5252
5353

5454
#### npm packages
@@ -91,12 +91,12 @@ The `basic` partial bundle contains trace modules `bar`, `pie` and `scatter`.
9191

9292
| Raw size | Minified size | Minified + gzip size |
9393
|------|-----------------|------------------------|
94-
| 2.6 MB | 1008.6 kB | 349.4 kB |
94+
| 2.6 MB | 1008.3 kB | 349.2 kB |
9595

9696
#### CDN links
97-
> https://cdn.plot.ly/plotly-basic-3.0.2.js
97+
> https://cdn.plot.ly/plotly-basic-3.0.1.js
9898
99-
> https://cdn.plot.ly/plotly-basic-3.0.2.min.js
99+
> https://cdn.plot.ly/plotly-basic-3.0.1.min.js
100100
101101

102102
#### npm packages
@@ -114,12 +114,12 @@ The `cartesian` partial bundle contains trace modules `bar`, `box`, `contour`, `
114114

115115
| Raw size | Minified size | Minified + gzip size |
116116
|------|-----------------|------------------------|
117-
| 3.3 MB | 1.3 MB | 447.2 kB |
117+
| 3.3 MB | 1.3 MB | 446.4 kB |
118118

119119
#### CDN links
120-
> https://cdn.plot.ly/plotly-cartesian-3.0.2.js
120+
> https://cdn.plot.ly/plotly-cartesian-3.0.1.js
121121
122-
> https://cdn.plot.ly/plotly-cartesian-3.0.2.min.js
122+
> https://cdn.plot.ly/plotly-cartesian-3.0.1.min.js
123123
124124

125125
#### npm packages
@@ -140,9 +140,9 @@ The `geo` partial bundle contains trace modules `choropleth`, `scatter` and `sca
140140
| 2.9 MB | 1.1 MB | 398.7 kB |
141141

142142
#### CDN links
143-
> https://cdn.plot.ly/plotly-geo-3.0.2.js
143+
> https://cdn.plot.ly/plotly-geo-3.0.1.js
144144
145-
> https://cdn.plot.ly/plotly-geo-3.0.2.min.js
145+
> https://cdn.plot.ly/plotly-geo-3.0.1.min.js
146146
147147

148148
#### npm packages
@@ -160,12 +160,12 @@ The `gl3d` partial bundle contains trace modules `cone`, `isosurface`, `mesh3d`,
160160

161161
| Raw size | Minified size | Minified + gzip size |
162162
|------|-----------------|------------------------|
163-
| 4.1 MB | 1.5 MB | 513.6 kB |
163+
| 4.1 MB | 1.5 MB | 513.5 kB |
164164

165165
#### CDN links
166-
> https://cdn.plot.ly/plotly-gl3d-3.0.2.js
166+
> https://cdn.plot.ly/plotly-gl3d-3.0.1.js
167167
168-
> https://cdn.plot.ly/plotly-gl3d-3.0.2.min.js
168+
> https://cdn.plot.ly/plotly-gl3d-3.0.1.min.js
169169
170170

171171
#### npm packages
@@ -183,12 +183,12 @@ The `gl2d` partial bundle contains trace modules `parcoords`, `scatter`, `scatte
183183

184184
| Raw size | Minified size | Minified + gzip size |
185185
|------|-----------------|------------------------|
186-
| 3.4 MB | 1.3 MB | 471.2 kB |
186+
| 3.4 MB | 1.3 MB | 470.3 kB |
187187

188188
#### CDN links
189-
> https://cdn.plot.ly/plotly-gl2d-3.0.2.js
189+
> https://cdn.plot.ly/plotly-gl2d-3.0.1.js
190190
191-
> https://cdn.plot.ly/plotly-gl2d-3.0.2.min.js
191+
> https://cdn.plot.ly/plotly-gl2d-3.0.1.min.js
192192
193193

194194
#### npm packages
@@ -206,12 +206,12 @@ The `mapbox` partial bundle contains trace modules `choroplethmapbox`, `densitym
206206

207207
| Raw size | Minified size | Minified + gzip size |
208208
|------|-----------------|------------------------|
209-
| 4.4 MB | 1.8 MB | 564.5 kB |
209+
| 4.4 MB | 1.8 MB | 564.4 kB |
210210

211211
#### CDN links
212-
> https://cdn.plot.ly/plotly-mapbox-3.0.2.js
212+
> https://cdn.plot.ly/plotly-mapbox-3.0.1.js
213213
214-
> https://cdn.plot.ly/plotly-mapbox-3.0.2.min.js
214+
> https://cdn.plot.ly/plotly-mapbox-3.0.1.min.js
215215
216216

217217
#### npm packages
@@ -229,12 +229,12 @@ The `finance` partial bundle contains trace modules `bar`, `candlestick`, `funne
229229

230230
| Raw size | Minified size | Minified + gzip size |
231231
|------|-----------------|------------------------|
232-
| 2.8 MB | 1.1 MB | 383 kB |
232+
| 2.8 MB | 1.1 MB | 382.9 kB |
233233

234234
#### CDN links
235-
> https://cdn.plot.ly/plotly-finance-3.0.2.js
235+
> https://cdn.plot.ly/plotly-finance-3.0.1.js
236236
237-
> https://cdn.plot.ly/plotly-finance-3.0.2.min.js
237+
> https://cdn.plot.ly/plotly-finance-3.0.1.min.js
238238
239239

240240
#### npm packages
@@ -255,9 +255,9 @@ The `strict` partial bundle contains trace modules `bar`, `barpolar`, `box`, `ca
255255
| 11.1 MB | 4.8 MB | 1.5 MB |
256256

257257
#### CDN links
258-
> https://cdn.plot.ly/plotly-strict-3.0.2.js
258+
> https://cdn.plot.ly/plotly-strict-3.0.1.js
259259
260-
> https://cdn.plot.ly/plotly-strict-3.0.2.min.js
260+
> https://cdn.plot.ly/plotly-strict-3.0.1.min.js
261261
262262

263263
#### npm packages

dist/plotly-basic.js

Lines changed: 31 additions & 61 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* plotly.js (basic) v3.0.2
2+
* plotly.js (basic) v3.0.1
33
* Copyright 2012-2025, Plotly, Inc.
44
* All rights reserved.
55
* Licensed under the MIT license
@@ -38,7 +38,7 @@ var Plotly = (() => {
3838
var require_version = __commonJS({
3939
"src/version.js"(exports) {
4040
"use strict";
41-
exports.version = "3.0.2";
41+
exports.version = "3.0.1";
4242
}
4343
});
4444

@@ -13737,10 +13737,10 @@ var Plotly = (() => {
1373713737
}
1373813738
});
1373913739

13740-
// stylePlugin:/home/cam/Development/plotly/plotly.js/node_modules/maplibre-gl/dist/maplibre-gl.css
13740+
// stylePlugin:/Users/ekl/code/plotly.js/node_modules/maplibre-gl/dist/maplibre-gl.css
1374113741
var maplibre_gl_exports = {};
1374213742
var init_maplibre_gl2 = __esm({
13743-
"stylePlugin:/home/cam/Development/plotly/plotly.js/node_modules/maplibre-gl/dist/maplibre-gl.css"() {
13743+
"stylePlugin:/Users/ekl/code/plotly.js/node_modules/maplibre-gl/dist/maplibre-gl.css"() {
1374413744
init_maplibre_gl();
1374513745
}
1374613746
});
@@ -15581,8 +15581,6 @@ var Plotly = (() => {
1558115581
lib.isIOS = function() {
1558215582
return IS_IOS_REGEX.test(window.navigator.userAgent);
1558315583
};
15584-
var IS_MAC_WKWEBVIEW_REGEX = /Macintosh.+AppleWebKit.+Gecko\)$/;
15585-
lib.isMacWKWebView = () => IS_MAC_WKWEBVIEW_REGEX.test(window.navigator.userAgent);
1558615584
var FIREFOX_VERSION_REGEX = /Firefox\/(\d+)\.\d+/;
1558715585
lib.getFirefoxVersion = function() {
1558815586
var match = FIREFOX_VERSION_REGEX.exec(window.navigator.userAgent);
@@ -16435,10 +16433,6 @@ var Plotly = (() => {
1643516433
ev.emit(event, data);
1643616434
internalEv.emit(event, data);
1643716435
};
16438-
if (typeof plotObj.addEventListener === "function") {
16439-
plotObj.addEventListener("wheel", () => {
16440-
});
16441-
}
1644216436
return plotObj;
1644316437
},
1644416438
/*
@@ -24966,7 +24960,7 @@ var Plotly = (() => {
2496624960
var editAttr;
2496724961
if (prop === "title.text") editAttr = "titleText";
2496824962
else if (prop.indexOf("axis") !== -1) editAttr = "axisTitleText";
24969-
else if (prop.indexOf("colorbar") !== -1) editAttr = "colorbarTitleText";
24963+
else if (prop.indexOf("colorbar" !== -1)) editAttr = "colorbarTitleText";
2497024964
var editable = gd._context.edits[editAttr];
2497124965
function matchesPlaceholder(text, placeholder2) {
2497224966
if (text === void 0 || placeholder2 === void 0) return false;
@@ -34636,7 +34630,6 @@ var Plotly = (() => {
3463634630
var require_newshapes = __commonJS({
3463734631
"src/components/shapes/draw_newshape/newshapes.js"(exports, module) {
3463834632
"use strict";
34639-
var axis_ids = require_axis_ids();
3464034633
var dragHelpers = require_helpers5();
3464134634
var drawMode = dragHelpers.drawMode;
3464234635
var openMode = dragHelpers.openMode;
@@ -34703,22 +34696,10 @@ var Plotly = (() => {
3470334696
case "line":
3470434697
case "rect":
3470534698
case "circle":
34706-
var xaxis = axis_ids.getFromId(gd, beforeEdit.xref);
34707-
if (beforeEdit.xref.charAt(0) === "x" && xaxis.type.includes("category")) {
34708-
modifyItem("x0", afterEdit.x0 - (beforeEdit.x0shift || 0));
34709-
modifyItem("x1", afterEdit.x1 - (beforeEdit.x1shift || 0));
34710-
} else {
34711-
modifyItem("x0", afterEdit.x0);
34712-
modifyItem("x1", afterEdit.x1);
34713-
}
34714-
var yaxis = axis_ids.getFromId(gd, beforeEdit.yref);
34715-
if (beforeEdit.yref.charAt(0) === "y" && yaxis.type.includes("category")) {
34716-
modifyItem("y0", afterEdit.y0 - (beforeEdit.y0shift || 0));
34717-
modifyItem("y1", afterEdit.y1 - (beforeEdit.y1shift || 0));
34718-
} else {
34719-
modifyItem("y0", afterEdit.y0);
34720-
modifyItem("y1", afterEdit.y1);
34721-
}
34699+
modifyItem("x0", afterEdit.x0 - (beforeEdit.x0shift || 0));
34700+
modifyItem("x1", afterEdit.x1 - (beforeEdit.x1shift || 0));
34701+
modifyItem("y0", afterEdit.y0 - (beforeEdit.y0shift || 0));
34702+
modifyItem("y1", afterEdit.y1 - (beforeEdit.y1shift || 0));
3472234703
break;
3472334704
case "path":
3472434705
modifyItem("path", afterEdit.path);
@@ -66746,16 +66727,6 @@ var Plotly = (() => {
6674666727
function PersianCalendar(language) {
6674766728
this.local = this.regionalOptions[language || ""] || this.regionalOptions[""];
6674866729
}
66749-
function _leapYear(year) {
66750-
var x = year - 475;
66751-
if (year < 0) x++;
66752-
var c = 0.242197;
66753-
var v0 = c * x;
66754-
var v1 = c * (x + 1);
66755-
var r0 = v0 - Math.floor(v0);
66756-
var r1 = v1 - Math.floor(v1);
66757-
return r0 > r1;
66758-
}
6675966730
PersianCalendar.prototype = new main.baseCalendar();
6676066731
assign(PersianCalendar.prototype, {
6676166732
/** The calendar name.
@@ -66809,13 +66780,13 @@ var Plotly = (() => {
6680966780
"Mehr",
6681066781
"Aban",
6681166782
"Azar",
66812-
"Dey",
66783+
"Day",
6681366784
"Bahman",
6681466785
"Esfand"
6681566786
],
66816-
monthNamesShort: ["Far", "Ord", "Kho", "Tir", "Mor", "Sha", "Meh", "Aba", "Aza", "Dey", "Bah", "Esf"],
66817-
dayNames: ["Yekshanbeh", "Doshanbeh", "Seshanbeh", "Chah\u0101rshanbeh", "Panjshanbeh", "Jom'eh", "Shanbeh"],
66818-
dayNamesShort: ["Yek", "Do", "Se", "Cha", "Panj", "Jom", "Sha"],
66787+
monthNamesShort: ["Far", "Ord", "Kho", "Tir", "Mor", "Sha", "Meh", "Aba", "Aza", "Day", "Bah", "Esf"],
66788+
dayNames: ["Yekshambe", "Doshambe", "Seshambe", "Ch\xE6harshambe", "Panjshambe", "Jom'e", "Shambe"],
66789+
dayNamesShort: ["Yek", "Do", "Se", "Ch\xE6", "Panj", "Jom", "Sha"],
6681966790
dayNamesMin: ["Ye", "Do", "Se", "Ch", "Pa", "Jo", "Sh"],
6682066791
digits: null,
6682166792
dateFormat: "yyyy/mm/dd",
@@ -66830,7 +66801,7 @@ var Plotly = (() => {
6683066801
@throws Error if an invalid year or a different calendar used. */
6683166802
leapYear: function(year) {
6683266803
var date = this._validate(year, this.minMonth, this.minDay, main.local.invalidYear);
66833-
return _leapYear(date.year());
66804+
return ((date.year() - (date.year() > 0 ? 474 : 473)) % 2820 + 474 + 38) * 682 % 2816 < 682;
6683466805
},
6683566806
/** Determine the week of the year for a date.
6683666807
@memberof PersianCalendar
@@ -66877,37 +66848,36 @@ var Plotly = (() => {
6687766848
year = date.year();
6687866849
month = date.month();
6687966850
day = date.day();
66880-
var nLeapYearsSince = 0;
66881-
if (year > 0) {
66882-
for (var i = 1; i < year; i++) {
66883-
if (_leapYear(i)) nLeapYearsSince++;
66884-
}
66885-
} else if (year < 0) {
66886-
for (var i = year; i < 0; i++) {
66887-
if (_leapYear(i)) nLeapYearsSince--;
66888-
}
66889-
}
66890-
return day + (month <= 7 ? (month - 1) * 31 : (month - 1) * 30 + 6) + (year > 0 ? year - 1 : year) * 365 + nLeapYearsSince + this.jdEpoch - 1;
66851+
var epBase = year - (year >= 0 ? 474 : 473);
66852+
var epYear = 474 + mod(epBase, 2820);
66853+
return day + (month <= 7 ? (month - 1) * 31 : (month - 1) * 30 + 6) + Math.floor((epYear * 682 - 110) / 2816) + (epYear - 1) * 365 + Math.floor(epBase / 2820) * 1029983 + this.jdEpoch - 1;
6689166854
},
6689266855
/** Create a new date from a Julian date.
6689366856
@memberof PersianCalendar
6689466857
@param jd {number} The Julian date to convert.
6689566858
@return {CDate} The equivalent date. */
6689666859
fromJD: function(jd) {
6689766860
jd = Math.floor(jd) + 0.5;
66898-
var y = 475 + (jd - this.toJD(475, 1, 1)) / 365.242197;
66899-
var year = Math.floor(y);
66900-
if (year <= 0) year--;
66901-
if (jd > this.toJD(year, 12, _leapYear(year) ? 30 : 29)) {
66902-
year++;
66903-
if (year === 0) year++;
66904-
}
66861+
var depoch = jd - this.toJD(475, 1, 1);
66862+
var cycle = Math.floor(depoch / 1029983);
66863+
var cyear = mod(depoch, 1029983);
66864+
var ycycle = 2820;
66865+
if (cyear !== 1029982) {
66866+
var aux1 = Math.floor(cyear / 366);
66867+
var aux2 = mod(cyear, 366);
66868+
ycycle = Math.floor((2134 * aux1 + 2816 * aux2 + 2815) / 1028522) + aux1 + 1;
66869+
}
66870+
var year = ycycle + 2820 * cycle + 474;
66871+
year = year <= 0 ? year - 1 : year;
6690566872
var yday = jd - this.toJD(year, 1, 1) + 1;
6690666873
var month = yday <= 186 ? Math.ceil(yday / 31) : Math.ceil((yday - 6) / 30);
6690766874
var day = jd - this.toJD(year, month, 1) + 1;
6690866875
return this.newDate(year, month, day);
6690966876
}
6691066877
});
66878+
function mod(a, b) {
66879+
return a - b * Math.floor(a / b);
66880+
}
6691166881
main.calendars.persian = PersianCalendar;
6691266882
main.calendars.jalali = PersianCalendar;
6691366883
}

dist/plotly-basic.min.js

Lines changed: 6 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)