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
|
-
|
|
11151
|
-
|
|
11152
|
-
|
|
11153
|
-
|
|
11154
|
-
|
|
11155
|
-
|
|
11156
|
-
|
|
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
|
-
|
|
11168
|
-
|
|
11169
|
-
|
|
11170
|
-
|
|
11171
|
-
|
|
11172
|
-
|
|
11173
|
-
|
|
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