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 setters and getters for nodes and edges #88

Closed
tonilastre opened this issue Feb 16, 2024 · 0 comments
Closed

Add setters and getters for nodes and edges #88

tonilastre opened this issue Feb 16, 2024 · 0 comments
Assignees
Milestone

Comments

@tonilastre
Copy link
Contributor

tonilastre commented Feb 16, 2024

Nodes and edges should have setters and getters for properties, data, and positions in the following manner:

getX()
patchX({ ... })
patchX((x) => ({ ... }))
setX({ ... })
setX((x) => ({ ... }))

The graph model should be able to listen for those changes and know if something has changed, which can be used to call renderer.render, a throttled call.

Another part of this task is states which is partially done here: #71

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

No branches or pull requests

2 participants