diff options
author | Kristóf Marussy <kristof@marussy.com> | 2021-12-23 21:29:26 +0100 |
---|---|---|
committer | Kristóf Marussy <kristof@marussy.com> | 2021-12-23 21:29:26 +0100 |
commit | d303f2e3415237e1a519db21ad4e089c2ba7e9f9 (patch) | |
tree | 5d562dcaf7bb9c83c1930c7d7cf1b2c9de75e15b /packages/shared/src/stores/SharedStore.ts | |
parent | build: Enable asar (diff) | |
download | sophie-d303f2e3415237e1a519db21ad4e089c2ba7e9f9.tar.gz sophie-d303f2e3415237e1a519db21ad4e089c2ba7e9f9.tar.zst sophie-d303f2e3415237e1a519db21ad4e089c2ba7e9f9.zip |
feat: Add BrowserView and synchronize its position
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> {} |