From 6445930e05e8eb81a36930615926712986bc1a9d Mon Sep 17 00:00:00 2001
From: Monika Hedman <monikahedman@monikas-mbp.devices.brown.edu>
Date: Tue, 12 Feb 2019 16:20:01 -0500
Subject: Started node centering

---
 src/views/nodes/CollectionFreeFormDocumentView.tsx | 8 ++++++++
 1 file changed, 8 insertions(+)

(limited to 'src/views/nodes/CollectionFreeFormDocumentView.tsx')

diff --git a/src/views/nodes/CollectionFreeFormDocumentView.tsx b/src/views/nodes/CollectionFreeFormDocumentView.tsx
index 25d67d96a..5d6bcf4a3 100644
--- a/src/views/nodes/CollectionFreeFormDocumentView.tsx
+++ b/src/views/nodes/CollectionFreeFormDocumentView.tsx
@@ -175,6 +175,13 @@ export class CollectionFreeFormDocumentView extends DocumentView {
         ContextMenu.Instance.displayMenu(e.pageX - 15, e.pageY - 15)
     }
 
+    //MONIKA TODO
+    //needs to be @action?
+    @action
+    centerNode = (e: React.MouseEvent): void => {
+        
+    }
+
     @action
     onContextMenu = (e: React.MouseEvent): void => {
         if (!SelectionManager.IsSelected(this)) {
@@ -196,6 +203,7 @@ export class CollectionFreeFormDocumentView extends DocumentView {
             e.stopPropagation();
 
             ContextMenu.Instance.clearItems();
+            ContextMenu.Instance.addItem({ description: "Center", event: this.centerNode })
             ContextMenu.Instance.addItem({ description: "Full Screen", event: this.fullScreenClicked })
             ContextMenu.Instance.addItem({ description: "Open Right", event: this.openRight })
             ContextMenu.Instance.addItem({ description: "Delete", event: this.deleteClicked })
-- 
cgit v1.2.3-70-g09d2

