@logicflow/core 1.0.7-alpha.0 → 1.0.7-alpha.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@logicflow/core",
3
- "version": "1.0.7-alpha.0",
3
+ "version": "1.0.7-alpha.1",
4
4
  "description": "LogicFlow core, to quickly build flowchart editor",
5
5
  "main": "dist/logic-flow.js",
6
6
  "unpkg": "dist/logic-flow.js",
@@ -202,7 +202,7 @@ export default class LogicFlow {
202
202
  * })
203
203
  * @param {object} edgeConfig
204
204
  */
205
- addEdge(edgeConfig: EdgeConfig): void;
205
+ addEdge(edgeConfig: EdgeConfig): _Model.BaseEdgeModel;
206
206
  /**
207
207
  * 删除边
208
208
  * @param {string} edgeId 边Id
@@ -284,7 +284,7 @@ declare class GraphModel {
284
284
  * 给两个节点之间添加一条边
285
285
  * @param {object} edgeConfig
286
286
  */
287
- addEdge(edgeConfig: EdgeConfig): EdgeConfig;
287
+ addEdge(edgeConfig: EdgeConfig): BaseEdgeModel;
288
288
  /**
289
289
  * 移动边,内部方法,请勿直接使用
290
290
  */