diff options
Diffstat (limited to 'packages/shared/src/stores/SharedStore.ts')
-rw-r--r-- | packages/shared/src/stores/SharedStore.ts | 12 |
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 | ||
29 | export const sharedStore = types.model("SharedStore", { | 29 | export 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 | ||
39 | export const emptySharedStore: SharedStoreSnapshotIn = { | ||
40 | browserViewBounds: { | ||
41 | }, | ||
42 | }; | ||
43 | |||
34 | export interface SharedStore extends Instance<typeof sharedStore> {} | 44 | export interface SharedStore extends Instance<typeof sharedStore> {} |
35 | 45 | ||
36 | export interface SharedStoreSnapshotIn extends SnapshotIn<typeof sharedStore> {} | 46 | export interface SharedStoreSnapshotIn extends SnapshotIn<typeof sharedStore> {} |