From d303f2e3415237e1a519db21ad4e089c2ba7e9f9 Mon Sep 17 00:00:00 2001 From: Kristóf Marussy Date: Thu, 23 Dec 2021 21:29:26 +0100 Subject: feat: Add BrowserView and synchronize its position --- packages/shared/src/stores/SharedStore.ts | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) (limited to 'packages/shared/src/stores/SharedStore.ts') 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 { } from 'mobx-state-tree'; export const sharedStore = types.model("SharedStore", { + browserViewBounds: types.model("BrowserViewBoundsStore", { + x: 0, + y: 0, + width: 0, + height: 0, + }), shouldUseDarkColors: true, - clickCount: 0 }); +export const emptySharedStore: SharedStoreSnapshotIn = { + browserViewBounds: { + }, +}; + export interface SharedStore extends Instance {} export interface SharedStoreSnapshotIn extends SnapshotIn {} -- cgit v1.2.3-70-g09d2