aboutsummaryrefslogtreecommitdiff
path: root/src/util/SelectionManager.ts
diff options
context:
space:
mode:
authorTyler Schicke <tyler_schicke@brown.edu>2019-02-05 19:37:48 -0500
committerTyler Schicke <tyler_schicke@brown.edu>2019-02-05 19:37:48 -0500
commit6a13071a695732b2235f988278c52d0072af0fb5 (patch)
tree94d6ccf16572463520fd744e41988b1dc8c7b7e3 /src/util/SelectionManager.ts
parent41afca0448b4e75459fc8aeb53192f6a44aa2b18 (diff)
parent6e66f8b227c730e07863a93a8bce5ee0d51d2ddc (diff)
Merge branch 'master' of github-tsch-brown:browngraphicslab/Dash-Web into scripting
Diffstat (limited to 'src/util/SelectionManager.ts')
-rw-r--r--src/util/SelectionManager.ts12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/util/SelectionManager.ts b/src/util/SelectionManager.ts
index 2a63248c4..0759ae110 100644
--- a/src/util/SelectionManager.ts
+++ b/src/util/SelectionManager.ts
@@ -1,13 +1,13 @@
-import { DocumentView } from "../views/nodes/DocumentView";
+import { CollectionFreeFormDocumentView } from "../views/nodes/CollectionFreeFormDocumentView";
import { observable, action } from "mobx";
export namespace SelectionManager {
class Manager {
@observable
- SelectedDocuments: Array<DocumentView> = [];
+ SelectedDocuments: Array<CollectionFreeFormDocumentView> = [];
@action
- SelectDoc(doc: DocumentView, ctrlPressed: boolean): void {
+ SelectDoc(doc: CollectionFreeFormDocumentView, ctrlPressed: boolean): void {
// if doc is not in SelectedDocuments, add it
if (!ctrlPressed) {
manager.SelectedDocuments = [];
@@ -21,11 +21,11 @@ export namespace SelectionManager {
const manager = new Manager;
- export function SelectDoc(doc: DocumentView, ctrlPressed: boolean): void {
+ export function SelectDoc(doc: CollectionFreeFormDocumentView, ctrlPressed: boolean): void {
manager.SelectDoc(doc, ctrlPressed)
}
- export function IsSelected(doc: DocumentView): boolean {
+ export function IsSelected(doc: CollectionFreeFormDocumentView): boolean {
return manager.SelectedDocuments.indexOf(doc) !== -1;
}
@@ -33,7 +33,7 @@ export namespace SelectionManager {
manager.SelectedDocuments = []
}
- export function SelectedDocuments(): Array<DocumentView> {
+ export function SelectedDocuments(): Array<CollectionFreeFormDocumentView> {
return manager.SelectedDocuments;
}
} \ No newline at end of file