gantt-task-react-v 1.0.52 → 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.
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
 
@@ -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(
@@ -11011,7 +11013,9 @@ const GanttTodayInner = ({
11011
11013
  const remainderMillis = dataDate.getTime() - currentDate.getTime();
11012
11014
  const percentOfInterval = remainderMillis / (nextDate.getTime() - currentDate.getTime());
11013
11015
  const tickX = index2 * columnWidth + percentOfInterval * columnWidth;
11014
- const x = rtl ? tickX + columnWidth : tickX;
11016
+ const offset2 = 5;
11017
+ const adjustedTickX = tickX + (rtl ? -offset2 : offset2);
11018
+ const x = rtl ? adjustedTickX + columnWidth : adjustedTickX;
11015
11019
  const color = dataDateColor || "var(--gantt-calendar-today-color)";
11016
11020
  return /* @__PURE__ */ jsxs(Fragment, { children: [
11017
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(
@@ -11028,7 +11030,9 @@
11028
11030
  const remainderMillis = dataDate.getTime() - currentDate.getTime();
11029
11031
  const percentOfInterval = remainderMillis / (nextDate.getTime() - currentDate.getTime());
11030
11032
  const tickX = index2 * columnWidth + percentOfInterval * columnWidth;
11031
- const x = rtl ? tickX + columnWidth : tickX;
11033
+ const offset2 = 5;
11034
+ const adjustedTickX = tickX + (rtl ? -offset2 : offset2);
11035
+ const x = rtl ? adjustedTickX + columnWidth : adjustedTickX;
11032
11036
  const color = dataDateColor || "var(--gantt-calendar-today-color)";
11033
11037
  return /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
11034
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.52",
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",