Interactive Graphviz Dot Preview for Visual Studio Code
TypeScript
207
276 commits
updated Jun 26, 2024
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.

svg or dot.ESC to unselect). The Direction of the highlighting can be changed (options: single, upstream, downstream, bidirectional)transitionDelay, transitionDuration.

Open a Graphviz/Dot file in the active editor and use either of the following methods to render the preview:
> graphviz previewPreview Graphviz / Dot (beside)
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
graphviz-interactive-preview to your package.json extension dependencies.{
"name": "your-extension",
"extensionDependencies": ["tintinweb.graphviz-interactive-preview"],
}
document or uri object reference of the source code you want to render. Alternatively, you can also provide a document or uri reference of a virtual document and provide the graphviz dot source with the content field. In this case the extension will render the content and use the virtual document to extract the path information. The callback function receives the newly created webPanel. Overload webPanel.handleMessage((message) from your callback function to receive message events like onClick and onDblClick emitted from inside the dot render window.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.
see AUTHORS for a list contributors.
Copyright (c) Microsoft Corporation:
see CHANGELOG
TypeScript
54.6%
JavaScript
22.4%
HTML
15.5%
CSS
7.5%
Interactive Graphviz Dot Preview for Visual Studio Code
TypeScript
207
276 commits
updated Jun 26, 2024
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.

svg or dot.ESC to unselect). The Direction of the highlighting can be changed (options: single, upstream, downstream, bidirectional)transitionDelay, transitionDuration.

Open a Graphviz/Dot file in the active editor and use either of the following methods to render the preview:
> graphviz previewPreview Graphviz / Dot (beside)
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
graphviz-interactive-preview to your package.json extension dependencies.{
"name": "your-extension",
"extensionDependencies": ["tintinweb.graphviz-interactive-preview"],
}
document or uri object reference of the source code you want to render. Alternatively, you can also provide a document or uri reference of a virtual document and provide the graphviz dot source with the content field. In this case the extension will render the content and use the virtual document to extract the path information. The callback function receives the newly created webPanel. Overload webPanel.handleMessage((message) from your callback function to receive message events like onClick and onDblClick emitted from inside the dot render window.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.
see AUTHORS for a list contributors.
Copyright (c) Microsoft Corporation:
see CHANGELOG
TypeScript
54.6%
JavaScript
22.4%
HTML
15.5%
CSS
7.5%