gantt-task-react-powern 0.4.84 → 0.4.85
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 +16 -1
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +16 -1
- package/dist/index.modern.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1523,7 +1523,7 @@ var convertToBar = function convertToBar(task, index, dates, columnWidth, rowHei
|
|
|
1523
1523
|
};
|
|
1524
1524
|
|
|
1525
1525
|
var convertToMilestone = function convertToMilestone(task, index, dates, columnWidth, rowHeight, taskHeight, barCornerRadius, handleWidth, milestoneBackgroundColor, milestoneBackgroundSelectedColor) {
|
|
1526
|
-
var x = task.start && task.end ? taskXCoordinate(task.
|
|
1526
|
+
var x = task.start && task.end ? taskXCoordinate(task.end, dates, columnWidth) : 0;
|
|
1527
1527
|
var y = taskYCoordinate(index, rowHeight, taskHeight);
|
|
1528
1528
|
var x1 = task.start && task.end ? x - taskHeight * 0.5 : 0;
|
|
1529
1529
|
var x2 = task.start && task.end ? x + taskHeight * 0.5 : 0;
|
|
@@ -2570,6 +2570,21 @@ var TaskGanttContent = function TaskGanttContent(_ref) {
|
|
|
2570
2570
|
}, tasks.map(function (_task) {
|
|
2571
2571
|
var task = _task.start.getTime() > 0 && _task.end.getTime() > 0 || _task.actualStart.getTime() > 0 && _task.actualEnd.getTime() > 0 ? _task : undefined;
|
|
2572
2572
|
|
|
2573
|
+
if (!task && _task.typeInternal === "milestone") {
|
|
2574
|
+
return React__default.createElement(Milestone, {
|
|
2575
|
+
task: _task,
|
|
2576
|
+
arrowIndent: arrowIndent,
|
|
2577
|
+
taskHeight: taskHeight,
|
|
2578
|
+
isProgressChangeable: false,
|
|
2579
|
+
isDateChangeable: false,
|
|
2580
|
+
isDelete: !_task.isDisabled,
|
|
2581
|
+
onEventStart: function onEventStart() {},
|
|
2582
|
+
key: _task.id,
|
|
2583
|
+
isSelected: !!selectedTask && _task.id === selectedTask.id,
|
|
2584
|
+
rtl: rtl
|
|
2585
|
+
});
|
|
2586
|
+
}
|
|
2587
|
+
|
|
2573
2588
|
if (!task) {
|
|
2574
2589
|
return React__default.createElement("g", {
|
|
2575
2590
|
key: _task.id,
|