mirror of
https://github.com/redphx/better-xcloud.git
synced 2025-06-07 08:07:18 +02:00
15 lines
452 B
TypeScript
Executable File
15 lines
452 B
TypeScript
Executable File
import type { NavigationElement, NavigationNearbyElements } from "@/modules/ui/dialog/navigation-dialog";
|
|
|
|
export class NavigationUtils {
|
|
static setNearby($elm: NavigationElement, nearby: NavigationNearbyElements) {
|
|
$elm.nearby = $elm.nearby || {};
|
|
|
|
let key: keyof typeof nearby;
|
|
for (key in nearby) {
|
|
$elm.nearby[key] = nearby[key] as any;
|
|
}
|
|
}
|
|
}
|
|
|
|
export const setNearby = NavigationUtils.setNearby;
|