gantt-task-react-v 1.2.4 → 1.2.6

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.
@@ -11147,19 +11147,14 @@ const calculateDataDatePosition = ({
11147
11147
  }
11148
11148
  });
11149
11149
  if (tasksStartingOnDataDate.length > 0) {
11150
- let maxEndPosition = -Infinity;
11151
- for (const task of tasksStartingOnDataDate) {
11152
- const taskEndX = taskXCoordinate(
11153
- task.end,
11154
- startDate,
11155
- viewMode,
11156
- columnWidth
11157
- );
11158
- maxEndPosition = Math.max(maxEndPosition, taskEndX);
11159
- }
11160
- if (maxEndPosition > -Infinity) {
11161
- return maxEndPosition;
11162
- }
11150
+ const dataDatePosition = taskXCoordinate(
11151
+ dataDate,
11152
+ startDate,
11153
+ viewMode,
11154
+ columnWidth
11155
+ );
11156
+ const offsetPercentage = 0.95;
11157
+ return dataDatePosition + columnWidth * offsetPercentage;
11163
11158
  }
11164
11159
  const dataIndex = getDatesDiff(dataDate, startDate, viewMode);
11165
11160
  const extraMultiplier = () => {
@@ -11164,19 +11164,14 @@
11164
11164
  }
11165
11165
  });
11166
11166
  if (tasksStartingOnDataDate.length > 0) {
11167
- let maxEndPosition = -Infinity;
11168
- for (const task of tasksStartingOnDataDate) {
11169
- const taskEndX = taskXCoordinate(
11170
- task.end,
11171
- startDate,
11172
- viewMode,
11173
- columnWidth
11174
- );
11175
- maxEndPosition = Math.max(maxEndPosition, taskEndX);
11176
- }
11177
- if (maxEndPosition > -Infinity) {
11178
- return maxEndPosition;
11179
- }
11167
+ const dataDatePosition = taskXCoordinate(
11168
+ dataDate,
11169
+ startDate,
11170
+ viewMode,
11171
+ columnWidth
11172
+ );
11173
+ const offsetPercentage = 0.95;
11174
+ return dataDatePosition + columnWidth * offsetPercentage;
11180
11175
  }
11181
11176
  const dataIndex = getDatesDiff(dataDate, startDate, viewMode);
11182
11177
  const extraMultiplier = () => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gantt-task-react-v",
3
- "version": "1.2.4",
3
+ "version": "1.2.6",
4
4
  "description": "Interactive Gantt Chart for React with TypeScript.",
5
5
  "author": "aguilanbon",
6
6
  "homepage": "https://github.com/aguilanbon/gantt-task-react-v",