tintinweb / vscode-interactive-graphviz

Interactive Graphviz Dot Preview for Visual Studio Code
https://marketplace.visualstudio.com/items?itemName=tintinweb.graphviz-interactive-preview
GNU General Public License v3.0
156 stars 28 forks source link
graphviz graphviz-dot vscode vscode-extension

get in touch with Consensys Diligence
[ 🌐 πŸ“© πŸ”₯ ]

Version Installs Ratings

Graphviz Interactive Preview (Visual Studio Code Extension)

A VSCode extension that provides syntax highlighting, snippets, and an interactive, zoom-, pan- and searchable, live preview with edge tracing for graphs in Graphviz / dot format.

graphviz_v01

Language Features

image image image

Interactivity Features

graphviz_v01_open

image

Other features

How to preview

Open a Graphviz/Dot file in the active editor and use either of the following methods to render the preview:

image image

Render Examples

semantic-arg-dark semantic-arg-dark semantic-arg-dark semantic-arg-dark

Developer Notes

Note:❗v0.0.8 introduced a breaking change: the render command was renamed from interactive-graphviz.preview.beside to graphviz-interactive-preview.preview.beside

The extension can be set run on development machines with

npm run watch

In order to test the extension as a web extension you have to start

npm run open-in-browser

Interact with this extension

{
    "name": "your-extension",
    "extensionDependencies": ["tintinweb.graphviz-interactive-preview"],
}
let options = {
    document: <vscode.document>,
    uri: <vscode.uri>,
    content: <string: dotSrc>,
    callback: <function(webpanel){}>,
    allowMultiplePanels: <bool: false|[true]>,
    title: <string: RenderWindowTitle>,
    search: <optional string: Search | object: searchOptions>
}

vscode.commands.executeCommand("graphviz-interactive-preview.preview.beside", options)

Please do not hesitate to reach out if you are missing specific functionality.

Maintainers

see AUTHORS for a list contributors.

Credits

Copyright (c) Microsoft Corporation:

Release Notes

see CHANGELOG