Skip to content
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

[bugfix] allow narratives to simultaneously zoom and change color #1169

Merged
merged 1 commit into from
Jun 15, 2020

Conversation

jameshadfield
Copy link
Member

This fixes a bug where a narrative slide-change requests that the tree both zoom and change color.

This was introduced by 0639da8 which, as part of the (now disabled) push for SVG gradient rendering of branches, moved the d3 call to update the stroke (branch color) into a separate code block, in order that it can behave differently for "T" and "S" parts of a branch. This code-block is not run when the tree zooms (that is the bug).

Here we partially revert that commit. This should be revisited when we re-enable SVG gradients.

Closes #1168

This fixes a bug where a narrative slide-change requests that the tree both zoom and change color.

This was introduced by 0639da8 which, as part of the (now disabled) push for SVG gradient rendering of branches, moved the d3 call to update the stroke (branch color) into a separate code block, in order that it can behave differently for "T" and "S" parts of a branch. This code-block is not run when the tree zooms (that is the bug).

Here we partially revert that commit. This should be revisited when we re-enable SVG gradients.
@jameshadfield jameshadfield temporarily deployed to auspice-narratives-colo-nnm9tx June 15, 2020 04:18 Inactive
@jameshadfield jameshadfield merged commit dd5e458 into master Jun 15, 2020
@jameshadfield jameshadfield deleted the narratives-color-change-bug branch June 15, 2020 05:49
@emmahodcroft
Copy link
Member

Thanks James, this indeed fixes the bug locally!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Branch Colors Don't Seem to Change in Narrative
2 participants