@visactor/vtable-plugins 1.18.5-alpha.1 → 1.18.6-alpha.0
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/vtable-plugins.js
CHANGED
|
@@ -19372,13 +19372,14 @@
|
|
|
19372
19372
|
isMilestone = taskRecord.type === TaskType.MILESTONE;
|
|
19373
19373
|
if (isMilestone && !startDate || !isMilestone && (taskDays <= 0 || !startDate || !endDate || startDate.getTime() > endDate.getTime())) return null;
|
|
19374
19374
|
const {
|
|
19375
|
-
|
|
19376
|
-
|
|
19377
|
-
|
|
19378
|
-
|
|
19379
|
-
|
|
19380
|
-
taskbarHeight = taskBarStyle.width
|
|
19381
|
-
|
|
19375
|
+
unit: unit,
|
|
19376
|
+
step: step
|
|
19377
|
+
} = this._scene._gantt.parsedOptions.reverseSortedTimelineScales[0];
|
|
19378
|
+
let taskBarSize = computeCountToTimeScale(endDate, startDate, unit, step, 1) * this._scene._gantt.parsedOptions.timelineColWidth;
|
|
19379
|
+
const taskBarStyle = this._scene._gantt.getTaskBarStyle(index, childIndex),
|
|
19380
|
+
taskbarHeight = taskBarStyle.width;
|
|
19381
|
+
isValid$1(taskBarStyle.minSize) && (taskBarSize = Math.max(taskBarSize, taskBarStyle.minSize));
|
|
19382
|
+
const oneTaskHeigth = this._scene._gantt.parsedOptions.rowHeight,
|
|
19382
19383
|
milestoneTaskBarHeight = this._scene._gantt.parsedOptions.taskBarMilestoneStyle.width,
|
|
19383
19384
|
x = computeCountToTimeScale(startDate, this._scene._gantt.parsedOptions.minDate, unit, step) * this._scene._gantt.parsedOptions.timelineColWidth - (isMilestone ? milestoneTaskBarHeight / 2 : 0),
|
|
19384
19385
|
y = this._scene._gantt.getRowsHeightByIndex(0, index - 1) + (this._scene._gantt.parsedOptions.tasksShowMode === TasksShowMode.Sub_Tasks_Separate ? (null !== (_a = childIndex) && void 0 !== _a ? _a : 0) * oneTaskHeigth : this._scene._gantt.parsedOptions.tasksShowMode === TasksShowMode.Sub_Tasks_Arrange || this._scene._gantt.parsedOptions.tasksShowMode === TasksShowMode.Sub_Tasks_Compact ? taskRecord.vtable_gantt_showIndex * oneTaskHeigth : 0) + (oneTaskHeigth - (isMilestone ? milestoneTaskBarHeight : taskbarHeight)) / 2,
|