steeleprice / vscode-interactive-graphviz

Interactive Graphviz Dot Preview for Visual Studio Code

Home Page:https://marketplace.visualstudio.com/items?itemName=tintinweb.graphviz-interactive-preview

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

get in touch with Consensys Diligence
[ 🌐 📩 🔥 ]

vscode-interactive-graphviz

Interactive Graphviz Dot Preview for Visual Studio Code

vscode-graphviz-interactive vscode-graphviz-interactive-cmd

  • Preview dot/Graphviz source.
  • Updates preview as you type.
  • Interactive edge tracking. click on a node to highlight incoming and outgoing edges.
  • Export the graph as svg or dot.
  • Configurable graph options: e.g. transitionDelay, transitionDuration.
  • Developers: you can pass a callback function that receives the webPanel when executing the preview command. This allows you to override functionality that is provided by the webPanel like handlers for click/dblClick events.

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

Interact with this extension

  • add graphviz-interactive-preview to your package.json extension dependencies.
{
    "name": "your-extension",
    "extensionDependencies": ["tintinweb.graphviz-interactive-preview"],
}
  • Create a new panel displaying the rendered dot graph. Either provide a document or both the document and the graphviz dot source. 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 args = {
    document: <vscode.document>,
    content: <string:dotSrc>,
    callback: <function (webpanel){}>
}
            
vscode.commands.executeCommand("graphviz-interactive-preview.preview.beside", args)

Credits

Release Notes

see CHANGELOG


About

Interactive Graphviz Dot Preview for Visual Studio Code

https://marketplace.visualstudio.com/items?itemName=tintinweb.graphviz-interactive-preview


Languages

Language:JavaScript 66.6%Language:HTML 19.2%Language:CSS 14.2%