gantt-task-react-v 1.0.53 → 1.0.54

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.
@@ -10954,7 +10954,9 @@ const GanttTodayInner = ({
10954
10954
  const remainderMillis = today.getTime() - currentDate.getTime();
10955
10955
  const percentOfInterval = remainderMillis / (nextDate.getTime() - currentDate.getTime());
10956
10956
  const tickX = index2 * columnWidth + percentOfInterval * columnWidth;
10957
- const x = rtl ? tickX + columnWidth : tickX;
10957
+ const offset2 = 5;
10958
+ const adjustedTickX = tickX + (rtl ? -offset2 : offset2);
10959
+ const x = rtl ? adjustedTickX + columnWidth : adjustedTickX;
10958
10960
  const color = todayColor || "var(--gantt-calendar-today-color)";
10959
10961
  return /* @__PURE__ */ jsxs(Fragment, { children: [
10960
10962
  /* @__PURE__ */ jsx(
@@ -11006,8 +11008,14 @@ const GanttTodayInner = ({
11006
11008
  return null;
11007
11009
  }
11008
11010
  const index2 = getDatesDiff(dataDate, startDate, viewMode);
11009
- const tickX = (index2 + 1) * columnWidth - 0.5;
11010
- const x = rtl ? tickX + columnWidth : tickX;
11011
+ const currentDate = getDateByOffset(startDate, index2, viewMode);
11012
+ const nextDate = getDateByOffset(startDate, index2 + 1, viewMode);
11013
+ const remainderMillis = dataDate.getTime() - currentDate.getTime();
11014
+ const percentOfInterval = remainderMillis / (nextDate.getTime() - currentDate.getTime());
11015
+ const tickX = index2 * columnWidth + percentOfInterval * columnWidth;
11016
+ const offset2 = 5;
11017
+ const adjustedTickX = tickX + (rtl ? -offset2 : offset2);
11018
+ const x = rtl ? adjustedTickX + columnWidth : adjustedTickX;
11011
11019
  const color = dataDateColor || "var(--gantt-calendar-today-color)";
11012
11020
  return /* @__PURE__ */ jsxs(Fragment, { children: [
11013
11021
  /* @__PURE__ */ jsx(
@@ -10971,7 +10971,9 @@
10971
10971
  const remainderMillis = today.getTime() - currentDate.getTime();
10972
10972
  const percentOfInterval = remainderMillis / (nextDate.getTime() - currentDate.getTime());
10973
10973
  const tickX = index2 * columnWidth + percentOfInterval * columnWidth;
10974
- const x = rtl ? tickX + columnWidth : tickX;
10974
+ const offset2 = 5;
10975
+ const adjustedTickX = tickX + (rtl ? -offset2 : offset2);
10976
+ const x = rtl ? adjustedTickX + columnWidth : adjustedTickX;
10975
10977
  const color = todayColor || "var(--gantt-calendar-today-color)";
10976
10978
  return /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
10977
10979
  /* @__PURE__ */ jsxRuntime.jsx(
@@ -11023,8 +11025,14 @@
11023
11025
  return null;
11024
11026
  }
11025
11027
  const index2 = getDatesDiff(dataDate, startDate, viewMode);
11026
- const tickX = (index2 + 1) * columnWidth - 0.5;
11027
- const x = rtl ? tickX + columnWidth : tickX;
11028
+ const currentDate = getDateByOffset(startDate, index2, viewMode);
11029
+ const nextDate = getDateByOffset(startDate, index2 + 1, viewMode);
11030
+ const remainderMillis = dataDate.getTime() - currentDate.getTime();
11031
+ const percentOfInterval = remainderMillis / (nextDate.getTime() - currentDate.getTime());
11032
+ const tickX = index2 * columnWidth + percentOfInterval * columnWidth;
11033
+ const offset2 = 5;
11034
+ const adjustedTickX = tickX + (rtl ? -offset2 : offset2);
11035
+ const x = rtl ? adjustedTickX + columnWidth : adjustedTickX;
11028
11036
  const color = dataDateColor || "var(--gantt-calendar-today-color)";
11029
11037
  return /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
11030
11038
  /* @__PURE__ */ jsxRuntime.jsx(
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gantt-task-react-v",
3
- "version": "1.0.53",
3
+ "version": "1.0.54",
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",