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

add canvas render support #1199

Closed
wants to merge 1 commit into from
Closed

Conversation

iceprosurface
Copy link

@iceprosurface iceprosurface commented Jun 11, 2024

Features

  • Render graph
  • Drag and zoom
  • Click on node to navigate
  • Hover on node to focus
  • Maintain the current display effect
  • Customizable settings for force graph
    • Repel force
    • Center force
    • Link distance
    • Font size
    • Opacity scale
    • Max scale size
  • Customizable settings for interaction
    • Drag
    • Zoom

@iceprosurface
Copy link
Author

#1144

@iceprosurface iceprosurface marked this pull request as draft June 11, 2024 05:52
@iceprosurface iceprosurface changed the title add canvas render support(WIP) add canvas render support Jun 24, 2024
@iceprosurface iceprosurface marked this pull request as ready for review June 24, 2024 06:32
@iceprosurface
Copy link
Author

I have completed all the modifications. There are some configurations that I don't understand what they do, so I didn't implement them.

  • Font size
  • Opacity scale

Regarding the "Customizable settings for interaction" part, I currently think it's not really necessary to open up the API. If someone has the capability to make modifications, they should be allowed to modify the original code themselves.

@aarnphm
Copy link
Collaborator

aarnphm commented Aug 3, 2024

while there are a lot of things to be fixed on this PR, I would suggest to just use canvas as default, and drop svg support to make the codepath simple.

@aarnphm
Copy link
Collaborator

aarnphm commented Aug 15, 2024

Will track from #1328

@aarnphm aarnphm closed this Aug 15, 2024
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.

2 participants