mirror of
https://github.com/TriliumNext/Notes.git
synced 2025-08-08 01:05:28 +08:00
chore(client/ts): port services/resizer
This commit is contained in:
parent
7c2002c589
commit
f3a7de58d5
@ -1,9 +1,9 @@
|
|||||||
import options from "./options.js";
|
import options from "./options.js";
|
||||||
|
|
||||||
let leftInstance;
|
let leftInstance: ReturnType<typeof Split> | null;
|
||||||
let rightInstance;
|
let rightInstance: ReturnType<typeof Split> | null;
|
||||||
|
|
||||||
function setupLeftPaneResizer(leftPaneVisible) {
|
function setupLeftPaneResizer(leftPaneVisible: boolean) {
|
||||||
if (leftInstance) {
|
if (leftInstance) {
|
||||||
leftInstance.destroy();
|
leftInstance.destroy();
|
||||||
leftInstance = null;
|
leftInstance = null;
|
7
src/public/app/types.d.ts
vendored
7
src/public/app/types.d.ts
vendored
@ -85,4 +85,11 @@ declare global {
|
|||||||
});
|
});
|
||||||
};
|
};
|
||||||
var dayjs: {};
|
var dayjs: {};
|
||||||
|
var Split: (selectors: string[], config: {
|
||||||
|
sizes: [ number, number ];
|
||||||
|
gutterSize: number;
|
||||||
|
onDragEnd: (sizes: [ number, number ]) => void;
|
||||||
|
}) => {
|
||||||
|
destroy();
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user