gantt-task-react-powern 0.4.52 → 0.4.53
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/dist/index.js +4 -4
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +4 -4
- package/dist/index.modern.js.map +1 -1
- package/package.json +1 -1
package/dist/index.modern.js
CHANGED
|
@@ -1214,13 +1214,13 @@ var Arrow = function Arrow(_ref) {
|
|
|
1214
1214
|
var drownPathAndTriangle = function drownPathAndTriangle(taskFrom, taskTo, rowHeight, taskHeight, arrowIndent) {
|
|
1215
1215
|
var taskToStart, taskFromEnd;
|
|
1216
1216
|
|
|
1217
|
-
if (taskTo.x1
|
|
1217
|
+
if (taskTo.x1 > 0 && taskTo.actualx1 > 0) {
|
|
1218
1218
|
taskToStart = Math.min(taskTo.x1, taskTo.actualx1);
|
|
1219
|
-
} else if (taskTo.x1
|
|
1219
|
+
} else if (taskTo.x1 > 0) taskToStart = taskTo.x1;else if (taskTo.actualx1 > 0) taskToStart = taskTo.actualx1;else taskToStart = 0;
|
|
1220
1220
|
|
|
1221
|
-
if (taskFrom.x2
|
|
1221
|
+
if (taskFrom.x2 > 0 && taskFrom.actualx2 > 0) {
|
|
1222
1222
|
taskFromEnd = Math.min(taskFrom.x2, taskFrom.actualx2);
|
|
1223
|
-
} else if (taskFrom.x2
|
|
1223
|
+
} else if (taskFrom.x2 > 0) taskFromEnd = taskFrom.x2;else if (taskFrom.actualx2 > 0) taskFromEnd = taskFrom.actualx2;else taskFromEnd = 0;
|
|
1224
1224
|
|
|
1225
1225
|
var indexCompare = taskFrom.index > taskTo.index ? -1 : 1;
|
|
1226
1226
|
var taskToEndPosition = taskTo.y + taskHeight / 2;
|