From 86516833cdedac15b0c1b2926514c1e934e82877 Mon Sep 17 00:00:00 2001 From: liaoyinglong Date: Fri, 17 May 2019 17:11:18 +0800 Subject: [PATCH] =?UTF-8?q?docs:=20=E4=BF=AE=E6=94=B9=E8=87=AA=E5=AE=9A?= =?UTF-8?q?=E4=B9=89=E8=8A=82=E7=82=B9=E9=93=BE=E6=8E=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docs/api/registerNode.en-US.md | 24 ++++++++++++------------ docs/api/registerNode.zh-CN.md | 24 ++++++++++++------------ 2 files changed, 24 insertions(+), 24 deletions(-) diff --git a/docs/api/registerNode.en-US.md b/docs/api/registerNode.en-US.md index 5280b7ab..9a306a7f 100644 --- a/docs/api/registerNode.en-US.md +++ b/docs/api/registerNode.en-US.md @@ -4,7 +4,7 @@ To register a node. ## Usage -> G6 [Custom Shape (Chinese)](https://antv.alipay.com/zh-cn/g6/1.x/tutorial/custom-shape.html) Tutorial +> G6 [Custom Shape (Chinese)](https://www.yuque.com/antv/g6/custom-node) Tutorial ```jsx import GGEditor, { Flow, RegisterNode } from 'gg-editor'; @@ -17,17 +17,17 @@ import GGEditor, { Flow, RegisterNode } from 'gg-editor'; ## API -| Property | Description | Type | Default | -| :--- | :--- | :--- | :--- | -| name | The name of a node. | `string` | - | -| config | To configurate a node. | `object` | - | -| extend | To extend a shape. | `string` | - | +| Property | Description | Type | Default | +| :------- | :--------------------- | :------- | :------ | +| name | The name of a node. | `string` | - | +| config | To configurate a node. | `object` | - | +| extend | To extend a shape. | `string` | - | ## Built-in Nodes -| Node Name | Preview | Applicable Page | -| :--- | :--- | :--- | -| flow-circle | ![Cicle Nodes Figure](https://gw.alipayobjects.com/zos/rmsportal/ZnPxbVjKYADMYxkTQXRi.svg) | Flow | -| flow-rect | ![Rect Node Figure](https://gw.alipayobjects.com/zos/rmsportal/wHcJakkCXDrUUlNkNzSy.svg) | Flow | -| flow-rhombus | ![Rhombus Node Figure](https://gw.alipayobjects.com/zos/rmsportal/SnWIktArriZRWdGCnGfK.svg) | Flow | -| flow-capsule | ![Capsule Node Figure](https://gw.alipayobjects.com/zos/rmsportal/rQMUhHHSqwYsPwjXxcfP.svg) | Flow | +| Node Name | Preview | Applicable Page | +| :----------- | :------------------------------------------------------------------------------------------ | :-------------- | +| flow-circle | ![Cicle Nodes Figure](https://gw.alipayobjects.com/zos/rmsportal/ZnPxbVjKYADMYxkTQXRi.svg) | Flow | +| flow-rect | ![Rect Node Figure](https://gw.alipayobjects.com/zos/rmsportal/wHcJakkCXDrUUlNkNzSy.svg) | Flow | +| flow-rhombus | ![Rhombus Node Figure](https://gw.alipayobjects.com/zos/rmsportal/SnWIktArriZRWdGCnGfK.svg) | Flow | +| flow-capsule | ![Capsule Node Figure](https://gw.alipayobjects.com/zos/rmsportal/rQMUhHHSqwYsPwjXxcfP.svg) | Flow | diff --git a/docs/api/registerNode.zh-CN.md b/docs/api/registerNode.zh-CN.md index b8a1d175..369b0bd4 100644 --- a/docs/api/registerNode.zh-CN.md +++ b/docs/api/registerNode.zh-CN.md @@ -4,7 +4,7 @@ ## 使用说明 -> G6 [自定义图项](https://antv.alipay.com/zh-cn/g6/1.x/tutorial/custom-shape.html) 教程 +> G6 [自定义图项](https://www.yuque.com/antv/g6/custom-node) 教程 ```jsx import GGEditor, { Flow, RegisterNode } from 'gg-editor'; @@ -17,17 +17,17 @@ import GGEditor, { Flow, RegisterNode } from 'gg-editor'; ## API -| 属性 | 说明 | 类型 | 默认值 | -| :--- | :--- | :--- | :--- | -| name | 节点名称 | `string` | - | -| config | 节点配置 | `object` | - | -| extend | 继承图形 | `string` | - | +| 属性 | 说明 | 类型 | 默认值 | +| :----- | :------- | :------- | :----- | +| name | 节点名称 | `string` | - | +| config | 节点配置 | `object` | - | +| extend | 继承图形 | `string` | - | ## 内置节点 -| 节点英文名 | 节点中文名 | 示例预览 |适用页面 | -| :--- | :--- | :--- | :--- | -| flow-circle | 起止节点 | ![起止节点](https://gw.alipayobjects.com/zos/rmsportal/ZnPxbVjKYADMYxkTQXRi.svg) | Flow | -| flow-rect | 常规节点 | ![起止节点](https://gw.alipayobjects.com/zos/rmsportal/wHcJakkCXDrUUlNkNzSy.svg) | Flow | -| flow-rhombus | 分叉节点 | ![分叉节点](https://gw.alipayobjects.com/zos/rmsportal/SnWIktArriZRWdGCnGfK.svg) | Flow | -| flow-capsule | 模型节点 | ![模型节点](https://gw.alipayobjects.com/zos/rmsportal/rQMUhHHSqwYsPwjXxcfP.svg) | Flow | +| 节点英文名 | 节点中文名 | 示例预览 | 适用页面 | +| :----------- | :--------- | :------------------------------------------------------------------------------- | :------- | +| flow-circle | 起止节点 | ![起止节点](https://gw.alipayobjects.com/zos/rmsportal/ZnPxbVjKYADMYxkTQXRi.svg) | Flow | +| flow-rect | 常规节点 | ![起止节点](https://gw.alipayobjects.com/zos/rmsportal/wHcJakkCXDrUUlNkNzSy.svg) | Flow | +| flow-rhombus | 分叉节点 | ![分叉节点](https://gw.alipayobjects.com/zos/rmsportal/SnWIktArriZRWdGCnGfK.svg) | Flow | +| flow-capsule | 模型节点 | ![模型节点](https://gw.alipayobjects.com/zos/rmsportal/rQMUhHHSqwYsPwjXxcfP.svg) | Flow |