Skip to content

Commit 52913a1

Browse files
committed
fix regex in setClipPath to properly clip shapes for double digit subplots
1 parent 3658023 commit 52913a1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/components/shapes/draw.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,7 @@ function setClipPath(shapePath, gd, shapeOptions) {
196196
//
197197
// if axis is 'paper' or an axis with " domain" appended, then there is no
198198
// clip axis
199-
var clipAxes = (shapeOptions.xref + shapeOptions.yref).replace(/paper/g, '').replace(/[xyz][1-9]* *domain/g, '');
199+
var clipAxes = (shapeOptions.xref + shapeOptions.yref).replace(/paper/g, '').replace(/[xyz][0-9]* *domain/g, '');
200200

201201
Drawing.setClipUrl(
202202
shapePath,

0 commit comments

Comments
 (0)