1
1
/**
2
- * plotly.js (basic) v3.0.0
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.0 ";
41
+ exports.version = "3.0.1 ";
42
42
}
43
43
});
44
44
@@ -49,7 +49,7 @@ var Plotly = (() => {
49
49
context[name] = context[name] || definition();
50
50
if (typeof module != "undefined" && module.exports) {
51
51
module.exports = context[name];
52
- } else if (typeof define == "function" && define.amd ) {
52
+ } else if (typeof define == "function" && false ) {
53
53
define(function $AMD$() {
54
54
return context[name];
55
55
});
@@ -7224,7 +7224,7 @@ var Plotly = (() => {
7224
7224
d3.xml = d3_xhrType(function(request) {
7225
7225
return request.responseXML;
7226
7226
});
7227
- if (typeof define === "function" && define.amd ) define(d3);
7227
+ if (typeof define === "function" && false ) define(d3);
7228
7228
else if (typeof module === "object" && module.exports) module.exports = d3;
7229
7229
else this.d3 = d3;
7230
7230
}.apply(self);
@@ -7235,7 +7235,7 @@ var Plotly = (() => {
7235
7235
var require_d3_time = __commonJS({
7236
7236
"node_modules/d3-time/dist/d3-time.js"(exports, module) {
7237
7237
(function(global2, factory) {
7238
- typeof exports === "object" && typeof module !== "undefined" ? factory(exports) : typeof define === "function" && define.amd ? define(["exports"], factory) : (global2 = global2 || self, factory(global2.d3 = global2.d3 || {}));
7238
+ typeof exports === "object" && typeof module !== "undefined" ? factory(exports) : typeof define === "function" && false ? define(["exports"], factory) : (global2 = global2 || self, factory(global2.d3 = global2.d3 || {}));
7239
7239
})(exports, function(exports2) {
7240
7240
"use strict";
7241
7241
var t0 = /* @__PURE__ */ new Date(), t1 = /* @__PURE__ */ new Date();
@@ -7573,7 +7573,7 @@ var Plotly = (() => {
7573
7573
var require_d3_time_format = __commonJS({
7574
7574
"node_modules/d3-time-format/dist/d3-time-format.js"(exports, module) {
7575
7575
(function(global2, factory) {
7576
- typeof exports === "object" && typeof module !== "undefined" ? factory(exports, require_d3_time()) : typeof define === "function" && define.amd ? define(["exports", "d3-time"], factory) : (global2 = global2 || self, factory(global2.d3 = global2.d3 || {}, global2.d3));
7576
+ typeof exports === "object" && typeof module !== "undefined" ? factory(exports, require_d3_time()) : typeof define === "function" && false ? define(["exports", "d3-time"], factory) : (global2 = global2 || self, factory(global2.d3 = global2.d3 || {}, global2.d3));
7577
7577
})(exports, function(exports2, d3Time) {
7578
7578
"use strict";
7579
7579
function localDate(d) {
@@ -8126,7 +8126,7 @@ var Plotly = (() => {
8126
8126
var require_d3_format = __commonJS({
8127
8127
"node_modules/d3-format/dist/d3-format.js"(exports, module) {
8128
8128
(function(global2, factory) {
8129
- typeof exports === "object" && typeof module !== "undefined" ? factory(exports) : typeof define === "function" && define.amd ? define(["exports"], factory) : (global2 = typeof globalThis !== "undefined" ? globalThis : global2 || self, factory(global2.d3 = global2.d3 || {}));
8129
+ typeof exports === "object" && typeof module !== "undefined" ? factory(exports) : typeof define === "function" && false ? define(["exports"], factory) : (global2 = typeof globalThis !== "undefined" ? globalThis : global2 || self, factory(global2.d3 = global2.d3 || {}));
8130
8130
})(exports, function(exports2) {
8131
8131
"use strict";
8132
8132
function formatDecimal(x) {
@@ -8483,7 +8483,7 @@ var Plotly = (() => {
8483
8483
var require_base64_arraybuffer_umd = __commonJS({
8484
8484
"node_modules/base64-arraybuffer/dist/base64-arraybuffer.umd.js"(exports, module) {
8485
8485
(function(global2, factory) {
8486
- typeof exports === "object" && typeof module !== "undefined" ? factory(exports) : typeof define === "function" && define.amd ? define(["exports"], factory) : (global2 = typeof globalThis !== "undefined" ? globalThis : global2 || self, factory(global2["base64-arraybuffer"] = {}));
8486
+ typeof exports === "object" && typeof module !== "undefined" ? factory(exports) : typeof define === "function" && false ? define(["exports"], factory) : (global2 = typeof globalThis !== "undefined" ? globalThis : global2 || self, factory(global2["base64-arraybuffer"] = {}));
8487
8487
})(exports, function(exports2) {
8488
8488
"use strict";
8489
8489
var chars = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";
@@ -8785,7 +8785,7 @@ var Plotly = (() => {
8785
8785
};
8786
8786
};
8787
8787
function npGet(cont, parts) {
8788
- return function() {
8788
+ return function(retainNull ) {
8789
8789
var curCont = cont;
8790
8790
var curPart;
8791
8791
var allSame;
@@ -8798,7 +8798,7 @@ var Plotly = (() => {
8798
8798
allSame = true;
8799
8799
out = [];
8800
8800
for (j = 0; j < curCont.length; j++) {
8801
- out[j] = npGet(curCont[j], parts.slice(i + 1))();
8801
+ out[j] = npGet(curCont[j], parts.slice(i + 1))(retainNull );
8802
8802
if (out[j] !== out[0]) allSame = false;
8803
8803
}
8804
8804
return allSame ? out[0] : out;
@@ -8813,7 +8813,7 @@ var Plotly = (() => {
8813
8813
}
8814
8814
if (typeof curCont !== "object" || curCont === null) return void 0;
8815
8815
out = curCont[parts[i]];
8816
- if (out === null) return void 0;
8816
+ if (!retainNull && out === null) return void 0;
8817
8817
return out;
8818
8818
};
8819
8819
}
@@ -10034,7 +10034,7 @@ var Plotly = (() => {
10034
10034
}
10035
10035
if (typeof module !== "undefined" && module.exports) {
10036
10036
module.exports = tinycolor;
10037
- } else if (typeof define === "function" && define.amd ) {
10037
+ } else if (typeof define === "function" && false ) {
10038
10038
define(function() {
10039
10039
return tinycolor;
10040
10040
});
@@ -13737,10 +13737,10 @@ var Plotly = (() => {
13737
13737
}
13738
13738
});
13739
13739
13740
- // stylePlugin:/Users/alex/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:/Users/alex/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
});
@@ -15710,9 +15710,9 @@ var Plotly = (() => {
15710
15710
v = obj[key];
15711
15711
} else {
15712
15712
getterCache[key] = getterCache[key] || lib.nestedProperty(obj, key).get;
15713
- v = getterCache[key]();
15713
+ v = getterCache[key](true );
15714
15714
}
15715
- return lib.isValidTextValue(v) ? v : "";
15715
+ return v !== void 0 ? v : "";
15716
15716
});
15717
15717
};
15718
15718
var hovertemplateWarnings = {
@@ -15751,7 +15751,6 @@ var Plotly = (() => {
15751
15751
var opts = this;
15752
15752
var args = arguments;
15753
15753
if (!labels) labels = {};
15754
- var getterCache = {};
15755
15754
return string.replace(lib.TEMPLATE_STRING_REGEX, function(match, rawKey, format) {
15756
15755
var isOther = rawKey === "xother" || rawKey === "yother";
15757
15756
var isSpaceOther = rawKey === "_xother" || rawKey === "_yother";
@@ -15783,9 +15782,7 @@ var Plotly = (() => {
15783
15782
break;
15784
15783
}
15785
15784
if (!SIMPLE_PROPERTY_REGEX.test(key)) {
15786
- value = lib.nestedProperty(obj, key).get();
15787
- value = getterCache[key] || lib.nestedProperty(obj, key).get();
15788
- if (value) getterCache[key] = value;
15785
+ value = lib.nestedProperty(obj, key).get(true);
15789
15786
}
15790
15787
if (value !== void 0) break;
15791
15788
}
@@ -29852,33 +29849,25 @@ var Plotly = (() => {
29852
29849
if (gd._dragged) {
29853
29850
if (options.doneFn) options.doneFn();
29854
29851
} else {
29855
- if (options.clickFn) options.clickFn(numClicks, initialEvent);
29852
+ var clickEvent;
29853
+ if (initialEvent.target === initialTarget) {
29854
+ clickEvent = initialEvent;
29855
+ } else {
29856
+ clickEvent = {
29857
+ target: initialTarget,
29858
+ srcElement: initialTarget,
29859
+ toElement: initialTarget
29860
+ };
29861
+ Object.keys(initialEvent).concat(Object.keys(initialEvent.__proto__)).forEach((k) => {
29862
+ var v = initialEvent[k];
29863
+ if (!clickEvent[k] && typeof v !== "function") {
29864
+ clickEvent[k] = v;
29865
+ }
29866
+ });
29867
+ }
29868
+ if (options.clickFn) options.clickFn(numClicks, clickEvent);
29856
29869
if (!rightClick) {
29857
- var e2;
29858
- try {
29859
- e2 = new MouseEvent("click", e);
29860
- } catch (err) {
29861
- var offset = pointerOffset(e);
29862
- e2 = document.createEvent("MouseEvents");
29863
- e2.initMouseEvent(
29864
- "click",
29865
- e.bubbles,
29866
- e.cancelable,
29867
- e.view,
29868
- e.detail,
29869
- e.screenX,
29870
- e.screenY,
29871
- offset[0],
29872
- offset[1],
29873
- e.ctrlKey,
29874
- e.altKey,
29875
- e.shiftKey,
29876
- e.metaKey,
29877
- e.button,
29878
- e.relatedTarget
29879
- );
29880
- }
29881
- initialTarget.dispatchEvent(e2);
29870
+ initialTarget.dispatchEvent(new MouseEvent("click", e));
29882
29871
}
29883
29872
}
29884
29873
gd._dragging = false;
0 commit comments