mirror of
https://github.com/gpxstudio/gpx.studio.git
synced 2026-10-27 02:27:18 +00:00
fixes
This commit is contained in:
1 parent
5373d0f0d4
commit
3012f6bf73
8 files changed
+138
-69
No files matched your search
@@ -28,6 +28,15 @@ export const dragging: { paths: string[]; target: string | undefined } = $state(
|
||||
target: undefined,
|
||||
});
|
||||
|
||||
/** What the rows of the explorer can do to the folders of its tree (see `Explorer`). */
|
||||
export type ExplorerFolders = {
|
||||
/** Opens a folder of the tree, and the folders it is in. */
|
||||
open(path: string): void;
|
||||
/** A folder was renamed or moved: it stays open or closed, and so does what is in it. */
|
||||
moved(from: string, to: string): void;
|
||||
};
|
||||
export const explorerFoldersKey = 'explorer-folders';
|
||||
|
||||
/** The rows of the explorer that `element` is in, as they are shown: their path and kind. */
|
||||
export function treeRows(element: Element | null | undefined): { path: string; kind: string }[] {
|
||||
const tree = element?.closest('[data-explorer]');
|
||||
|
||||
Reference in new issue
Block a user