Skip to content

Commit 1f19699

Browse files
committed
clear ternary and add comment about mapbox
1 parent d99b44b commit 1f19699

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/components/modebar/manage.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -187,9 +187,8 @@ function getButtonGroups(gd) {
187187
if(typeof b === 'string') {
188188
if(DRAW_MODES.indexOf(b) !== -1) {
189189
if(
190-
// fullLayout._has('ternary') ||
191-
fullLayout._has('mapbox') ||
192-
fullLayout._has('cartesian')
190+
fullLayout._has('mapbox') || // draw shapes in paper coordinate (could be improved in future to support data coordinate, when there is no pitch)
191+
fullLayout._has('cartesian') // draw shapes in data coordinate
193192
) {
194193
dragModeGroup.push(b);
195194
}

0 commit comments

Comments
 (0)