gantt-task-react-powern 0.4.52 → 0.4.54

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 CHANGED
@@ -1215,13 +1215,13 @@ var Arrow = function Arrow(_ref) {
1215
1215
  var drownPathAndTriangle = function drownPathAndTriangle(taskFrom, taskTo, rowHeight, taskHeight, arrowIndent) {
1216
1216
  var taskToStart, taskFromEnd;
1217
1217
 
1218
- if (taskTo.x1 >= 0 && taskTo.actualx1 >= 0) {
1218
+ if (taskTo.x1 > 0 && taskTo.actualx1 > 0) {
1219
1219
  taskToStart = Math.min(taskTo.x1, taskTo.actualx1);
1220
- } else if (taskTo.x1 >= 0) taskToStart = taskTo.x1;else if (taskTo.actualx1 >= 0) taskToStart = taskTo.actualx1;else taskToStart = 0;
1220
+ } else if (taskTo.x1 > 0) taskToStart = taskTo.x1;else if (taskTo.actualx1 > 0) taskToStart = taskTo.actualx1;else taskToStart = 0;
1221
1221
 
1222
- if (taskFrom.x2 >= 0 && taskFrom.actualx2 >= 0) {
1222
+ if (taskFrom.x2 > 0 && taskFrom.actualx2 > 0) {
1223
1223
  taskFromEnd = Math.min(taskFrom.x2, taskFrom.actualx2);
1224
- } else if (taskFrom.x2 >= 0) taskFromEnd = taskFrom.x2;else if (taskFrom.actualx2 >= 0) taskFromEnd = taskFrom.actualx2;else taskFromEnd = 0;
1224
+ } else if (taskFrom.x2 > 0) taskFromEnd = taskFrom.x2;else if (taskFrom.actualx2 > 0) taskFromEnd = taskFrom.actualx2;else taskFromEnd = 0;
1225
1225
 
1226
1226
  var indexCompare = taskFrom.index > taskTo.index ? -1 : 1;
1227
1227
  var taskToEndPosition = taskTo.y + taskHeight / 2;
@@ -1325,6 +1325,7 @@ var convertToBar = function convertToBar(task, index, dates, columnWidth, rowHei
1325
1325
  progressSelectedColor: barProgressSelectedColor
1326
1326
  }, task.styles);
1327
1327
 
1328
+ console.debug(task);
1328
1329
  return _extends({}, task, {
1329
1330
  typeInternal: typeInternal,
1330
1331
  x1: x1,