How to use the @hpcc-js/codemirror.DOTEditor function in @hpcc-js/codemirror

To help you get started, we’ve selected a few @hpcc-js/codemirror examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github hpcc-systems / Visualization / demos / gallery / samples / codemirror / DOT Editor.js View on Github external
}

    start -> a0;
    start -> b0;
    a1 -> b3;
    b2 -> a3;
    a3 -> a0;
    a3 -> end;
    b3 -> end;

    start [shape=Mdiamond];
    end [shape=Msquare];
}
`;

new DOTEditor()
    .target("target")
    .dot(code)
    .render()
    ;