Skip to content

Commit 0e197e6

Browse files
committed
2.18.1
1 parent f4631ec commit 0e197e6

24 files changed

+2989
-3121
lines changed

dist/README.md

+22-22
Original file line numberDiff line numberDiff line change
@@ -46,9 +46,9 @@ The main plotly.js bundles weight in at:
4646
| 8.1 MB | 3.4 MB | 1 MB | 8.4 MB |
4747

4848
#### CDN links
49-
> https://cdn.plot.ly/plotly-2.18.0.js
49+
> https://cdn.plot.ly/plotly-2.18.1.js
5050
51-
> https://cdn.plot.ly/plotly-2.18.0.min.js
51+
> https://cdn.plot.ly/plotly-2.18.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.5 MB | 953.4 kB | 318.6 kB |
94+
| 2.5 MB | 953.4 kB | 318.7 kB |
9595

9696
#### CDN links
97-
> https://cdn.plot.ly/plotly-basic-2.18.0.js
97+
> https://cdn.plot.ly/plotly-basic-2.18.1.js
9898
99-
> https://cdn.plot.ly/plotly-basic-2.18.0.min.js
99+
> https://cdn.plot.ly/plotly-basic-2.18.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.2 MB | 1.2 MB | 404.8 kB |
117+
| 3.2 MB | 1.2 MB | 404.9 kB |
118118

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

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

142142
#### CDN links
143-
> https://cdn.plot.ly/plotly-geo-2.18.0.js
143+
> https://cdn.plot.ly/plotly-geo-2.18.1.js
144144
145-
> https://cdn.plot.ly/plotly-geo-2.18.0.min.js
145+
> https://cdn.plot.ly/plotly-geo-2.18.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-
| 3.5 MB | 1.5 MB | 482.9 kB |
163+
| 3.5 MB | 1.5 MB | 483 kB |
164164

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

171171
#### npm packages
@@ -186,9 +186,9 @@ The `gl2d` partial bundle contains trace modules `heatmapgl`, `parcoords`, `poin
186186
| 4.3 MB | 1.8 MB | 589.8 kB |
187187

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

194194
#### npm packages
@@ -209,9 +209,9 @@ The `mapbox` partial bundle contains trace modules `choroplethmapbox`, `densitym
209209
| 4.3 MB | 1.7 MB | 519.5 kB |
210210

211211
#### CDN links
212-
> https://cdn.plot.ly/plotly-mapbox-2.18.0.js
212+
> https://cdn.plot.ly/plotly-mapbox-2.18.1.js
213213
214-
> https://cdn.plot.ly/plotly-mapbox-2.18.0.min.js
214+
> https://cdn.plot.ly/plotly-mapbox-2.18.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.7 MB | 1 MB | 347.1 kB |
232+
| 2.8 MB | 1 MB | 347.4 kB |
233233

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

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

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

263263
#### npm packages

dist/plotly-basic.js

+12-9
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* plotly.js (basic) v2.18.0
2+
* plotly.js (basic) v2.18.1
33
* Copyright 2012-2023, Plotly, Inc.
44
* All rights reserved.
55
* Licensed under the MIT license
@@ -7158,6 +7158,7 @@ module.exports = function plot(gd, traces, plotinfo, transitionOpts) {
71587158
var xa = plotinfo.xaxis;
71597159
var ya = plotinfo.yaxis;
71607160
var hasAnimation = transitionOpts && transitionOpts.duration > 0;
7161+
var isStatic = gd._context.staticPlot;
71617162
traces.each(function (d) {
71627163
var trace = d[0].trace;
71637164
// || {} is in case the trace (specifically scatterternary)
@@ -7201,7 +7202,7 @@ module.exports = function plot(gd, traces, plotinfo, transitionOpts) {
72017202

72027203
isNew = !yerror.size();
72037204
if (isNew) {
7204-
yerror = errorbar.append('path').style('vector-effect', 'non-scaling-stroke').classed('yerror', true);
7205+
yerror = errorbar.append('path').style('vector-effect', isStatic ? 'none' : 'non-scaling-stroke').classed('yerror', true);
72057206
} else if (hasAnimation) {
72067207
yerror = yerror.transition().duration(transitionOpts.duration).ease(transitionOpts.easing);
72077208
}
@@ -7218,7 +7219,7 @@ module.exports = function plot(gd, traces, plotinfo, transitionOpts) {
72187219

72197220
isNew = !xerror.size();
72207221
if (isNew) {
7221-
xerror = errorbar.append('path').style('vector-effect', 'non-scaling-stroke').classed('xerror', true);
7222+
xerror = errorbar.append('path').style('vector-effect', isStatic ? 'none' : 'non-scaling-stroke').classed('xerror', true);
72227223
} else if (hasAnimation) {
72237224
xerror = xerror.transition().duration(transitionOpts.duration).ease(transitionOpts.easing);
72247225
}
@@ -9498,8 +9499,8 @@ function getLeftOffset(gd) {
94989499
function getBoundingClientRect(gd, node) {
94999500
var fullLayout = gd._fullLayout;
95009501
var rect = node.getBoundingClientRect();
9501-
var x0 = rect.x;
9502-
var y0 = rect.y;
9502+
var x0 = rect.left;
9503+
var y0 = rect.top;
95039504
var x1 = x0 + rect.width;
95049505
var y1 = y0 + rect.height;
95059506
var A = Lib.apply3DTransform(fullLayout._invTransform)(x0, y0);
@@ -23376,7 +23377,7 @@ function isTransformableElement(element) {
2337623377
return element && (element instanceof Element || element instanceof HTMLElement);
2337723378
}
2337823379
function equalDomRects(a, b) {
23379-
return a && b && a.x === b.x && a.y === b.y && a.top === b.top && a.left === b.left && a.right === b.right && a.bottom === b.bottom;
23380+
return a && b && a.top === b.top && a.left === b.left && a.right === b.right && a.bottom === b.bottom;
2338023381
}
2338123382
module.exports = {
2338223383
getGraphDiv: getGraphDiv,
@@ -52427,6 +52428,7 @@ function plot(gd, plotinfo, cdModule, traceLayer, opts, makeOnCompleteCallback)
5242752428
var xa = plotinfo.xaxis;
5242852429
var ya = plotinfo.yaxis;
5242952430
var fullLayout = gd._fullLayout;
52431+
var isStatic = gd._context.staticPlot;
5243052432
if (!opts) {
5243152433
opts = {
5243252434
mode: fullLayout.barmode,
@@ -52556,7 +52558,7 @@ function plot(gd, plotinfo, cdModule, traceLayer, opts, makeOnCompleteCallback)
5255652558
y1 = fixpx(y1, y0, !isHorizontal);
5255752559
}
5255852560
var sel = transition(Lib.ensureSingle(bar, 'path'), fullLayout, opts, makeOnCompleteCallback);
52559-
sel.style('vector-effect', 'non-scaling-stroke').attr('d', isNaN((x1 - x0) * (y1 - y0)) || isBlank && gd._context.staticPlot ? 'M0,0Z' : 'M' + x0 + ',' + y0 + 'V' + y1 + 'H' + x1 + 'V' + y0 + 'Z').call(Drawing.setClipUrl, plotinfo.layerClipId, gd);
52561+
sel.style('vector-effect', isStatic ? 'none' : 'non-scaling-stroke').attr('d', isNaN((x1 - x0) * (y1 - y0)) || isBlank && gd._context.staticPlot ? 'M0,0Z' : 'M' + x0 + ',' + y0 + 'V' + y1 + 'H' + x1 + 'V' + y0 + 'Z').call(Drawing.setClipUrl, plotinfo.layerClipId, gd);
5256052562
if (!fullLayout.uniformtext.mode && withTransition) {
5256152563
var styleFns = Drawing.makePointStyleFns(trace);
5256252564
Drawing.singlePointStyle(di, sel, trace, styleFns, gd);
@@ -57330,6 +57332,7 @@ function createFills(gd, traceJoin, plotinfo) {
5733057332
});
5733157333
}
5733257334
function plotOne(gd, idx, plotinfo, cdscatter, cdscatterAll, element, transitionOpts) {
57335+
var isStatic = gd._context.staticPlot;
5733357336
var i;
5733457337

5733557338
// Since this has been reorganized and we're executing this on individual traces,
@@ -57472,7 +57475,7 @@ function plotOne(gd, idx, plotinfo, cdscatter, cdscatterAll, element, transition
5747257475
var lineJoin = lines.selectAll('.js-line').data(segments);
5747357476
transition(lineJoin.exit()).style('opacity', 0).remove();
5747457477
lineJoin.each(makeUpdate(false));
57475-
lineJoin.enter().append('path').classed('js-line', true).style('vector-effect', 'non-scaling-stroke').call(Drawing.lineGroupStyle).each(makeUpdate(true));
57478+
lineJoin.enter().append('path').classed('js-line', true).style('vector-effect', isStatic ? 'none' : 'non-scaling-stroke').call(Drawing.lineGroupStyle).each(makeUpdate(true));
5747657479
Drawing.setClipUrl(lineJoin, plotinfo.layerClipId, gd);
5747757480
function clearFill(selection) {
5747857481
transition(selection).attr('d', 'M0,0Z');
@@ -58956,7 +58959,7 @@ function getSortFunc(opts, d2c) {
5895658959

5895758960

5895858961
// package version injected by `npm run preprocess`
58959-
exports.version = '2.18.0';
58962+
exports.version = '2.18.1';
5896058963

5896158964
/***/ }),
5896258965

dist/plotly-basic.min.js

+2-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)