Commit a5bce670 authored by Igor Kulikov's avatar Igor Kulikov

Fix

parent f5779e75
...@@ -2486,7 +2486,7 @@ ...@@ -2486,7 +2486,7 @@
var prevEdge; var prevEdge;
if (connector.type === FlowchartConstants.leftConnectorType) { if (connector.type === FlowchartConstants.leftConnectorType) {
var _loop_1 = function (edge) { var _loop_1 = function (edge) {
if (edge === connector.id) { if (edge.destination === connector.id) {
swapConnector = this_1.modelService.connectors.getConnector(edge.source); swapConnector = this_1.modelService.connectors.getConnector(edge.source);
dragLabel = edge.label; dragLabel = edge.label;
prevEdge = edge; prevEdge = edge;
......
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
...@@ -1899,7 +1899,7 @@ class FcEdgeDraggingService { ...@@ -1899,7 +1899,7 @@ class FcEdgeDraggingService {
let prevEdge; let prevEdge;
if (connector.type === FlowchartConstants.leftConnectorType) { if (connector.type === FlowchartConstants.leftConnectorType) {
for (const edge of this.model.edges) { for (const edge of this.model.edges) {
if (edge === connector.id) { if (edge.destination === connector.id) {
swapConnector = this.modelService.connectors.getConnector(edge.source); swapConnector = this.modelService.connectors.getConnector(edge.source);
dragLabel = edge.label; dragLabel = edge.label;
prevEdge = edge; prevEdge = edge;
......
This source diff could not be displayed because it is too large. You can view the blob instead.
...@@ -2288,7 +2288,7 @@ var FcEdgeDraggingService = /** @class */ (function () { ...@@ -2288,7 +2288,7 @@ var FcEdgeDraggingService = /** @class */ (function () {
var prevEdge; var prevEdge;
if (connector.type === FlowchartConstants.leftConnectorType) { if (connector.type === FlowchartConstants.leftConnectorType) {
var _loop_1 = function (edge) { var _loop_1 = function (edge) {
if (edge === connector.id) { if (edge.destination === connector.id) {
swapConnector = this_1.modelService.connectors.getConnector(edge.source); swapConnector = this_1.modelService.connectors.getConnector(edge.source);
dragLabel = edge.label; dragLabel = edge.label;
prevEdge = edge; prevEdge = edge;
......
This source diff could not be displayed because it is too large. You can view the blob instead.
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
"version": "0.0.0", "version": "0.0.0",
"scripts": { "scripts": {
"ng": "ng", "ng": "ng",
"start": "ng serve --open", "start": "ng serve --open --port 4300",
"build": "ng build ngx-flowchart --prod", "build": "ng build ngx-flowchart --prod",
"test": "ng test ngx-flowchart", "test": "ng test ngx-flowchart",
"lint": "ng lint", "lint": "ng lint",
......
...@@ -50,7 +50,7 @@ export class FcEdgeDraggingService { ...@@ -50,7 +50,7 @@ export class FcEdgeDraggingService {
let prevEdge: FcEdge; let prevEdge: FcEdge;
if (connector.type === FlowchartConstants.leftConnectorType) { if (connector.type === FlowchartConstants.leftConnectorType) {
for (const edge of this.model.edges) { for (const edge of this.model.edges) {
if (edge === connector.id) { if (edge.destination === connector.id) {
swapConnector = this.modelService.connectors.getConnector(edge.source); swapConnector = this.modelService.connectors.getConnector(edge.source);
dragLabel = edge.label; dragLabel = edge.label;
prevEdge = edge; prevEdge = edge;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment