1
1
/**
2
- * plotly.js (basic) v3.0.2
2
+ * plotly.js (basic) v3.0.1
3
3
* Copyright 2012-2025, Plotly, Inc.
4
4
* All rights reserved.
5
5
* Licensed under the MIT license
@@ -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.2 ";
41
+ exports.version = "3.0.1 ";
42
42
}
43
43
});
44
44
@@ -13737,10 +13737,10 @@ var Plotly = (() => {
13737
13737
}
13738
13738
});
13739
13739
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
13741
13741
var maplibre_gl_exports = {};
13742
13742
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"() {
13744
13744
init_maplibre_gl();
13745
13745
}
13746
13746
});
@@ -15581,8 +15581,6 @@ var Plotly = (() => {
15581
15581
lib.isIOS = function() {
15582
15582
return IS_IOS_REGEX.test(window.navigator.userAgent);
15583
15583
};
15584
- var IS_MAC_WKWEBVIEW_REGEX = /Macintosh.+AppleWebKit.+Gecko\)$/;
15585
- lib.isMacWKWebView = () => IS_MAC_WKWEBVIEW_REGEX.test(window.navigator.userAgent);
15586
15584
var FIREFOX_VERSION_REGEX = /Firefox\/(\d+)\.\d+/;
15587
15585
lib.getFirefoxVersion = function() {
15588
15586
var match = FIREFOX_VERSION_REGEX.exec(window.navigator.userAgent);
@@ -16435,10 +16433,6 @@ var Plotly = (() => {
16435
16433
ev.emit(event, data);
16436
16434
internalEv.emit(event, data);
16437
16435
};
16438
- if (typeof plotObj.addEventListener === "function") {
16439
- plotObj.addEventListener("wheel", () => {
16440
- });
16441
- }
16442
16436
return plotObj;
16443
16437
},
16444
16438
/*
@@ -24966,7 +24960,7 @@ var Plotly = (() => {
24966
24960
var editAttr;
24967
24961
if (prop === "title.text") editAttr = "titleText";
24968
24962
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";
24970
24964
var editable = gd._context.edits[editAttr];
24971
24965
function matchesPlaceholder(text, placeholder2) {
24972
24966
if (text === void 0 || placeholder2 === void 0) return false;
@@ -34636,7 +34630,6 @@ var Plotly = (() => {
34636
34630
var require_newshapes = __commonJS({
34637
34631
"src/components/shapes/draw_newshape/newshapes.js"(exports, module) {
34638
34632
"use strict";
34639
- var axis_ids = require_axis_ids();
34640
34633
var dragHelpers = require_helpers5();
34641
34634
var drawMode = dragHelpers.drawMode;
34642
34635
var openMode = dragHelpers.openMode;
@@ -34703,22 +34696,10 @@ var Plotly = (() => {
34703
34696
case "line":
34704
34697
case "rect":
34705
34698
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));
34722
34703
break;
34723
34704
case "path":
34724
34705
modifyItem("path", afterEdit.path);
@@ -66746,16 +66727,6 @@ var Plotly = (() => {
66746
66727
function PersianCalendar(language) {
66747
66728
this.local = this.regionalOptions[language || ""] || this.regionalOptions[""];
66748
66729
}
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
- }
66759
66730
PersianCalendar.prototype = new main.baseCalendar();
66760
66731
assign(PersianCalendar.prototype, {
66761
66732
/** The calendar name.
@@ -66809,13 +66780,13 @@ var Plotly = (() => {
66809
66780
"Mehr",
66810
66781
"Aban",
66811
66782
"Azar",
66812
- "Dey ",
66783
+ "Day ",
66813
66784
"Bahman",
66814
66785
"Esfand"
66815
66786
],
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"],
66819
66790
dayNamesMin: ["Ye", "Do", "Se", "Ch", "Pa", "Jo", "Sh"],
66820
66791
digits: null,
66821
66792
dateFormat: "yyyy/mm/dd",
@@ -66830,7 +66801,7 @@ var Plotly = (() => {
66830
66801
@throws Error if an invalid year or a different calendar used. */
66831
66802
leapYear: function(year) {
66832
66803
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 ;
66834
66805
},
66835
66806
/** Determine the week of the year for a date.
66836
66807
@memberof PersianCalendar
@@ -66877,37 +66848,36 @@ var Plotly = (() => {
66877
66848
year = date.year();
66878
66849
month = date.month();
66879
66850
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;
66891
66854
},
66892
66855
/** Create a new date from a Julian date.
66893
66856
@memberof PersianCalendar
66894
66857
@param jd {number} The Julian date to convert.
66895
66858
@return {CDate} The equivalent date. */
66896
66859
fromJD: function(jd) {
66897
66860
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;
66905
66872
var yday = jd - this.toJD(year, 1, 1) + 1;
66906
66873
var month = yday <= 186 ? Math.ceil(yday / 31) : Math.ceil((yday - 6) / 30);
66907
66874
var day = jd - this.toJD(year, month, 1) + 1;
66908
66875
return this.newDate(year, month, day);
66909
66876
}
66910
66877
});
66878
+ function mod(a, b) {
66879
+ return a - b * Math.floor(a / b);
66880
+ }
66911
66881
main.calendars.persian = PersianCalendar;
66912
66882
main.calendars.jalali = PersianCalendar;
66913
66883
}
0 commit comments