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

Responsive graph #32

Merged
merged 5 commits into from
Nov 4, 2019
Merged

Responsive graph #32

merged 5 commits into from
Nov 4, 2019

Conversation

ifeife123
Copy link
Contributor

@ifeife123 ifeife123 commented Nov 4, 2019

Fixes #23
Makes the graph re-center when window size changes. Switches to using the inbuild d3 window size event listener instead of using the one defined in the main.js. Removes the need for an update_graph_size function defined external to the graph.
Opening an issue because once a node is clicked it stops being responsive. Other parts of the code fix positions of all nodes when a node is clicked so that needs to be dealt with.

recenters the graph as the size changes
Still stops being responsive after any node is clicked
this function stops the graph from being responsive.
cost benefit required before pull request. do we prefer the fixed nodes to responsive_graph
Copy link
Member

@ryaanahmed ryaanahmed left a comment

Choose a reason for hiding this comment

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

I've just reverted the last commit, as we might actually want some version of this fixed nodes thing. I'm not sure yet -- we need to have a group discussion about what the final expected behavior of the graph is after the user clicks or drags around a node.

@ryaanahmed ryaanahmed merged commit 47e1b54 into master Nov 4, 2019
@ryaanahmed ryaanahmed deleted the responsive_graph branch November 4, 2019 17:54
@ryaanahmed ryaanahmed restored the responsive_graph branch November 4, 2019 17:58
@srisi srisi deleted the responsive_graph branch December 31, 2019 17:01
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.

Responsively set states of viz component size as screen size changes
2 participants