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) {
94989499function 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}
2337823379function 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}
2338123382module.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}
5733257334function 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
0 commit comments