Skip to content

Commit

Permalink
chore: update site links
Browse files Browse the repository at this point in the history
  • Loading branch information
Aarebecca committed Oct 22, 2024
1 parent affff02 commit 8cb8851
Show file tree
Hide file tree
Showing 35 changed files with 397 additions and 399 deletions.
22 changes: 8 additions & 14 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,7 @@

![](https://user-images.githubusercontent.com/6113694/45008751-ea465300-b036-11e8-8e2a-166cbb338ce2.png)

[![build](https://github.com/antvis/G6/actions/workflows/build.yml/badge.svg?branch=master)](https://github.com/antvis/G6/actions/)
[![Coverage Status](https://coveralls.io/repos/github/antvis/G6/badge.svg?branch=master)](https://coveralls.io/github/antvis/G6?branch=master)
![typescript](https://img.shields.io/badge/language-typescript-red.svg)
![MIT](https://img.shields.io/badge/license-MIT-000000.svg)
[![npm package](https://img.shields.io/npm/v/@antv/g6.svg)](https://www.npmjs.com/package/@antv/g6)
[![NPM downloads](http://img.shields.io/npm/dm/@antv/g6.svg)](https://npmjs.org/package/@antv/g6)
[![Percentage of issues still open](http://isitmaintained.com/badge/open/antvis/g6.svg)](http://isitmaintained.com/project/antvis/g6)
[![build](https://github.com/antvis/G6/actions/workflows/build.yml/badge.svg?branch=master)](https://github.com/antvis/G6/actions/) [![Coverage Status](https://coveralls.io/repos/github/antvis/G6/badge.svg?branch=master)](https://coveralls.io/github/antvis/G6?branch=master) ![typescript](https://img.shields.io/badge/language-typescript-red.svg) ![MIT](https://img.shields.io/badge/license-MIT-000000.svg) [![npm package](https://img.shields.io/npm/v/@antv/g6.svg)](https://www.npmjs.com/package/@antv/g6) [![NPM downloads](http://img.shields.io/npm/dm/@antv/g6.svg)](https://npmjs.org/package/@antv/g6) [![Percentage of issues still open](http://isitmaintained.com/badge/open/antvis/g6.svg)](http://isitmaintained.com/project/antvis/g6)

## What is G6

Expand Down Expand Up @@ -110,7 +104,7 @@ graph.render();

[![Edit compassionate-lalande-5lxm7](https://codesandbox.io/static/img/play-codesandbox.svg)](https://codesandbox.io/s/compassionate-lalande-5lxm7?fontsize=14&hidenavigation=1&theme=dark)

For more information of the usage, please refer to [Getting Started](https://g6.antv.antgroup.com/en/manual/getting-started).
For more information of the usage, please refer to [Getting Started](https://g6-v4.antv.vision/en/manual/getting-started).

## Development

Expand Down Expand Up @@ -138,10 +132,10 @@ DEBUG_MODE=1 npm test -- --watch ./tests/unit/algorithm/find-path-spec

## Documents

- <a href='https://g6.antv.antgroup.com/en/manual/tutorial/preface' target='_blank'>Tutorial</a>
- <a href='https://g6.antv.antgroup.com/en/manual/middle/overview' target='_blank'>Middle Guides</a>
- <a href='https://g6.antv.antgroup.com/en/manual/advanced/coordinate-system' target='_blank'>Further Reading</a>
- <a href='https://g6.antv.antgroup.com/en/api/graph' target='_blank'>API Reference</a>
- <a href='https://g6-v4.antv.vision/en/manual/tutorial/preface' target='_blank'>Tutorial</a>
- <a href='https://g6-v4.antv.vision/en/manual/middle/overview' target='_blank'>Middle Guides</a>
- <a href='https://g6-v4.antv.vision/en/manual/advanced/coordinate-system' target='_blank'>Further Reading</a>
- <a href='https://g6-v4.antv.vision/en/api/graph' target='_blank'>API Reference</a>

## React project integration

Expand All @@ -153,8 +147,8 @@ At present, Graphin has good practices in business graph analysis projects. For

Welcome to join the **G6 Communication Group**. We also welcome the github issues.

* DingTalk Group: 30088652
* WeChat Group: Add WeChat **AntVG6** to join the group
- DingTalk Group: 30088652
- WeChat Group: Add WeChat **AntVG6** to join the group

<img src="https://mdn.alipayobjects.com/huamei_qa8qxu/afts/img/A*j137TJmS1dEAAAAAAAAAAAAADmJ7AQ/original" width="200" />

Expand Down
22 changes: 8 additions & 14 deletions README.zh-CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,7 @@

![](https://user-images.githubusercontent.com/6113694/45008751-ea465300-b036-11e8-8e2a-166cbb338ce2.png)

[![build](https://github.com/antvis/G6/actions/workflows/build.yml/badge.svg?branch=master)](https://github.com/antvis/G6/actions/)
[![Coverage Status](https://coveralls.io/repos/github/antvis/G6/badge.svg?branch=master)](https://coveralls.io/github/antvis/G6?branch=master)
![typescript](https://img.shields.io/badge/language-typescript-red.svg)
![MIT](https://img.shields.io/badge/license-MIT-000000.svg)
[![npm package](https://img.shields.io/npm/v/@antv/g6.svg)](https://www.npmjs.com/package/@antv/g6)
[![NPM downloads](http://img.shields.io/npm/dm/@antv/g6.svg)](https://npmjs.org/package/@antv/g6)
[![Percentage of issues still open](http://isitmaintained.com/badge/open/antvis/g6.svg)](http://isitmaintained.com/project/antvis/g6)
[![build](https://github.com/antvis/G6/actions/workflows/build.yml/badge.svg?branch=master)](https://github.com/antvis/G6/actions/) [![Coverage Status](https://coveralls.io/repos/github/antvis/G6/badge.svg?branch=master)](https://coveralls.io/github/antvis/G6?branch=master) ![typescript](https://img.shields.io/badge/language-typescript-red.svg) ![MIT](https://img.shields.io/badge/license-MIT-000000.svg) [![npm package](https://img.shields.io/npm/v/@antv/g6.svg)](https://www.npmjs.com/package/@antv/g6) [![NPM downloads](http://img.shields.io/npm/dm/@antv/g6.svg)](https://npmjs.org/package/@antv/g6) [![Percentage of issues still open](http://isitmaintained.com/badge/open/antvis/g6.svg)](http://isitmaintained.com/project/antvis/g6)

## 什么是 G6

Expand Down Expand Up @@ -112,7 +106,7 @@ graph.render();

[![Edit compassionate-lalande-5lxm7](https://codesandbox.io/static/img/play-codesandbox.svg)](https://codesandbox.io/s/compassionate-lalande-5lxm7?fontsize=14&hidenavigation=1&theme=dark)

更多关于 G6 使用的问题,请参考[快速上手](https://g6.antv.antgroup.com/manual/getting-started)
更多关于 G6 使用的问题,请参考[快速上手](https://g6-v4.antv.vision/manual/getting-started)

## 开发

Expand Down Expand Up @@ -140,10 +134,10 @@ DEBUG_MODE=1 npm test -- --watch ./tests/unit/algorithm/find-path-spec

## 文档

- <a href='https://g6.antv.antgroup.com/manual/tutorial/preface' target='_blank'>入门教程</a>
- <a href='https://g6.antv.antgroup.com/manual/middle/overview' target='_blank'>核心概念</a>
- <a href='https://g6.antv.antgroup.com/manual/advanced/coordinate-system' target='_blank'>扩展阅读</a>
- <a href='https://g6.antv.antgroup.com/api/graph' target='_blank'>API</a>
- <a href='https://g6-v4.antv.vision/manual/tutorial/preface' target='_blank'>入门教程</a>
- <a href='https://g6-v4.antv.vision/manual/middle/overview' target='_blank'>核心概念</a>
- <a href='https://g6-v4.antv.vision/manual/advanced/coordinate-system' target='_blank'>扩展阅读</a>
- <a href='https://g6-v4.antv.vision/api/graph' target='_blank'>API</a>

## React 项目集成

Expand All @@ -159,8 +153,8 @@ DEBUG_MODE=1 npm test -- --watch ./tests/unit/algorithm/find-path-spec
> 由于维护精力有限,**G6 图可视化交流群** 仅供社区同学相互交流,不进行答疑。欢迎对 G6 感兴趣的同学加入到答疑中来,非常感谢!
* 钉钉群:30088652
* 微信群:添加微信 **AntVG6** 联系进群
- 钉钉群:30088652
- 微信群:添加微信 **AntVG6** 联系进群

<img src="https://mdn.alipayobjects.com/huamei_qa8qxu/afts/img/A*j137TJmS1dEAAAAAAAAAAAAADmJ7AQ/original" width="200" />

Expand Down
11 changes: 5 additions & 6 deletions packages/core/README.en-US.md
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ graph.render();

[![Edit compassionate-lalande-5lxm7](https://codesandbox.io/static/img/play-codesandbox.svg)](https://codesandbox.io/s/compassionate-lalande-5lxm7?fontsize=14&hidenavigation=1&theme=dark)

For more information of the usage, please refer to [Getting Started](https://g6.antv.antgroup.com/en/manual/getting-started).
For more information of the usage, please refer to [Getting Started](https://g6-v4.antv.vision/en/manual/getting-started).

## Development

Expand All @@ -134,10 +134,10 @@ DEBUG_MODE=1 npm test -- --watch ./tests/unit/algorithm/find-path-spec

## Documents

- <a href='https://g6.antv.antgroup.com/en/manual/tutorial/preface' target='_blank'>Tutorial</a>
- <a href='https://g6.antv.antgroup.com/en/manual/middle/overview' target='_blank'>Middle Guides</a>
- <a href='https://g6.antv.antgroup.com/en/manual/advanced/coordinate-system' target='_blank'>Further Reading</a>
- <a href='https://g6.antv.antgroup.com/en/api/graph' target='_blank'>API Reference</a>
- <a href='https://g6-v4.antv.vision/en/manual/tutorial/preface' target='_blank'>Tutorial</a>
- <a href='https://g6-v4.antv.vision/en/manual/middle/overview' target='_blank'>Middle Guides</a>
- <a href='https://g6-v4.antv.vision/en/manual/advanced/coordinate-system' target='_blank'>Further Reading</a>
- <a href='https://g6-v4.antv.vision/en/api/graph' target='_blank'>API Reference</a>

## G6 Communication Group

Expand All @@ -151,7 +151,6 @@ Welcome to join the **G6 Communication Group** or **G6 Communication Group-2** (

Please let us know what you are you going to help. Do check out [issues](https://github.com/antvis/g6/issues) for bug reports or suggestions first.


## License

[MIT license](./LICENSE).
10 changes: 5 additions & 5 deletions packages/core/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ graph.render();

[![Edit compassionate-lalande-5lxm7](https://codesandbox.io/static/img/play-codesandbox.svg)](https://codesandbox.io/s/compassionate-lalande-5lxm7?fontsize=14&hidenavigation=1&theme=dark)

更多关于 G6 使用的问题,请参考[快速上手](https://g6.antv.antgroup.com/manual/getting-started)
更多关于 G6 使用的问题,请参考[快速上手](https://g6-v4.antv.vision/manual/getting-started)

## 开发

Expand All @@ -136,10 +136,10 @@ DEBUG_MODE=1 npm test -- --watch ./tests/unit/algorithm/find-path-spec

## 文档

- <a href='https://g6.antv.antgroup.com/manual/tutorial/preface' target='_blank'>入门教程</a>
- <a href='https://g6.antv.antgroup.com/manual/middle/overview' target='_blank'>核心概念</a>
- <a href='https://g6.antv.antgroup.com/manual/advanced/coordinate-system' target='_blank'>扩展阅读</a>
- <a href='https://g6.antv.antgroup.com/api/graph' target='_blank'>API</a>
- <a href='https://g6-v4.antv.vision/manual/tutorial/preface' target='_blank'>入门教程</a>
- <a href='https://g6-v4.antv.vision/manual/middle/overview' target='_blank'>核心概念</a>
- <a href='https://g6-v4.antv.vision/manual/advanced/coordinate-system' target='_blank'>扩展阅读</a>
- <a href='https://g6-v4.antv.vision/api/graph' target='_blank'>API</a>

## G6 图可视化交流群

Expand Down
2 changes: 1 addition & 1 deletion packages/core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"graph visualization",
"relational data"
],
"homepage": "https://g6.antv.antgroup.com/",
"homepage": "https://g6-v4.antv.vision/",
"bugs": {
"url": "https://github.com/antvis/g6/issues"
},
Expand Down
62 changes: 33 additions & 29 deletions packages/core/src/types/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ export type CommonInteractionEvent =
| 'dragenter'
| 'dragleave'
| 'dragover'
| 'dragout' // TODO: not in documentation page: https://g6.antv.antgroup.com/en/api/Event/
| 'dragout' // TODO: not in documentation page: https://g6-v4.antv.vision/en/api/Event/
| 'drop'
| 'focus'
| 'blur'
Expand Down Expand Up @@ -116,8 +116,8 @@ export type CanvasInteractionEvent =
* Canvas Intereaction events
*
* @example
* English: https://g6.antv.antgroup.com/en/api/Event
* Chinese: https://g6.antv.antgroup.com/api/Event
* English: https://g6-v4.antv.vision/en/api/Event
* Chinese: https://g6-v4.antv.vision/api/Event
*/
export type GraphTimingEvents =
| 'beforerender'
Expand Down Expand Up @@ -165,13 +165,7 @@ export type GraphTimingEvents =
| 'beforedestroy'
| 'afterdestroy';

type MobileInteractionEvent =
| 'tap'
| 'pinchstart'
| 'pinmove'
| 'panstart'
| 'panmove'
| 'panend'
type MobileInteractionEvent = 'tap' | 'pinchstart' | 'pinmove' | 'panstart' | 'panmove' | 'panend';

export type NodeEventType = `node:${NodeInteractionEvent}`;
export type EdgeEventType = `edge:${EdgeInteractionEvent}`;
Expand All @@ -185,9 +179,18 @@ export type MobileInteractionEventType = MobileInteractionEvent;
* Graph interaction events
*
* @example
* https://g6.antv.antgroup.com/en/api/Event#combo-interaction-event
* https://g6-v4.antv.vision/en/api/Event#combo-interaction-event
*/
export type G6Event = NodeEventType | EdgeEventType | ComboEventType | CanvasEventType | GraphTimingEventType | MobileInteractionEventType | CommonInteractionEvent | CommonInteractionEvent | (string & {});
export type G6Event =
| NodeEventType
| EdgeEventType
| ComboEventType
| CanvasEventType
| GraphTimingEventType
| MobileInteractionEventType
| CommonInteractionEvent
| CommonInteractionEvent
| (string & {});

export interface IG6GraphEvent extends GraphEvent {
item: Item | null;
Expand Down Expand Up @@ -328,11 +331,13 @@ export interface ModeOption {
minZoom?: number;
enableOptimize?: boolean;
enableDebounce?: boolean;
allowDragOnItem?: boolean | {
node?: boolean,
edge?: boolean,
combo?: boolean
};
allowDragOnItem?:
| boolean
| {
node?: boolean;
edge?: boolean;
combo?: boolean;
};
optimizeZoom?: number;
multiple?: boolean;
activeState?: string;
Expand Down Expand Up @@ -386,10 +391,10 @@ export interface States {

export interface StateStyles {
[key: string]:
| ShapeStyle
| {
[key: string]: ShapeStyle;
};
| ShapeStyle
| {
[key: string]: ShapeStyle;
};
}

// model types (node edge group)
Expand Down Expand Up @@ -464,7 +469,7 @@ export interface GraphOptions {
size: number | number[];
color: string;
}> &
ModelStyle;
ModelStyle;

/**
* 默认状态下边的配置,比如 type, size, color。会被写入的 data 覆盖。
Expand All @@ -474,7 +479,7 @@ export interface GraphOptions {
size: number | number[];
color: string;
}> &
ModelStyle;
ModelStyle;

/**
* Combo 默认配置
Expand All @@ -484,7 +489,7 @@ export interface GraphOptions {
size: number | number[];
color: string;
}> &
ModelStyle;
ModelStyle;

nodeStateStyles?: StateStyles;

Expand Down Expand Up @@ -624,10 +629,10 @@ export interface TreeGraphData {
depth?: number;
collapsed?: boolean;
style?:
| ShapeStyle
| {
[key: string]: ShapeStyle;
};
| ShapeStyle
| {
[key: string]: ShapeStyle;
};
stateStyles?: StateStyles;
[key: string]: unknown;
}
Expand Down Expand Up @@ -786,7 +791,6 @@ export interface GroupNodeIds {
[key: string]: string[];
}


export type DefaultBehaviorType = IG6GraphEvent | string | number | object;

export interface BehaviorOption {
Expand Down
4 changes: 2 additions & 2 deletions packages/core/src/util/base.ts
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ export const calculationItemsBBox = (items: Item[]) => {

/**
* 若 edges 中存在两端点相同的边,使用 quadratic 边并自动计算 curveOffset 使它们不相互重叠
* 文档: https://g6.antv.antgroup.com/en/api/Util
* 文档: https://g6-v4.antv.vision/en/api/Util
* @param edges 边数据集合
* @param offsetDiff 相邻两边的 offset 之差
* @param multiEdgeType
Expand All @@ -140,7 +140,7 @@ export const processParallelEdges = (
offsetDiff = 15,
multiEdgeType: string = 'quadratic',
singleEdgeType: string = undefined,
loopEdgeType: string = undefined
loopEdgeType: string = undefined,
) => {
const len = edges.length;
const cod = offsetDiff * 2;
Expand Down
10 changes: 5 additions & 5 deletions packages/element/README-zh_CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ graph.render();

[![Edit compassionate-lalande-5lxm7](https://codesandbox.io/static/img/play-codesandbox.svg)](https://codesandbox.io/s/compassionate-lalande-5lxm7?fontsize=14&hidenavigation=1&theme=dark)

更多关于 G6 使用的问题,请参考[快速上手](https://g6.antv.antgroup.com/manual/getting-started)
更多关于 G6 使用的问题,请参考[快速上手](https://g6-v4.antv.vision/manual/getting-started)

## 开发

Expand All @@ -134,10 +134,10 @@ DEBUG_MODE=1 npm test -- --watch ./tests/unit/algorithm/find-path-spec

## 文档

- <a href='https://g6.antv.antgroup.com/manual/tutorial/preface' target='_blank'>入门教程</a>
- <a href='https://g6.antv.antgroup.com/manual/middle/overview' target='_blank'>核心概念</a>
- <a href='https://g6.antv.antgroup.com/manual/advanced/coordinate-system' target='_blank'>扩展阅读</a>
- <a href='https://g6.antv.antgroup.com/api/graph' target='_blank'>API</a>
- <a href='https://g6-v4.antv.vision/manual/tutorial/preface' target='_blank'>入门教程</a>
- <a href='https://g6-v4.antv.vision/manual/middle/overview' target='_blank'>核心概念</a>
- <a href='https://g6-v4.antv.vision/manual/advanced/coordinate-system' target='_blank'>扩展阅读</a>
- <a href='https://g6-v4.antv.vision/api/graph' target='_blank'>API</a>

## G6 图可视化交流群

Expand Down
11 changes: 5 additions & 6 deletions packages/element/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ graph.render();

[![Edit compassionate-lalande-5lxm7](https://codesandbox.io/static/img/play-codesandbox.svg)](https://codesandbox.io/s/compassionate-lalande-5lxm7?fontsize=14&hidenavigation=1&theme=dark)

For more information of the usage, please refer to [Getting Started](https://g6.antv.antgroup.com/en/manual/getting-started).
For more information of the usage, please refer to [Getting Started](https://g6-v4.antv.vision/en/manual/getting-started).

## Development

Expand All @@ -134,10 +134,10 @@ DEBUG_MODE=1 npm test -- --watch ./tests/unit/algorithm/find-path-spec

## Documents

- <a href='https://g6.antv.antgroup.com/en/manual/tutorial/preface' target='_blank'>Tutorial</a>
- <a href='https://g6.antv.antgroup.com/en/manual/middle/overview' target='_blank'>Middle Guides</a>
- <a href='https://g6.antv.antgroup.com/en/manual/advanced/coordinate-system' target='_blank'>Further Reading</a>
- <a href='https://g6.antv.antgroup.com/en/api/Graph' target='_blank'>API Reference</a>
- <a href='https://g6-v4.antv.vision/en/manual/tutorial/preface' target='_blank'>Tutorial</a>
- <a href='https://g6-v4.antv.vision/en/manual/middle/overview' target='_blank'>Middle Guides</a>
- <a href='https://g6-v4.antv.vision/en/manual/advanced/coordinate-system' target='_blank'>Further Reading</a>
- <a href='https://g6-v4.antv.vision/en/api/Graph' target='_blank'>API Reference</a>

## G6 Communication Group

Expand All @@ -151,7 +151,6 @@ Welcome to join the **G6 Communication Group** or **G6 Communication Group-2** (

Please let us know what you are you going to help. Do check out [issues](https://github.com/antvis/g6/issues) for bug reports or suggestions first.


## License

[MIT license](./LICENSE).
2 changes: 1 addition & 1 deletion packages/element/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"graph visualization",
"relational data"
],
"homepage": "https://g6.antv.antgroup.com",
"homepage": "https://g6-v4.antv.vision",
"bugs": {
"url": "https://github.com/antvis/g6/issues"
},
Expand Down
Loading

0 comments on commit 8cb8851

Please sign in to comment.