@libxai/board 0.17.362 → 0.17.363

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
@@ -2313,39 +2313,36 @@ onContextMenu, // v0.8.0
2313
2313
  onDateChange, onDependencyCreate, allTaskPositions, onDragMove, // v0.13.0
2314
2314
  onHoverChange, }: TaskBarProps): react_jsx_runtime.JSX.Element;
2315
2315
 
2316
- interface DependencyHoverData {
2317
- x1: number;
2318
- y1: number;
2319
- x2: number;
2320
- y2: number;
2321
- verticalX?: number;
2322
- routeY?: number;
2323
- fromIndex?: number;
2324
- toIndex?: number;
2325
- onDelete: () => void;
2326
- lineStyle?: DependencyLineStyle;
2327
- mouseX?: number;
2328
- mouseY?: number;
2329
- }
2330
2316
  interface DependencyLineProps {
2331
2317
  x1: number;
2332
2318
  y1: number;
2333
2319
  x2: number;
2334
2320
  y2: number;
2335
- verticalX?: number;
2336
- routeY?: number;
2337
- fromIndex?: number;
2338
- toIndex?: number;
2339
- rowHeight?: number;
2340
2321
  theme: any;
2341
2322
  onDelete?: () => void;
2342
- onHoverChange?: (data: DependencyHoverData | null) => void;
2343
2323
  lineStyle?: DependencyLineStyle;
2324
+ isHoverLayer?: boolean;
2344
2325
  }
2345
- declare function DependencyLine({ x1, y1, x2, y2, verticalX: _verticalX, // v0.17.362: No longer used, kept for API compatibility
2346
- routeY: propRouteY, fromIndex, toIndex: _toIndex, // v0.17.351: Kept for API compatibility
2347
- rowHeight: _rowHeight, // v0.17.342: Available for future use
2348
- theme, onDelete, onHoverChange, lineStyle }: DependencyLineProps): react_jsx_runtime.JSX.Element;
2326
+ /**
2327
+ * v0.17.363: TRUE ClickUp-style dependency line routing
2328
+ *
2329
+ * RULES:
2330
+ * 1. Lines ALWAYS exit from the RIGHT side of the source bar
2331
+ * 2. Lines ALWAYS enter from the LEFT side of the destination bar
2332
+ * 3. The vertical segment is placed BEFORE (to the left of) the destination bar
2333
+ *
2334
+ * Pattern: source(right) → horizontal → vertical → horizontal → destination(left)
2335
+ *
2336
+ * For FORWARD dependencies (destination is to the right of source):
2337
+ * Exit right → go horizontal to turnX → turn down/up → go to destination Y → turn right → enter left
2338
+ * turnX = x2 - OFFSET (just before destination)
2339
+ *
2340
+ * For BACKWARD dependencies (destination is to the left of source):
2341
+ * Exit right → short horizontal → turn down/up → go to destination Y → turn LEFT → enter left
2342
+ * turnX = x2 - OFFSET (still before destination, which is now to the left)
2343
+ * This means we go RIGHT first, then DOWN, then LEFT to reach destination
2344
+ */
2345
+ declare function DependencyLine({ x1, y1, x2, y2, theme, onDelete, lineStyle, isHoverLayer, }: DependencyLineProps): react_jsx_runtime.JSX.Element;
2349
2346
 
2350
2347
  interface MilestoneProps {
2351
2348
  task: Task;
package/dist/index.d.ts CHANGED
@@ -2313,39 +2313,36 @@ onContextMenu, // v0.8.0
2313
2313
  onDateChange, onDependencyCreate, allTaskPositions, onDragMove, // v0.13.0
2314
2314
  onHoverChange, }: TaskBarProps): react_jsx_runtime.JSX.Element;
2315
2315
 
2316
- interface DependencyHoverData {
2317
- x1: number;
2318
- y1: number;
2319
- x2: number;
2320
- y2: number;
2321
- verticalX?: number;
2322
- routeY?: number;
2323
- fromIndex?: number;
2324
- toIndex?: number;
2325
- onDelete: () => void;
2326
- lineStyle?: DependencyLineStyle;
2327
- mouseX?: number;
2328
- mouseY?: number;
2329
- }
2330
2316
  interface DependencyLineProps {
2331
2317
  x1: number;
2332
2318
  y1: number;
2333
2319
  x2: number;
2334
2320
  y2: number;
2335
- verticalX?: number;
2336
- routeY?: number;
2337
- fromIndex?: number;
2338
- toIndex?: number;
2339
- rowHeight?: number;
2340
2321
  theme: any;
2341
2322
  onDelete?: () => void;
2342
- onHoverChange?: (data: DependencyHoverData | null) => void;
2343
2323
  lineStyle?: DependencyLineStyle;
2324
+ isHoverLayer?: boolean;
2344
2325
  }
2345
- declare function DependencyLine({ x1, y1, x2, y2, verticalX: _verticalX, // v0.17.362: No longer used, kept for API compatibility
2346
- routeY: propRouteY, fromIndex, toIndex: _toIndex, // v0.17.351: Kept for API compatibility
2347
- rowHeight: _rowHeight, // v0.17.342: Available for future use
2348
- theme, onDelete, onHoverChange, lineStyle }: DependencyLineProps): react_jsx_runtime.JSX.Element;
2326
+ /**
2327
+ * v0.17.363: TRUE ClickUp-style dependency line routing
2328
+ *
2329
+ * RULES:
2330
+ * 1. Lines ALWAYS exit from the RIGHT side of the source bar
2331
+ * 2. Lines ALWAYS enter from the LEFT side of the destination bar
2332
+ * 3. The vertical segment is placed BEFORE (to the left of) the destination bar
2333
+ *
2334
+ * Pattern: source(right) → horizontal → vertical → horizontal → destination(left)
2335
+ *
2336
+ * For FORWARD dependencies (destination is to the right of source):
2337
+ * Exit right → go horizontal to turnX → turn down/up → go to destination Y → turn right → enter left
2338
+ * turnX = x2 - OFFSET (just before destination)
2339
+ *
2340
+ * For BACKWARD dependencies (destination is to the left of source):
2341
+ * Exit right → short horizontal → turn down/up → go to destination Y → turn LEFT → enter left
2342
+ * turnX = x2 - OFFSET (still before destination, which is now to the left)
2343
+ * This means we go RIGHT first, then DOWN, then LEFT to reach destination
2344
+ */
2345
+ declare function DependencyLine({ x1, y1, x2, y2, theme, onDelete, lineStyle, isHoverLayer, }: DependencyLineProps): react_jsx_runtime.JSX.Element;
2349
2346
 
2350
2347
  interface MilestoneProps {
2351
2348
  task: Task;