JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 1
  • Score
    100M100P100Q42241F
  • License MIT

viewer for directed acyclic graph

Package Exports

  • gview

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (gview) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

gview

Fork from: egraph

NPM version NPM downloads

Install

$ npm install gview

Usage

Example

import GView from 'gview';

const data = {
  vertices: [{
    id: 1,
    name: 'node-1'
  }, {
    id: 2,
    name: 'node-2'
  }],
  edges: [{
    from: 1,
    to: 2
  }]
};

const viewer = new GView('root', data, {
  width: 800,
  height: 400,
  hited: function(list) {
    console.log(list);
  }
});

image

Develop

npm i dool -g

# Dev
$ dool server

# Build
$ dool build

Report a issue

License

Gview is available under the terms of the MIT License.