gantt-task-react-v 1.3.3 → 1.3.4

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.
@@ -13170,8 +13170,8 @@ const TaskGanttContentInner = (props) => {
13170
13170
  if (task.comparisonDates && comparisonDates) {
13171
13171
  const safeComparisonX = isNaN(comparisonDates.x) || !isFinite(comparisonDates.x) ? 0 : comparisonDates.x;
13172
13172
  const safeComparisonY = isNaN(comparisonDates.y) || !isFinite(comparisonDates.y) ? safeLevelY : comparisonDates.y;
13173
- const safeComparisonWidth = isNaN(comparisonDates.width) || !isFinite(comparisonDates.width) ? 0 : Math.max(comparisonDates.width, 0);
13174
- const safeComparisonHeight = isNaN(comparisonDates.height) || !isFinite(comparisonDates.height) ? 0 : Math.max(comparisonDates.height, 0);
13173
+ const safeComparisonWidth = isNaN(comparisonDates.width) || !isFinite(comparisonDates.width) ? 10 : Math.max(comparisonDates.width, 1);
13174
+ const safeComparisonHeight = isNaN(comparisonDates.height) || !isFinite(comparisonDates.height) ? 4 : Math.max(comparisonDates.height, 1);
13175
13175
  tasksRes.push(
13176
13176
  /* @__PURE__ */ jsx(
13177
13177
  "svg",
@@ -13863,7 +13863,8 @@ const countTaskCoordinates = (task, taskToRowIndexMap, startDate, viewMode, rtl,
13863
13863
  comparisonDates = {
13864
13864
  x: cx1,
13865
13865
  y: y + taskHeight,
13866
- width: Math.max(cx2 - cx1, 0),
13866
+ width: Math.max(cx2 - cx1, 1),
13867
+ // Ensure minimum width of 1px for visibility
13867
13868
  height: barComparisonTaskHeight
13868
13869
  };
13869
13870
  }
@@ -13187,8 +13187,8 @@
13187
13187
  if (task.comparisonDates && comparisonDates) {
13188
13188
  const safeComparisonX = isNaN(comparisonDates.x) || !isFinite(comparisonDates.x) ? 0 : comparisonDates.x;
13189
13189
  const safeComparisonY = isNaN(comparisonDates.y) || !isFinite(comparisonDates.y) ? safeLevelY : comparisonDates.y;
13190
- const safeComparisonWidth = isNaN(comparisonDates.width) || !isFinite(comparisonDates.width) ? 0 : Math.max(comparisonDates.width, 0);
13191
- const safeComparisonHeight = isNaN(comparisonDates.height) || !isFinite(comparisonDates.height) ? 0 : Math.max(comparisonDates.height, 0);
13190
+ const safeComparisonWidth = isNaN(comparisonDates.width) || !isFinite(comparisonDates.width) ? 10 : Math.max(comparisonDates.width, 1);
13191
+ const safeComparisonHeight = isNaN(comparisonDates.height) || !isFinite(comparisonDates.height) ? 4 : Math.max(comparisonDates.height, 1);
13192
13192
  tasksRes.push(
13193
13193
  /* @__PURE__ */ jsxRuntime.jsx(
13194
13194
  "svg",
@@ -13880,7 +13880,8 @@
13880
13880
  comparisonDates = {
13881
13881
  x: cx1,
13882
13882
  y: y + taskHeight,
13883
- width: Math.max(cx2 - cx1, 0),
13883
+ width: Math.max(cx2 - cx1, 1),
13884
+ // Ensure minimum width of 1px for visibility
13884
13885
  height: barComparisonTaskHeight
13885
13886
  };
13886
13887
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gantt-task-react-v",
3
- "version": "1.3.3",
3
+ "version": "1.3.4",
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",