@logicflow/core 1.0.3 → 1.0.4

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.3",
3
+ "version": "1.0.4",
4
4
  "description": "LogicFlow core, to quickly build flowchart editor",
5
5
  "main": "dist/logic-flow.js",
6
6
  "unpkg": "dist/logic-flow.js",
@@ -141,6 +141,12 @@ export default class LogicFlow {
141
141
  * @param type 节点类型
142
142
  */
143
143
  changeNodeType(id: string, type: string): void;
144
+ /**
145
+ * 切换边的类型
146
+ * @param id 边Id
147
+ * @param type 边类型
148
+ */
149
+ changeEdgeType(id: string, type: string): void;
144
150
  /**
145
151
  * 获取节点连接的所有边的model
146
152
  * @param nodeId 节点ID
@@ -34,7 +34,6 @@ export default class BezierEdgeModel extends BaseEdgeModel {
34
34
  private getPath;
35
35
  initPoints(): void;
36
36
  updatePoints(): void;
37
- updatePath(): void;
38
37
  updateStartPoint(anchor: any): void;
39
38
  updateEndPoint(anchor: any): void;
40
39
  updateAdjustAnchor(anchor: Point, type: string): void;