-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathroot.ts
More file actions
30 lines (27 loc) · 1.04 KB
/
root.ts
File metadata and controls
30 lines (27 loc) · 1.04 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
import { ActionStore } from "./action";
import { NotefieldStore } from "./notefield";
import { NotefieldDisplayStore } from "./notefieldDisplay";
import { ProjectStore } from "./project";
import { UIStore } from "./ui";
import { WaveformStore } from "./waveform";
/**
* The root store for the application that contains all of the application data.
*/
export class RootStore {
readonly actions: ActionStore;
readonly notefieldDisplay: NotefieldDisplayStore;
readonly notefield: NotefieldStore;
readonly project: ProjectStore;
readonly waveform: WaveformStore;
readonly ui: UIStore;
constructor() {
this.actions = new ActionStore(this);
this.ui = new UIStore(this);
this.notefieldDisplay = new NotefieldDisplayStore(this);
this.project = new ProjectStore(this);
this.waveform = new WaveformStore(this);
// The NotefieldStore needs to be created last since it depends on the other
// stores as part of its initialization.
this.notefield = new NotefieldStore(this);
}
}