Skip to content

Commit e8ddf63

Browse files
committed
pointerEvents
1 parent 80b1a29 commit e8ddf63

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/style.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ export function styles(
3030
opacity,
3131
mixBlendMode,
3232
paintOrder,
33+
pointerEvents,
3334
shapeRendering
3435
},
3536
{
@@ -121,6 +122,7 @@ export function styles(
121122
mark.opacity = impliedNumber(copacity, 1);
122123
mark.mixBlendMode = impliedString(mixBlendMode, "normal");
123124
mark.paintOrder = impliedString(paintOrder, "normal");
125+
mark.pointerEvents = impliedString(pointerEvents, "visiblePainted");
124126
mark.shapeRendering = impliedString(shapeRendering, "auto");
125127

126128
return [
@@ -261,6 +263,7 @@ export function applyIndirectStyles(selection, mark, {width, height, marginLeft,
261263
applyAttr(selection, "stroke-dashoffset", mark.strokeDashoffset);
262264
applyAttr(selection, "shape-rendering", mark.shapeRendering);
263265
applyAttr(selection, "paint-order", mark.paintOrder);
266+
applyAttr(selection, "pointer-events", mark.pointerEvents);
264267
if (mark.clip === "frame") {
265268
const id = `plot-clip-${++nextClipId}`;
266269
selection

0 commit comments

Comments
 (0)