gojs 2.0.0 copy "gojs: ^2.0.0" to clipboard
gojs: ^2.0.0 copied to clipboard

Platformweb

A Dart interface for GoJS. A Web Framework for rapidly building interactive diagrams

example/main.dart

import 'package:gojs/gojs.dart' as go;
import 'dart:html' as html;

// some simple html with a div like <div id="diagram"></div>

void main() {
  var diagram = html.document.getElementById('diagram');

  go.Diagram(diagram!)
    ..model = go.Model.fromJson('''
        [
          { "key": "Alpha" },
          { "key": "Beta" },
          { "key": "Gamma" }
        ]
    ''');
}
6
likes
110
pub points
52%
popularity

Publisher

unverified uploader

A Dart interface for GoJS. A Web Framework for rapidly building interactive diagrams

Repository (GitHub)
View/report issues

Documentation

API reference

License

Apache-2.0 (LICENSE)

Dependencies

js

More

Packages that depend on gojs