Skip to content

Use D3 on tick to set the position of the nodes back to the SVG#325

Merged
JackWilb merged 3 commits intomainfrom
on-tick-for-position-setting
Jul 29, 2022
Merged

Use D3 on tick to set the position of the nodes back to the SVG#325
JackWilb merged 3 commits intomainfrom
on-tick-for-position-setting

Conversation

@JackWilb
Copy link
Copy Markdown
Member

Does this PR close any open issues?

Closes #136

Give a longer description of what this PR addresses and why it's needed

This uses the on('tick') logic to set the node back to the SVG instead of using a helper method to hide the true value of the node.x and node.y values.

Additionally, I updated an eslint rule here so we don't have to ignore param-reassign when mutating the props of a parameter.

Provide pictures/videos of the behavior before and after these changes (optional)

N/A

Are there any additional TODOs before this PR is ready to go?

@netlify
Copy link
Copy Markdown

netlify bot commented Jul 29, 2022

Deploy Preview for next-multilink ready!

Name Link
🔨 Latest commit 282e4a6
🔍 Latest deploy log https://app.netlify.com/sites/next-multilink/deploys/62e442dd5483f90008406470
😎 Deploy Preview https://deploy-preview-325--next-multilink.netlify.app/
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

@JackWilb JackWilb merged commit aaa2758 into main Jul 29, 2022
@JackWilb JackWilb deleted the on-tick-for-position-setting branch July 29, 2022 20:36
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.

Node positions are set twice causing a snapping back to the visible area

1 participant