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

request: graph serialization example #603

Closed
MadSciencist opened this issue Oct 19, 2020 · 4 comments
Closed

request: graph serialization example #603

MadSciencist opened this issue Oct 19, 2020 · 4 comments
Assignees
Labels
feature request New feature or request

Comments

@MadSciencist
Copy link

Hey,

whats the proper way to serialize the graph elements (AKA graph export)? Is there any high level API for that?
The only way I found is to take redux state and replace the 'position' object of flow element with __rf.position.

Thanks

@moklick
Copy link
Member

moklick commented Oct 19, 2020

Hey,

right now that would be the solution. I think it would be a good idea to do this inside the getElements function so that users don't have to do it. We will change that.

@moklick moklick self-assigned this Oct 19, 2020
@qihuagao
Copy link

Thanks for the great work, lookiing forward to this feature too.

@qihuagao
Copy link

better to have different kinds of shapes, but may conflict with other designs....

@chrtze chrtze added the feature request New feature or request label Nov 2, 2020
@moklick
Copy link
Member

moklick commented Nov 3, 2020

Hey @MadSciencist

do you think it would be enough to get elements and transform (position + zoom) from the new serialize function? Or do you need any more information?

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

No branches or pull requests

4 participants