Skip to content

Commit

Permalink
3.0.1
Browse files Browse the repository at this point in the history
  • Loading branch information
emilykl committed Feb 18, 2025
1 parent 24f2e20 commit 92a6bfa
Show file tree
Hide file tree
Showing 27 changed files with 2,194 additions and 1,827 deletions.
50 changes: 25 additions & 25 deletions dist/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,9 @@ The main plotly.js bundles weight in at:
| 10.3 MB | 4.4 MB | 1.4 MB | 10.6 MB |

#### CDN links
> https://cdn.plot.ly/plotly-3.0.0.js
> https://cdn.plot.ly/plotly-3.0.1.js
> https://cdn.plot.ly/plotly-3.0.0.min.js
> https://cdn.plot.ly/plotly-3.0.1.min.js

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

| Raw size | Minified size | Minified + gzip size |
|------|-----------------|------------------------|
| 2.6 MB | 1008.8 kB | 349.3 kB |
| 2.6 MB | 1008.3 kB | 349.2 kB |

#### CDN links
> https://cdn.plot.ly/plotly-basic-3.0.0.js
> https://cdn.plot.ly/plotly-basic-3.0.1.js
> https://cdn.plot.ly/plotly-basic-3.0.0.min.js
> https://cdn.plot.ly/plotly-basic-3.0.1.min.js

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

| Raw size | Minified size | Minified + gzip size |
|------|-----------------|------------------------|
| 3.3 MB | 1.3 MB | 446.5 kB |
| 3.3 MB | 1.3 MB | 446.4 kB |

#### CDN links
> https://cdn.plot.ly/plotly-cartesian-3.0.0.js
> https://cdn.plot.ly/plotly-cartesian-3.0.1.js
> https://cdn.plot.ly/plotly-cartesian-3.0.0.min.js
> https://cdn.plot.ly/plotly-cartesian-3.0.1.min.js

#### npm packages
Expand All @@ -137,12 +137,12 @@ The `geo` partial bundle contains trace modules `choropleth`, `scatter` and `sca

| Raw size | Minified size | Minified + gzip size |
|------|-----------------|------------------------|
| 2.9 MB | 1.1 MB | 398.8 kB |
| 2.9 MB | 1.1 MB | 398.7 kB |

#### CDN links
> https://cdn.plot.ly/plotly-geo-3.0.0.js
> https://cdn.plot.ly/plotly-geo-3.0.1.js
> https://cdn.plot.ly/plotly-geo-3.0.0.min.js
> https://cdn.plot.ly/plotly-geo-3.0.1.min.js

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

| Raw size | Minified size | Minified + gzip size |
|------|-----------------|------------------------|
| 4.1 MB | 1.5 MB | 513.8 kB |
| 4.1 MB | 1.5 MB | 513.5 kB |

#### CDN links
> https://cdn.plot.ly/plotly-gl3d-3.0.0.js
> https://cdn.plot.ly/plotly-gl3d-3.0.1.js
> https://cdn.plot.ly/plotly-gl3d-3.0.0.min.js
> https://cdn.plot.ly/plotly-gl3d-3.0.1.min.js

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

| Raw size | Minified size | Minified + gzip size |
|------|-----------------|------------------------|
| 3.4 MB | 1.3 MB | 469.1 kB |
| 3.4 MB | 1.3 MB | 470.3 kB |

#### CDN links
> https://cdn.plot.ly/plotly-gl2d-3.0.0.js
> https://cdn.plot.ly/plotly-gl2d-3.0.1.js
> https://cdn.plot.ly/plotly-gl2d-3.0.0.min.js
> https://cdn.plot.ly/plotly-gl2d-3.0.1.min.js

#### npm packages
Expand All @@ -209,9 +209,9 @@ The `mapbox` partial bundle contains trace modules `choroplethmapbox`, `densitym
| 4.4 MB | 1.8 MB | 564.4 kB |

#### CDN links
> https://cdn.plot.ly/plotly-mapbox-3.0.0.js
> https://cdn.plot.ly/plotly-mapbox-3.0.1.js
> https://cdn.plot.ly/plotly-mapbox-3.0.0.min.js
> https://cdn.plot.ly/plotly-mapbox-3.0.1.min.js

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

| Raw size | Minified size | Minified + gzip size |
|------|-----------------|------------------------|
| 2.8 MB | 1.1 MB | 383 kB |
| 2.8 MB | 1.1 MB | 382.9 kB |

#### CDN links
> https://cdn.plot.ly/plotly-finance-3.0.0.js
> https://cdn.plot.ly/plotly-finance-3.0.1.js
> https://cdn.plot.ly/plotly-finance-3.0.0.min.js
> https://cdn.plot.ly/plotly-finance-3.0.1.min.js

#### npm packages
Expand All @@ -252,12 +252,12 @@ The `strict` partial bundle contains trace modules `bar`, `barpolar`, `box`, `ca

| Raw size | Minified size | Minified + gzip size |
|------|-----------------|------------------------|
| 11.1 MB | 4.8 MB | 1.4 MB |
| 11.1 MB | 4.8 MB | 1.5 MB |

#### CDN links
> https://cdn.plot.ly/plotly-strict-3.0.0.js
> https://cdn.plot.ly/plotly-strict-3.0.1.js
> https://cdn.plot.ly/plotly-strict-3.0.0.min.js
> https://cdn.plot.ly/plotly-strict-3.0.1.min.js

#### npm packages
Expand Down
81 changes: 35 additions & 46 deletions dist/plotly-basic.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* plotly.js (basic) v3.0.0
* plotly.js (basic) v3.0.1
* Copyright 2012-2025, Plotly, Inc.
* All rights reserved.
* Licensed under the MIT license
Expand Down Expand Up @@ -38,7 +38,7 @@ var Plotly = (() => {
var require_version = __commonJS({
"src/version.js"(exports) {
"use strict";
exports.version = "3.0.0";
exports.version = "3.0.1";
}
});

Expand All @@ -49,7 +49,7 @@ var Plotly = (() => {
context[name] = context[name] || definition();
if (typeof module != "undefined" && module.exports) {
module.exports = context[name];
} else if (typeof define == "function" && define.amd) {
} else if (typeof define == "function" && false) {
define(function $AMD$() {
return context[name];
});
Expand Down Expand Up @@ -7224,7 +7224,7 @@ var Plotly = (() => {
d3.xml = d3_xhrType(function(request) {
return request.responseXML;
});
if (typeof define === "function" && define.amd) define(d3);
if (typeof define === "function" && false) define(d3);
else if (typeof module === "object" && module.exports) module.exports = d3;
else this.d3 = d3;
}.apply(self);
Expand All @@ -7235,7 +7235,7 @@ var Plotly = (() => {
var require_d3_time = __commonJS({
"node_modules/d3-time/dist/d3-time.js"(exports, module) {
(function(global2, factory) {
typeof exports === "object" && typeof module !== "undefined" ? factory(exports) : typeof define === "function" && define.amd ? define(["exports"], factory) : (global2 = global2 || self, factory(global2.d3 = global2.d3 || {}));
typeof exports === "object" && typeof module !== "undefined" ? factory(exports) : typeof define === "function" && false ? define(["exports"], factory) : (global2 = global2 || self, factory(global2.d3 = global2.d3 || {}));
})(exports, function(exports2) {
"use strict";
var t0 = /* @__PURE__ */ new Date(), t1 = /* @__PURE__ */ new Date();
Expand Down Expand Up @@ -7573,7 +7573,7 @@ var Plotly = (() => {
var require_d3_time_format = __commonJS({
"node_modules/d3-time-format/dist/d3-time-format.js"(exports, module) {
(function(global2, factory) {
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));
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));
})(exports, function(exports2, d3Time) {
"use strict";
function localDate(d) {
Expand Down Expand Up @@ -8126,7 +8126,7 @@ var Plotly = (() => {
var require_d3_format = __commonJS({
"node_modules/d3-format/dist/d3-format.js"(exports, module) {
(function(global2, factory) {
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 || {}));
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 || {}));
})(exports, function(exports2) {
"use strict";
function formatDecimal(x) {
Expand Down Expand Up @@ -8483,7 +8483,7 @@ var Plotly = (() => {
var require_base64_arraybuffer_umd = __commonJS({
"node_modules/base64-arraybuffer/dist/base64-arraybuffer.umd.js"(exports, module) {
(function(global2, factory) {
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"] = {}));
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"] = {}));
})(exports, function(exports2) {
"use strict";
var chars = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";
Expand Down Expand Up @@ -8785,7 +8785,7 @@ var Plotly = (() => {
};
};
function npGet(cont, parts) {
return function() {
return function(retainNull) {
var curCont = cont;
var curPart;
var allSame;
Expand All @@ -8798,7 +8798,7 @@ var Plotly = (() => {
allSame = true;
out = [];
for (j = 0; j < curCont.length; j++) {
out[j] = npGet(curCont[j], parts.slice(i + 1))();
out[j] = npGet(curCont[j], parts.slice(i + 1))(retainNull);
if (out[j] !== out[0]) allSame = false;
}
return allSame ? out[0] : out;
Expand All @@ -8813,7 +8813,7 @@ var Plotly = (() => {
}
if (typeof curCont !== "object" || curCont === null) return void 0;
out = curCont[parts[i]];
if (out === null) return void 0;
if (!retainNull && out === null) return void 0;
return out;
};
}
Expand Down Expand Up @@ -10034,7 +10034,7 @@ var Plotly = (() => {
}
if (typeof module !== "undefined" && module.exports) {
module.exports = tinycolor;
} else if (typeof define === "function" && define.amd) {
} else if (typeof define === "function" && false) {
define(function() {
return tinycolor;
});
Expand Down Expand Up @@ -13737,10 +13737,10 @@ var Plotly = (() => {
}
});

// stylePlugin:/Users/alex/plotly/plotly.js/node_modules/maplibre-gl/dist/maplibre-gl.css
// stylePlugin:/Users/ekl/code/plotly.js/node_modules/maplibre-gl/dist/maplibre-gl.css
var maplibre_gl_exports = {};
var init_maplibre_gl2 = __esm({
"stylePlugin:/Users/alex/plotly/plotly.js/node_modules/maplibre-gl/dist/maplibre-gl.css"() {
"stylePlugin:/Users/ekl/code/plotly.js/node_modules/maplibre-gl/dist/maplibre-gl.css"() {
init_maplibre_gl();
}
});
Expand Down Expand Up @@ -15710,9 +15710,9 @@ var Plotly = (() => {
v = obj[key];
} else {
getterCache[key] = getterCache[key] || lib.nestedProperty(obj, key).get;
v = getterCache[key]();
v = getterCache[key](true);
}
return lib.isValidTextValue(v) ? v : "";
return v !== void 0 ? v : "";
});
};
var hovertemplateWarnings = {
Expand Down Expand Up @@ -15751,7 +15751,6 @@ var Plotly = (() => {
var opts = this;
var args = arguments;
if (!labels) labels = {};
var getterCache = {};
return string.replace(lib.TEMPLATE_STRING_REGEX, function(match, rawKey, format) {
var isOther = rawKey === "xother" || rawKey === "yother";
var isSpaceOther = rawKey === "_xother" || rawKey === "_yother";
Expand Down Expand Up @@ -15783,9 +15782,7 @@ var Plotly = (() => {
break;
}
if (!SIMPLE_PROPERTY_REGEX.test(key)) {
value = lib.nestedProperty(obj, key).get();
value = getterCache[key] || lib.nestedProperty(obj, key).get();
if (value) getterCache[key] = value;
value = lib.nestedProperty(obj, key).get(true);
}
if (value !== void 0) break;
}
Expand Down Expand Up @@ -29852,33 +29849,25 @@ var Plotly = (() => {
if (gd._dragged) {
if (options.doneFn) options.doneFn();
} else {
if (options.clickFn) options.clickFn(numClicks, initialEvent);
var clickEvent;
if (initialEvent.target === initialTarget) {
clickEvent = initialEvent;
} else {
clickEvent = {
target: initialTarget,
srcElement: initialTarget,
toElement: initialTarget
};
Object.keys(initialEvent).concat(Object.keys(initialEvent.__proto__)).forEach((k) => {
var v = initialEvent[k];
if (!clickEvent[k] && typeof v !== "function") {
clickEvent[k] = v;
}
});
}
if (options.clickFn) options.clickFn(numClicks, clickEvent);
if (!rightClick) {
var e2;
try {
e2 = new MouseEvent("click", e);
} catch (err) {
var offset = pointerOffset(e);
e2 = document.createEvent("MouseEvents");
e2.initMouseEvent(
"click",
e.bubbles,
e.cancelable,
e.view,
e.detail,
e.screenX,
e.screenY,
offset[0],
offset[1],
e.ctrlKey,
e.altKey,
e.shiftKey,
e.metaKey,
e.button,
e.relatedTarget
);
}
initialTarget.dispatchEvent(e2);
initialTarget.dispatchEvent(new MouseEvent("click", e));
}
}
gd._dragging = false;
Expand Down
10 changes: 5 additions & 5 deletions dist/plotly-basic.min.js

Large diffs are not rendered by default.

Loading

0 comments on commit 92a6bfa

Please sign in to comment.