diff options
author | bobzel <zzzman@gmail.com> | 2023-12-14 10:21:02 -0500 |
---|---|---|
committer | bobzel <zzzman@gmail.com> | 2023-12-14 10:21:02 -0500 |
commit | 86de80fed15d80fbe3aae5ee820c0517fbe7065f (patch) | |
tree | ec1e3417fb8b4608faecc7e6554ccd1999a3ebff /src/client/util/SnappingManager.ts | |
parent | ec578023e2147ff4f14724bb94cb47191076e793 (diff) |
restored golden layout dragging.
Diffstat (limited to 'src/client/util/SnappingManager.ts')
-rw-r--r-- | src/client/util/SnappingManager.ts | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/client/util/SnappingManager.ts b/src/client/util/SnappingManager.ts index 48ec61f85..b8bd90983 100644 --- a/src/client/util/SnappingManager.ts +++ b/src/client/util/SnappingManager.ts @@ -1,5 +1,5 @@ import { observable, action, runInAction, reaction, makeObservable } from 'mobx'; -import { Doc } from '../../fields/Doc'; +import { Doc, Opt } from '../../fields/Doc'; export class SnappingManager { private static _manager: SnappingManager; @@ -33,9 +33,9 @@ export class SnappingManager { public static get IsDragging() { return this.Instance._isDragging; } // prettier-ignore public static get IsResizing() { return this.Instance._isResizing; } // prettier-ignore public static get CanEmbed() { return this.Instance._canEmbed; } // prettier-ignore - public static SetShiftKey = (down: boolean) => runInAction(() => (this.Instance._shiftKey = down)); - public static SetCtrlKey = (down: boolean) => runInAction(() => (this.Instance._ctrlKey = down)); - public static SetIsDragging = (dragging: boolean) => runInAction(() => (this.Instance._isDragging = dragging)); - public static SetIsResizing = (doc: Doc | undefined) => runInAction(() => (this.Instance._isResizing = doc)); - public static SetCanEmbed = (canEmbed: boolean) => runInAction(() => (this.Instance._canEmbed = canEmbed)); + public static SetShiftKey = (down: boolean) => runInAction(() => (this.Instance._shiftKey = down)); // prettier-ignore + public static SetCtrlKey = (down: boolean) => runInAction(() => (this.Instance._ctrlKey = down)); // prettier-ignore + public static SetIsDragging = (drag: boolean) => runInAction(() => (this.Instance._isDragging = drag)); // prettier-ignore + public static SetIsResizing = (doc: Opt<Doc>) => runInAction(() => (this.Instance._isResizing = doc)); // prettier-ignore + public static SetCanEmbed = (embed:boolean) => runInAction(() => (this.Instance._canEmbed = embed)); // prettier-ignore } |