Skip to content

Annotation additions: standoff, anchor with arrow, clicktoshow #1265

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

Merged
merged 14 commits into from
Jan 18, 2017
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/plot_api/plot_api.js
Original file line number Diff line number Diff line change
Expand Up @@ -2093,7 +2093,7 @@ Plotly.update = function update(gd, traceUpdate, layoutUpdate, traces) {
// fill in redraw sequence
var seq = [];

if(restyleFlags.fullReplot && relayoutFlags.layoutReplot) {
if(restyleFlags.fullReplot || relayoutFlags.layoutReplot) {
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@etpinard am I missing something here? Seems like we would have noticed this before if it's a bug, but clicktoshow wouldn't work right without this change.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No. && looks correct here.

That if-else-block looks like:

if(restyleFlags.fullReplot && relayoutFlags.layoutReplot) {
  // full restyle and relayout update
}
else if(restyleFlags.fullReplot) {
  // full restyle update (but not relayout update)
}
else if(relayoutFlags.layoutReplot) {
    // full relayout update (but not restyle update)
}
else {
  // other more specific updates.
}

Maybe the problem is in layoutReplot?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ah OK - thanks, I missed that. I'll look into layoutReplot.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

alright, not sure what I was seeing earlier with layoutReplot / fullReplot, but putting back the && (b683903) doesn't seem to cause any issues now. Perhaps I fixed it in some other way in the meantime...

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great!

var data = gd.data,
layout = gd.layout;

Expand Down