Merge branch 'main' into enhance/fitView

This commit is contained in:
peterkogo
2025-03-25 13:21:11 +01:00
23 changed files with 274 additions and 74 deletions

View File

@@ -278,6 +278,14 @@ svg.xy-flow__connectionline {
bottom: 0;
}
&.top,
&.bottom {
&.center {
left: 50%;
transform: translateX(-50%);
}
}
&.left {
left: 0;
}
@@ -286,9 +294,12 @@ svg.xy-flow__connectionline {
right: 0;
}
&.center {
left: 50%;
transform: translateX(-50%);
&.left,
&.right {
&.center {
top: 50%;
transform: translateY(-50%);
}
}
}

View File

@@ -169,7 +169,15 @@ export type UpdateNodeInternals = (nodeId: string | string[]) => void;
*
* @public
*/
export type PanelPosition = 'top-left' | 'top-center' | 'top-right' | 'bottom-left' | 'bottom-center' | 'bottom-right';
export type PanelPosition =
| 'top-left'
| 'top-center'
| 'top-right'
| 'bottom-left'
| 'bottom-center'
| 'bottom-right'
| 'center-left'
| 'center-right';
export type ProOptions = {
account?: string;