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

Extend type system to customize graph visualization solutions #847

Merged
merged 3 commits into from
Apr 20, 2023

Conversation

kamiazya
Copy link
Member

What was a problem

The problem this PR aims to solve is the inability to extend the type definitions of ts-graphviz library to meet specific needs for customizing graph visualization solutions.

How this PR fixes the problem

The TypeScript interface is extensible from the user space, and we took advantage of this property to develop user-extensible interfaces and rules.

This PR extends the type system of ts-graphviz library to allow for customization of graph visualization solutions based on specific needs. It introduces a way to define custom layouts and output formats, as well as the ability to add custom attributes to graphs.

The new functionality involves declaring and implementing interfaces in the Layout, Format, GraphAttributeKey, and Attribute and more namespaces of the ts-graphviz package.

Users can extend these interfaces with their own custom types and values to suit their specific requirements.

@kamiazya kamiazya added documentation Improvements or additions to documentation enhancement New feature or request labels Apr 20, 2023
@kamiazya kamiazya self-assigned this Apr 20, 2023
@kamiazya kamiazya merged commit 29eb244 into main Apr 20, 2023
6 checks passed
@kamiazya kamiazya deleted the support-type-customize branch April 20, 2023 16:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant