gantt-task-react-v 1.0.52 → 1.0.53

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/README.md CHANGED
@@ -8,6 +8,8 @@
8
8
  - Fixed sticky gantt header on drag
9
9
  - Fixed Tooltip should show only on gantt section current view boundaries
10
10
  - Added Tooltip for comparison bars
11
+ - Show Custom Data Date Line
12
+ - Customize Data Date Line and Today Line Color and Label
11
13
 
12
14
  ## [Live Demo In Storybook](https://661071b076b50cb537c16c19-yrsukdfefs.chromatic.com/)
13
15
 
@@ -11006,11 +11006,7 @@ const GanttTodayInner = ({
11006
11006
  return null;
11007
11007
  }
11008
11008
  const index2 = getDatesDiff(dataDate, startDate, viewMode);
11009
- const currentDate = getDateByOffset(startDate, index2, viewMode);
11010
- const nextDate = getDateByOffset(startDate, index2 + 1, viewMode);
11011
- const remainderMillis = dataDate.getTime() - currentDate.getTime();
11012
- const percentOfInterval = remainderMillis / (nextDate.getTime() - currentDate.getTime());
11013
- const tickX = index2 * columnWidth + percentOfInterval * columnWidth;
11009
+ const tickX = (index2 + 1) * columnWidth - 0.5;
11014
11010
  const x = rtl ? tickX + columnWidth : tickX;
11015
11011
  const color = dataDateColor || "var(--gantt-calendar-today-color)";
11016
11012
  return /* @__PURE__ */ jsxs(Fragment, { children: [
@@ -11023,11 +11023,7 @@
11023
11023
  return null;
11024
11024
  }
11025
11025
  const index2 = getDatesDiff(dataDate, startDate, viewMode);
11026
- const currentDate = getDateByOffset(startDate, index2, viewMode);
11027
- const nextDate = getDateByOffset(startDate, index2 + 1, viewMode);
11028
- const remainderMillis = dataDate.getTime() - currentDate.getTime();
11029
- const percentOfInterval = remainderMillis / (nextDate.getTime() - currentDate.getTime());
11030
- const tickX = index2 * columnWidth + percentOfInterval * columnWidth;
11026
+ const tickX = (index2 + 1) * columnWidth - 0.5;
11031
11027
  const x = rtl ? tickX + columnWidth : tickX;
11032
11028
  const color = dataDateColor || "var(--gantt-calendar-today-color)";
11033
11029
  return /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gantt-task-react-v",
3
- "version": "1.0.52",
3
+ "version": "1.0.53",
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",