Need private packages and team management tools?Check out npm Teams »

@antv/graphin-components

1.0.4 • Public • Published

npm package NPM downloads Build Status

@antv/graphin-components

中文

Graphin's components lib for building graph analysis studio. Graphin is the graph analysis toolkit based on G6 3.x.

Components list:

  • Toolbar
  • ContextMenu
  • More coming soon...

Install

 
npm install @antv/graphin-components --save
 

UMD bundle is available in releases. External dependencys: react, react-dom, antd.

Usage

import React from 'react';
import ReactDOM from 'react-dom';
import Graphin, { Utils } from '@antv/graphin';
import { Toolbar } from '@antv/graphin-components';
 
// Do not forget to import CSS
import '@antv/graphin/dist/index.css';
import '@antv/graphin-components/dist/index.css';
 
const App = () => {
    const data = Utils.mock(10).graphin();
    return (
        <div className="App">
            <Graphin data={data}>
                <Toolbar />
            </Graphin>
        </div>
    );
};
 
const rootElement = document.getElementById('root');
ReactDOM.render(<App />, rootElement);

Docs

Please refer to Graphin Docs - Components

APIs

Please refer to Graphin Components API Doc

Keywords

none

Install

npm i @antv/graphin-components

DownloadsWeekly Downloads

247

Version

1.0.4

License

MIT

Unpacked Size

70.4 kB

Total Files

123

Last publish

Collaborators

  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar