feat: add outline plugin (#3624)

Co-authored-by: codert <codert.sn@gmail.com>
(cherry picked from commit 6f9dfcc3c1)
This commit is contained in:
Alex Yang
2023-08-16 02:34:26 -05:00
parent 7f7bf6fef9
commit ab70ab2126
12 changed files with 312 additions and 71 deletions
+9 -1
View File
@@ -33,6 +33,7 @@ export type LayoutParentNode = {
splitPercentage: number; // 0 - 100
first: string;
second: LayoutNode;
maxWidth?: (number | undefined)[];
};
export type ExpectedLayout =
@@ -48,7 +49,14 @@ export type ExpectedLayout =
export declare const pushLayoutAtom: WritableAtom<
null,
[string, (div: HTMLDivElement) => () => void],
| [
string,
(div: HTMLDivElement) => () => void,
{
maxWidth: (number | undefined)[];
},
]
| [string, (div: HTMLDivElement) => () => void],
void
>;
export declare const deleteLayoutAtom: WritableAtom<null, [string], void>;