gojs 0.0.1 gojs: ^0.0.1 copied to clipboard
A Dart interface for GoJS
A Dart interface for GoJS: https://gojs.net/
For a full working flowchart app, checkout for example/flowchart.
Simple example:
import 'package:gojs/gojs.dart';
import 'dart:html' as html;
// some simple html with a div like <div id="diagram"></div>
void main() {
var diagram = html.document.getElementById('diagram');
var myDiagram = GoJSDiagram(diagram)
..model = GoJSModel.fromJson('''
[
{ "key": "Alpha" },
{ "key": "Beta" },
{ "key": "Gamma" }
]
''');
}