gantt-task-react-v 1.2.7 → 1.2.8
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/gantt-task-react.es.js +13 -12
- package/dist/gantt-task-react.umd.js +13 -12
- package/package.json +1 -1
|
@@ -11148,22 +11148,23 @@ const calculateDataDatePosition = ({
|
|
|
11148
11148
|
}
|
|
11149
11149
|
});
|
|
11150
11150
|
if (tasksStartingOnDataDate.length > 0) {
|
|
11151
|
-
const
|
|
11152
|
-
|
|
11153
|
-
|
|
11154
|
-
|
|
11155
|
-
|
|
11156
|
-
|
|
11157
|
-
|
|
11158
|
-
|
|
11159
|
-
|
|
11160
|
-
|
|
11161
|
-
|
|
11151
|
+
const dataDatePosition = taskXCoordinate(
|
|
11152
|
+
dataDate,
|
|
11153
|
+
startDate,
|
|
11154
|
+
viewMode,
|
|
11155
|
+
columnWidth
|
|
11156
|
+
);
|
|
11157
|
+
const overlapProportion = 0.75;
|
|
11158
|
+
return dataDatePosition + columnWidth * overlapProportion;
|
|
11159
|
+
}
|
|
11160
|
+
if (viewMode === ViewMode.Day) {
|
|
11161
|
+
const dataDatePosition = taskXCoordinate(
|
|
11162
|
+
dataDate,
|
|
11162
11163
|
startDate,
|
|
11163
11164
|
viewMode,
|
|
11164
11165
|
columnWidth
|
|
11165
11166
|
);
|
|
11166
|
-
return
|
|
11167
|
+
return dataDatePosition + columnWidth * 0.5;
|
|
11167
11168
|
}
|
|
11168
11169
|
const dataIndex = getDatesDiff(dataDate, startDate, viewMode);
|
|
11169
11170
|
const extraMultiplier = () => {
|
|
@@ -11165,22 +11165,23 @@
|
|
|
11165
11165
|
}
|
|
11166
11166
|
});
|
|
11167
11167
|
if (tasksStartingOnDataDate.length > 0) {
|
|
11168
|
-
const
|
|
11169
|
-
|
|
11170
|
-
|
|
11171
|
-
|
|
11172
|
-
|
|
11173
|
-
|
|
11174
|
-
|
|
11175
|
-
|
|
11176
|
-
|
|
11177
|
-
|
|
11178
|
-
|
|
11168
|
+
const dataDatePosition = taskXCoordinate(
|
|
11169
|
+
dataDate,
|
|
11170
|
+
startDate,
|
|
11171
|
+
viewMode,
|
|
11172
|
+
columnWidth
|
|
11173
|
+
);
|
|
11174
|
+
const overlapProportion = 0.75;
|
|
11175
|
+
return dataDatePosition + columnWidth * overlapProportion;
|
|
11176
|
+
}
|
|
11177
|
+
if (viewMode === ViewMode.Day) {
|
|
11178
|
+
const dataDatePosition = taskXCoordinate(
|
|
11179
|
+
dataDate,
|
|
11179
11180
|
startDate,
|
|
11180
11181
|
viewMode,
|
|
11181
11182
|
columnWidth
|
|
11182
11183
|
);
|
|
11183
|
-
return
|
|
11184
|
+
return dataDatePosition + columnWidth * 0.5;
|
|
11184
11185
|
}
|
|
11185
11186
|
const dataIndex = getDatesDiff(dataDate, startDate, viewMode);
|
|
11186
11187
|
const extraMultiplier = () => {
|
package/package.json
CHANGED