@libxai/board 0.17.363 → 0.17.365
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.cjs +11 -11
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +8 -9
- package/dist/index.d.ts +8 -9
- package/dist/index.js +11 -11
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -2324,23 +2324,22 @@ interface DependencyLineProps {
|
|
|
2324
2324
|
isHoverLayer?: boolean;
|
|
2325
2325
|
}
|
|
2326
2326
|
/**
|
|
2327
|
-
* v0.17.
|
|
2327
|
+
* v0.17.364: TRUE ClickUp-style dependency line routing
|
|
2328
2328
|
*
|
|
2329
2329
|
* RULES:
|
|
2330
2330
|
* 1. Lines ALWAYS exit from the RIGHT side of the source bar
|
|
2331
2331
|
* 2. Lines ALWAYS enter from the LEFT side of the destination bar
|
|
2332
|
-
* 3. The vertical segment is placed
|
|
2332
|
+
* 3. The vertical segment is ALWAYS placed to the LEFT of the destination bar
|
|
2333
2333
|
*
|
|
2334
2334
|
* Pattern: source(right) → horizontal → vertical → horizontal → destination(left)
|
|
2335
2335
|
*
|
|
2336
|
-
* For FORWARD dependencies (
|
|
2337
|
-
*
|
|
2338
|
-
*
|
|
2336
|
+
* For FORWARD dependencies (x2 > x1, destination RIGHT of source):
|
|
2337
|
+
* The vertical segment is just before destination: turnX = x2 - OFFSET
|
|
2338
|
+
* Path: right → horizontal → down/up → right into destination
|
|
2339
2339
|
*
|
|
2340
|
-
* For BACKWARD dependencies (
|
|
2341
|
-
*
|
|
2342
|
-
*
|
|
2343
|
-
* This means we go RIGHT first, then DOWN, then LEFT to reach destination
|
|
2340
|
+
* For BACKWARD dependencies (x2 <= x1, destination LEFT of or at same X as source):
|
|
2341
|
+
* The vertical segment must still be LEFT of destination: turnX = x2 - OFFSET
|
|
2342
|
+
* Path: right → horizontal past source → down/up → LEFT back to destination
|
|
2344
2343
|
*/
|
|
2345
2344
|
declare function DependencyLine({ x1, y1, x2, y2, theme, onDelete, lineStyle, isHoverLayer, }: DependencyLineProps): react_jsx_runtime.JSX.Element;
|
|
2346
2345
|
|
package/dist/index.d.ts
CHANGED
|
@@ -2324,23 +2324,22 @@ interface DependencyLineProps {
|
|
|
2324
2324
|
isHoverLayer?: boolean;
|
|
2325
2325
|
}
|
|
2326
2326
|
/**
|
|
2327
|
-
* v0.17.
|
|
2327
|
+
* v0.17.364: TRUE ClickUp-style dependency line routing
|
|
2328
2328
|
*
|
|
2329
2329
|
* RULES:
|
|
2330
2330
|
* 1. Lines ALWAYS exit from the RIGHT side of the source bar
|
|
2331
2331
|
* 2. Lines ALWAYS enter from the LEFT side of the destination bar
|
|
2332
|
-
* 3. The vertical segment is placed
|
|
2332
|
+
* 3. The vertical segment is ALWAYS placed to the LEFT of the destination bar
|
|
2333
2333
|
*
|
|
2334
2334
|
* Pattern: source(right) → horizontal → vertical → horizontal → destination(left)
|
|
2335
2335
|
*
|
|
2336
|
-
* For FORWARD dependencies (
|
|
2337
|
-
*
|
|
2338
|
-
*
|
|
2336
|
+
* For FORWARD dependencies (x2 > x1, destination RIGHT of source):
|
|
2337
|
+
* The vertical segment is just before destination: turnX = x2 - OFFSET
|
|
2338
|
+
* Path: right → horizontal → down/up → right into destination
|
|
2339
2339
|
*
|
|
2340
|
-
* For BACKWARD dependencies (
|
|
2341
|
-
*
|
|
2342
|
-
*
|
|
2343
|
-
* This means we go RIGHT first, then DOWN, then LEFT to reach destination
|
|
2340
|
+
* For BACKWARD dependencies (x2 <= x1, destination LEFT of or at same X as source):
|
|
2341
|
+
* The vertical segment must still be LEFT of destination: turnX = x2 - OFFSET
|
|
2342
|
+
* Path: right → horizontal past source → down/up → LEFT back to destination
|
|
2344
2343
|
*/
|
|
2345
2344
|
declare function DependencyLine({ x1, y1, x2, y2, theme, onDelete, lineStyle, isHoverLayer, }: DependencyLineProps): react_jsx_runtime.JSX.Element;
|
|
2346
2345
|
|