Skip to content

Support prebuilt SVG graph #379

@namoscato

Description

@namoscato

Thanks for maintaining this neat project, @IvanGoncharov!

I'm running into issues rendering a very large schema; presumably the Graphviz WebAssembly build is too much for the browser to handle:

Uncaught RangeError: Maximum call stack size exceeded
    at 002a5d36

Would you be open to supporting a mode in which the SVG graph is prebuilt?

namoscato:prebuild prototypes what this might look like:

  • expose npm script to pre-generate the SVG via a locally installed Graphviz (this takes ~2.5min for my schema)
  • extend Voyager.introspection with another variant that includes SVG contents (arguably an awkward interface in its current state; open to suggestions)

At any rate, if you are open to this feature, I would be happy to collaborate with you on the implementation!

Relates to #63, #129, #204, #377

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions