diff options
author | Michael Foiani <sotech117@michaels-mbp-3.devices.brown.edu> | 2022-04-28 16:07:41 -0400 |
---|---|---|
committer | Michael Foiani <sotech117@michaels-mbp-3.devices.brown.edu> | 2022-04-28 16:07:41 -0400 |
commit | 42819362e50bc35b3bca228607fcc516d528bb1b (patch) | |
tree | 35b9f7932470017761c23aea2d9b1dbe07c8c3ea /src | |
parent | 756c06b3fcc889084ad2f68e217887d651f19f54 (diff) |
Work with bob briefly.
Diffstat (limited to 'src')
-rw-r--r-- | src/client/apis/recording/RecordingApi.ts | 23 |
1 files changed, 22 insertions, 1 deletions
diff --git a/src/client/apis/recording/RecordingApi.ts b/src/client/apis/recording/RecordingApi.ts index 64243e443..e19635b9c 100644 --- a/src/client/apis/recording/RecordingApi.ts +++ b/src/client/apis/recording/RecordingApi.ts @@ -1,7 +1,13 @@ import { CollectionFreeFormView } from "../../views/collections/collectionFreeForm"; import React, { useState } from "react"; +import { IReactionDisposer, observe, reaction, observable } from "mobx"; +import { SelectionManager } from "../../util/SelectionManager"; +export class RecordingApi { + + @observable static _instance: LinkManager; -export namespace RecordingApi { + constructor() { + } type Movement = { time: number, @@ -150,4 +156,19 @@ export namespace RecordingApi { }) } + // export let pres: Map<CollectionFreeFormView, IReactionDisposer> = new Map() + + // export function AddRecordingFFView(ffView: CollectionFreeFormView): void { + // pres.set(ffView, + // reaction(() => ({ x: ffView.panX, y: ffView.panY }), + // (pt) => RecordingApi.trackMovements(ffView, pt.x, pt.y))) + // ) + // } + + // export function RemoveRecordingFFView(ffView: CollectionFreeFormView): void { + // const disposer = pres.get(ffView); + // disposer?.(); + // pres.delete(ffView) + // } + }
\ No newline at end of file |