2025-03-31 18:22:40 +05:30
|
|
|
export function getActiveProperties(position: any): [string, string] {
|
|
|
|
|
if (position.top !== "auto" && position.left !== "auto") {
|
|
|
|
|
return ["top", "left"]; // Top-left
|
|
|
|
|
} else if (position.top !== "auto" && position.right !== "auto") {
|
|
|
|
|
return ["top", "right"]; // Top-right
|
|
|
|
|
} else if (position.bottom !== "auto" && position.left !== "auto") {
|
|
|
|
|
return ["bottom", "left"]; // Bottom-left
|
|
|
|
|
} else {
|
|
|
|
|
return ["bottom", "right"]; // Bottom-right
|
2025-03-29 19:21:20 +05:30
|
|
|
}
|
2025-03-31 18:22:40 +05:30
|
|
|
}
|