aboutsummaryrefslogtreecommitdiffstats
path: root/packages/shared/src/stores/SharedStore.ts
diff options
context:
space:
mode:
authorLibravatar Kristóf Marussy <kristof@marussy.com>2021-12-23 21:29:26 +0100
committerLibravatar Kristóf Marussy <kristof@marussy.com>2021-12-23 21:29:26 +0100
commitd303f2e3415237e1a519db21ad4e089c2ba7e9f9 (patch)
tree5d562dcaf7bb9c83c1930c7d7cf1b2c9de75e15b /packages/shared/src/stores/SharedStore.ts
parentbuild: Enable asar (diff)
downloadsophie-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.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> {}