Skip to content

Commit ef985cf

Browse files
committed
put 'captureevents' under common annotation defaults
1 parent c084da0 commit ef985cf

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

src/components/annotations/annotation_defaults.js

-2
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,5 @@ module.exports = function handleAnnotationDefaults(annIn, annOut, fullLayout, op
8787
annOut._yclick = (yClick === undefined) ? annOut.y : yClick;
8888
}
8989

90-
coerce('captureevents', !!annOut.hovertext);
91-
9290
return annOut;
9391
};

src/components/annotations/common_defaults.js

+2
Original file line numberDiff line numberDiff line change
@@ -61,4 +61,6 @@ module.exports = function handleAnnotationCommonDefaults(annIn, annOut, fullLayo
6161
color: globalHoverLabel.font.color || hoverBorder
6262
});
6363
}
64+
65+
coerce('captureevents', !!hoverText);
6466
};

src/components/annotations3d/attributes.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -75,13 +75,13 @@ module.exports = {
7575
arrowwidth: annAtts.arrowwidth,
7676
standoff: annAtts.standoff,
7777
hovertext: annAtts.hovertext,
78-
hoverlabel: annAtts.hoverlabel
78+
hoverlabel: annAtts.hoverlabel,
79+
captureevents: annAtts.captureevents
7980

8081
// maybes later?
8182
// clicktoshow: annAtts.clicktoshow,
8283
// xclick: annAtts.xclick,
8384
// yclick: annAtts.yclick,
84-
// captureevent: annAtts.captureevent
8585

8686
// not needed!
8787
// axref: 'pixel'

0 commit comments

Comments
 (0)