-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Contour restyle zmin zmax #1653
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 4 commits
3507538
52d3724
6400baa
8ac49ae
413e545
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 |
---|---|---|
|
@@ -1624,6 +1624,11 @@ function _restyle(gd, aobj, _traces) { | |
flags.docalc = true; | ||
} | ||
|
||
// some attributes declare a 'recalc' flag | ||
if(valObject.recalc) { | ||
flags.docalc = true; | ||
} | ||
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. 👍 if(valObject.editType) {
valObject.editType.split('+').forEach(function(flag) {
flags[flag] = true;
});
} But don't need to do that now - lets wait until we have validation of 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, that's what I was thinking. Referencing #648 |
||
|
||
// all the other ones, just modify that one attribute | ||
param.set(newVal); | ||
} | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
... slowly migrating to something better than those ugly
recalcAttrs
lists in restyle and relayout.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Down the line, this is going to require
valObject.dostyle
,.doplot
,.doCamera
etc etc... would we be better off with something likevalObject.editType = 'docalc'
etc? Which presumably we could use like aflaglist
(and validate as such inplotschema_test
)?💯 🍻 for getting this effort going!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Right. I guess that scales better. Thanks 👍
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done in 413e545