-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
1852 persistent click via select points #2944
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 53 commits
2fbaaaa
346bad9
4f8dd92
6a87769
2d59365
5a13573
d3b4a0f
36145df
73e5085
1a89040
a6e49fd
bb44b6d
48a0a36
4639718
497747b
744ab56
7da973b
ee5f990
6ac1a08
e11faf5
bef47a3
c394a8b
5b08a2c
e763964
41e3ba5
6a2ae3b
e7c2240
23024b2
cbd9f07
7eba640
92ee0fa
3073f61
3767ce2
8a4fc99
db3e126
b3984f7
2f7ad27
d7c1434
e895efd
60317b1
61b1a32
e460e46
2ef3fce
ac4b909
05b50b9
88e9993
f247d93
90ba209
2bc582b
96fcdd7
a5a90f9
87d0497
30789dd
cc2c9ba
32aa219
b6bd813
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -16,15 +16,21 @@ module.exports = function supplyLayoutDefaults(layoutIn, layoutOut, fullData) { | |
return Lib.coerce(layoutIn, layoutOut, layoutAttributes, attr, dflt); | ||
} | ||
|
||
coerce('clickmode'); | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. We're still missing @alexcjohnson's smart default suggestion where when a user sets There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Oh, sorry, I misunderstood that. I thought mentioning in So what we want to have is when There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Yep! Which should be as simple as modifying the There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Done! |
||
|
||
var dragMode = coerce('dragmode'); | ||
if(dragMode === 'select') coerce('selectdirection'); | ||
|
||
var hovermodeDflt; | ||
if(layoutOut._has('cartesian')) { | ||
// flag for 'horizontal' plots: | ||
// determines the state of the mode bar 'compare' hovermode button | ||
layoutOut._isHoriz = isHoriz(fullData); | ||
hovermodeDflt = layoutOut._isHoriz ? 'y' : 'x'; | ||
if(layoutOut.clickmode.indexOf('select') > -1) { | ||
hovermodeDflt = 'closest'; | ||
} else { | ||
// flag for 'horizontal' plots: | ||
// determines the state of the mode bar 'compare' hovermode button | ||
layoutOut._isHoriz = isHoriz(fullData); | ||
hovermodeDflt = layoutOut._isHoriz ? 'y' : 'x'; | ||
} | ||
} | ||
else hovermodeDflt = 'closest'; | ||
|
||
|
Uh oh!
There was an error while loading. Please reload this page.