@libxai/board 0.13.0 → 0.13.2

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/index.d.cts CHANGED
@@ -2215,18 +2215,19 @@ declare const ganttUtils: {
2215
2215
  autoScheduleDependents: (tasks: Task[], changedTaskId: string) => Task[];
2216
2216
  /**
2217
2217
  * v0.13.0: Calculate cascade preview positions for dependent tasks during drag
2218
- * Returns preview positions showing where dependent tasks will move
2219
- * @param tasks - All tasks (flattened)
2218
+ * v0.13.2: FIXED - Preview positions now match EXACTLY where tasks will land
2219
+ * Uses same logic as autoScheduleDependents: dependent starts 1 day after parent ends
2220
+ * @param tasks - All tasks (nested structure)
2220
2221
  * @param draggedTaskId - Task being dragged
2221
2222
  * @param daysDelta - How many days the dragged task is being moved
2222
2223
  * @param flatTasks - Flattened task list with row indices
2223
2224
  * @param timelineStartDate - Start date of the timeline
2224
- * @param dayWidth - Width of one day in pixels
2225
+ * @param scaledDayWidth - Width of one day in pixels (already includes zoom: dayWidth * zoom)
2225
2226
  * @param rowHeight - Height of each row
2226
2227
  * @param headerHeight - Height of the header
2227
2228
  * @returns Array of DependentTaskPreview objects
2228
2229
  */
2229
- calculateCascadePreview: (tasks: Task[], draggedTaskId: string, daysDelta: number, flatTasks: Task[], timelineStartDate: Date, dayWidth: number, rowHeight: number, headerHeight: number) => Array<{
2230
+ calculateCascadePreview: (tasks: Task[], draggedTaskId: string, daysDelta: number, flatTasks: Task[], timelineStartDate: Date, scaledDayWidth: number, rowHeight: number, headerHeight: number) => Array<{
2230
2231
  taskId: string;
2231
2232
  taskName: string;
2232
2233
  originalX: number;
package/dist/index.d.ts CHANGED
@@ -2215,18 +2215,19 @@ declare const ganttUtils: {
2215
2215
  autoScheduleDependents: (tasks: Task[], changedTaskId: string) => Task[];
2216
2216
  /**
2217
2217
  * v0.13.0: Calculate cascade preview positions for dependent tasks during drag
2218
- * Returns preview positions showing where dependent tasks will move
2219
- * @param tasks - All tasks (flattened)
2218
+ * v0.13.2: FIXED - Preview positions now match EXACTLY where tasks will land
2219
+ * Uses same logic as autoScheduleDependents: dependent starts 1 day after parent ends
2220
+ * @param tasks - All tasks (nested structure)
2220
2221
  * @param draggedTaskId - Task being dragged
2221
2222
  * @param daysDelta - How many days the dragged task is being moved
2222
2223
  * @param flatTasks - Flattened task list with row indices
2223
2224
  * @param timelineStartDate - Start date of the timeline
2224
- * @param dayWidth - Width of one day in pixels
2225
+ * @param scaledDayWidth - Width of one day in pixels (already includes zoom: dayWidth * zoom)
2225
2226
  * @param rowHeight - Height of each row
2226
2227
  * @param headerHeight - Height of the header
2227
2228
  * @returns Array of DependentTaskPreview objects
2228
2229
  */
2229
- calculateCascadePreview: (tasks: Task[], draggedTaskId: string, daysDelta: number, flatTasks: Task[], timelineStartDate: Date, dayWidth: number, rowHeight: number, headerHeight: number) => Array<{
2230
+ calculateCascadePreview: (tasks: Task[], draggedTaskId: string, daysDelta: number, flatTasks: Task[], timelineStartDate: Date, scaledDayWidth: number, rowHeight: number, headerHeight: number) => Array<{
2230
2231
  taskId: string;
2231
2232
  taskName: string;
2232
2233
  originalX: number;