mirror of
https://github.com/ycnmhd/obsidian-lineage.git
synced 2026-07-22 10:10:28 +00:00
31 lines
746 B
TypeScript
31 lines
746 B
TypeScript
import { DocumentState } from 'src/view/store/document-reducer';
|
|
|
|
export const initialDocumentState = (): DocumentState => ({
|
|
columns: [],
|
|
state: {
|
|
activeBranch: {
|
|
node: '',
|
|
childNodes: new Set<string>(),
|
|
childGroups: new Set<string>(),
|
|
parentNodes: new Set<string>(),
|
|
siblingNodes: new Set<string>(),
|
|
},
|
|
draggedBranch: {
|
|
node: '',
|
|
childGroups: new Set<string>(),
|
|
},
|
|
editing: {
|
|
activeNodeId: '',
|
|
savePreviousNode: false,
|
|
},
|
|
ui: {
|
|
showHistorySidebar: false,
|
|
},
|
|
},
|
|
refs: {
|
|
container: null,
|
|
},
|
|
file: {
|
|
path: null,
|
|
},
|
|
});
|