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

(WIP) refactor(@joint/layout-directed-graph): avoid indirect function calls in API #2599

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

zbynekstara
Copy link
Contributor

@zbynekstara zbynekstara commented Mar 27, 2024

Description

The old API of DirectedGraph had to count with the possibility that the API is being called from the dia.Graph object. To be able to do that, it made use of call and bind methods. With the separation of DirectedGraph as a separate plugin, there is no longer any need for these complications.

Also fixes the docs of the fromGraphLib() function for the case where a new JointJS Graph is created from a Graphlib graph, and adds a test.

@zbynekstara zbynekstara changed the title (WIP) refactor(@joint/layout-directed-graph): avoid indirect function calls in API refactor(@joint/layout-directed-graph): avoid indirect function calls in API Mar 28, 2024
@zbynekstara zbynekstara force-pushed the improve-directed-graph-layout-api branch from 76a5452 to ea21591 Compare March 28, 2024 19:17
@zbynekstara zbynekstara changed the title refactor(@joint/layout-directed-graph): avoid indirect function calls in API (WIP) refactor(@joint/layout-directed-graph): avoid indirect function calls in API Apr 23, 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.

None yet

1 participant