@@ -98939,6 +98939,7 @@ module.exports = function style(s, gd, legend) {
98939
98939
if(!legend) legend = fullLayout.legend;
98940
98940
var constantItemSizing = legend.itemsizing === 'constant';
98941
98941
var itemWidth = legend.itemwidth;
98942
+ var itemWidthCustom = itemWidth - 10;
98942
98943
var centerPos = (itemWidth + constants.itemGap * 2) / 2;
98943
98944
var centerTransform = strTranslate(centerPos, 0);
98944
98945
@@ -99072,7 +99073,7 @@ module.exports = function style(s, gd, legend) {
99072
99073
.data(showFill || showGradientFill ? [d] : []);
99073
99074
fill.enter().append('path').classed('js-fill', true);
99074
99075
fill.exit().remove();
99075
- fill.attr('d', pathStart + 'h' + itemWidth + 'v6h-' + itemWidth + 'z')
99076
+ fill.attr('d', pathStart + 'h' + itemWidthCustom + 'v6h-' + itemWidthCustom + 'z')
99076
99077
.call(showFill ? Drawing.fillGroupStyle : fillGradient);
99077
99078
99078
99079
if(showLine || showGradientLine) {
@@ -99092,7 +99093,7 @@ module.exports = function style(s, gd, legend) {
99092
99093
// though there *is* no vertical variation in this case.
99093
99094
// so add an invisibly small angle to the line
99094
99095
// This issue (and workaround) exist across (Mac) Chrome, FF, and Safari
99095
- line.attr('d', pathStart + (showGradientLine ? 'l' + itemWidth + ',0.0001' : 'h' + itemWidth ))
99096
+ line.attr('d', pathStart + (showGradientLine ? 'l' + itemWidthCustom + ',0.0001' : 'h' + itemWidthCustom ))
99096
99097
.call(showLine ? Drawing.lineGroupStyle : lineGradient);
99097
99098
}
99098
99099
0 commit comments