Skip to content

Commit 0c495e1

Browse files
committed
enable new modebars by default for now i.e. to test
1 parent 07b07dc commit 0c495e1

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

src/components/modebar/manage.js

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -170,6 +170,21 @@ function getButtonGroups(gd) {
170170
dragModeGroup.push('select2d', 'lasso2d');
171171
}
172172

173+
if(
174+
// fullLayout._has('ternary') ||
175+
// fullLayout._has('mapbox') ||
176+
fullLayout._has('cartesian')
177+
) {
178+
dragModeGroup.push(
179+
'linedraw',
180+
'openfreedraw',
181+
'closedfreedraw',
182+
'ellipsedraw',
183+
'rectdraw',
184+
'eraseshape'
185+
);
186+
}
187+
173188
addGroup(dragModeGroup);
174189
addGroup(zoomGroup.concat(resetGroup));
175190
addGroup(hoverGroup);

0 commit comments

Comments
 (0)