1 Star 0 Fork 20

nelsonxyn / Graphin

forked from antv / Graphin 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README
MIT

简体中文 | English

Graphin

Version NPM downloads Latest commit

Graphin 取名意为 Graph Insight(图的分析洞察),是一个基于 G6 封装的 React 组件库。简单,高效,开箱即用。它的 Logo 是一个石墨烯(Graphene),意为蕴藏未来的潜力。

graphin

Graphin 采用 lerna 管理仓库,packages 中包含以下 4 个 package:

/packages
    graphin
    graphin-components
    graphin-studio
    graphin-site

他们依次对应的包名与解释如下:

包名 说明
@antv/graphin Graphin 中的图分析内核,基于 G6 封装 的 React 组件
@antv/graphin-components Graphin 中的图分析组件
@antv/graphin-site Graphin 文档官网
graphin-studio Graphin 演示 DEMO:基于 Graphin 实现的通用关系分析平台

Graphin 快速开始

安装

npm run --save @antv/graphin

Usage

import React from 'react';
import ReactDOM from 'react-dom';
import Graphin, { Utils } from '@antv/graphin';

import '@antv/graphin/dist/index.css'; // 别忘了引入Graphin CSS
import './styles.css';

const App = () => {
    const data = Utils.mock(10).graphin();
    return (
        <div className="App">
            <Graphin data={data} />
        </div>
    );
};

const rootElement = document.getElementById('root');
ReactDOM.render(<App />, rootElement);

Graphin 与 G6 兼容版本对照表

Graphin 版本 G6 版本
before 1.0.1 3.1.9
^1.0.2 ^3.2.0

开发 Graphin

  • 设置 npmClient

在 lerna.json 中设置你的 npmClient,中国地区的朋友可以设置 cnpm

// ./lerna.json
{
    "packages": ["packages/*"],
    "npmClient": "cnpm",
    "version": "0.0.0"
}
  • 安装依赖
cnpm i
  • 安装各 packages 的依赖
npm run bootstrap
  • 启动 graphin 与 graphin-components 的本地编译
npm run start
  • npm run start后,启动 Graphin Demo:Graphin Studio
npm run studio
  • 启动 Graphin 文档站点
npm run site

更多信息

钉钉群

钉钉群
MIT License Copyright (c) 2019 Alipay.inc Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

简介

Graphin 取名意为 Graph Insight(图的分析洞察),是一个基于 G6 封装的 React 组件库。简单,高效,开箱即用。它的 Logo 是一个石墨烯(Graphene),意为蕴藏未来的潜力 展开 收起
JavaScript
MIT
取消

发行版

暂无发行版

贡献者

全部

近期动态

加载更多
不能加载更多了
JavaScript
1
https://gitee.com/nelsonxyn/graphin.git
git@gitee.com:nelsonxyn/graphin.git
nelsonxyn
graphin
Graphin
master

搜索帮助