aboutsummaryrefslogtreecommitdiffstats
path: root/packages/shared/src/stores/SharedStore.ts
diff options
context:
space:
mode:
Diffstat (limited to 'packages/shared/src/stores/SharedStore.ts')
-rw-r--r--packages/shared/src/stores/SharedStore.ts12
1 files changed, 11 insertions, 1 deletions
diff --git a/packages/shared/src/stores/SharedStore.ts b/packages/shared/src/stores/SharedStore.ts
index 7fd65b7..7c2b742 100644
--- a/packages/shared/src/stores/SharedStore.ts
+++ b/packages/shared/src/stores/SharedStore.ts
@@ -27,10 +27,20 @@ import {
27} from 'mobx-state-tree'; 27} from 'mobx-state-tree';
28 28
29export const sharedStore = types.model("SharedStore", { 29export const sharedStore = types.model("SharedStore", {
30 browserViewBounds: types.model("BrowserViewBoundsStore", {
31 x: 0,
32 y: 0,
33 width: 0,
34 height: 0,
35 }),
30 shouldUseDarkColors: true, 36 shouldUseDarkColors: true,
31 clickCount: 0
32}); 37});
33 38
39export const emptySharedStore: SharedStoreSnapshotIn = {
40 browserViewBounds: {
41 },
42};
43
34export interface SharedStore extends Instance<typeof sharedStore> {} 44export interface SharedStore extends Instance<typeof sharedStore> {}
35 45
36export interface SharedStoreSnapshotIn extends SnapshotIn<typeof sharedStore> {} 46export interface SharedStoreSnapshotIn extends SnapshotIn<typeof sharedStore> {}