-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
update xflow demo and docs (antvis#4190)
* fix: delete xflow wrapper and xflow components docs * fix: update xflow graph demo * fix: update xflow store docs * fix: update xflow hooks demo * fix: update xflow components demo
- Loading branch information
1 parent
b6fe9d2
commit d0609d5
Showing
34 changed files
with
1,164 additions
and
1,255 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
--- | ||
title: Background 背景 | ||
order: 3 | ||
order: 1 | ||
redirect_from: | ||
- /zh/docs | ||
- /zh/docs/xflow | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
--- | ||
title: Clipboard 复制粘贴 | ||
order: 5 | ||
order: 3 | ||
redirect_from: | ||
- /zh/docs | ||
- /zh/docs/xflow | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
--- | ||
title: Control 控制器 | ||
order: 10 | ||
order: 8 | ||
redirect_from: | ||
- /zh/docs | ||
- /zh/docs/xflow | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
--- | ||
title: XFlowGraph 画布 | ||
order: 2 | ||
order: 0 | ||
redirect_from: | ||
- /zh/docs | ||
- /zh/docs/xflow | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
--- | ||
title: Grid 网格 | ||
order: 4 | ||
order: 2 | ||
redirect_from: | ||
- /zh/docs | ||
- /zh/docs/xflow | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
--- | ||
title: History 撤销重做 | ||
order: 6 | ||
order: 4 | ||
redirect_from: | ||
- /zh/docs | ||
- /zh/docs/xflow | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
--- | ||
title: Minimap 小地图 | ||
order: 7 | ||
order: 5 | ||
redirect_from: | ||
- /zh/docs | ||
- /zh/docs/xflow | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
--- | ||
title: Snapline 对齐线 | ||
order: 8 | ||
order: 6 | ||
redirect_from: | ||
- /zh/docs | ||
- /zh/docs/xflow | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
--- | ||
title: Transform 图形变换 | ||
order: 9 | ||
order: 7 | ||
redirect_from: | ||
- /zh/docs | ||
- /zh/docs/xflow | ||
|
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -29,22 +29,6 @@ $ yarn add @antv/xflow | |
$ pnpm add @antv/xflow | ||
``` | ||
|
||
## 通过 CDN | ||
|
||
你可以借助 script 标签直接通过 CDN 来使用 XFlow: | ||
|
||
```html | ||
<script src="https://unpkg.com/@antv/xflow/dist/index.umd.js"></script> | ||
``` | ||
|
||
这里我们使用了 [unpkg](https://unpkg.com/@antv/xflow/dist/index.umd.js),但你也可以使用任何提供 npm 包服务的 CDN,例如 [jsdelivr](https://cdn.jsdelivr.net/npm/@antv/xflow/dist/index.umd.js)。当然你也可以下载此文件并自行提供服务。 | ||
|
||
对于生产环境, 我们推荐使用一个明确的版本号, 以避免新版本升级造成不可预期的破坏, 例如: | ||
|
||
- <https://unpkg.com/@antv/[email protected]/dist/index.umd.js> | ||
|
||
- <https://cdn.jsdelivr.net/npm/@antv/[email protected]/dist/index.umd.js> | ||
|
||
# 基础使用 | ||
|
||
接下来我们就一起使用 XFlow 来构建一个简单的图形应用,来体验一下 XFlow 的魅力吧。 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.