From 84eea14a86265ce0585342d9f3a3c4107c02df17 Mon Sep 17 00:00:00 2001
From: Tyler Schicke <tyler_schicke@brown.edu>
Date: Wed, 6 Feb 2019 01:43:09 -0500
Subject: Simplified function names in Document class

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

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

diff --git a/src/views/nodes/CollectionFreeFormDocumentView.tsx b/src/views/nodes/CollectionFreeFormDocumentView.tsx
index ebe6d411c..23863ce18 100644
--- a/src/views/nodes/CollectionFreeFormDocumentView.tsx
+++ b/src/views/nodes/CollectionFreeFormDocumentView.tsx
@@ -30,20 +30,20 @@ export class CollectionFreeFormDocumentView extends DocumentView {
 
     @computed
     get x(): number {
-        return this.props.Document.GetFieldValue(KeyStore.X, NumberField, Number(0));
+        return this.props.Document.GetData(KeyStore.X, NumberField, Number(0));
     }
 
     @computed
     get y(): number {
-        return this.props.Document.GetFieldValue(KeyStore.Y, NumberField, Number(0));
+        return this.props.Document.GetData(KeyStore.Y, NumberField, Number(0));
     }
 
     set x(x: number) {
-        this.props.Document.SetFieldValue(KeyStore.X, x, NumberField)
+        this.props.Document.SetData(KeyStore.X, x, NumberField)
     }
 
     set y(y: number) {
-        this.props.Document.SetFieldValue(KeyStore.Y, y, NumberField)
+        this.props.Document.SetData(KeyStore.Y, y, NumberField)
     }
 
     @computed
@@ -53,29 +53,29 @@ export class CollectionFreeFormDocumentView extends DocumentView {
 
     @computed
     get width(): number {
-        return this.props.Document.GetFieldValue(KeyStore.Width, NumberField, Number(0));
+        return this.props.Document.GetData(KeyStore.Width, NumberField, Number(0));
     }
 
     set width(w: number) {
-        this.props.Document.SetFieldValue(KeyStore.Width, w, NumberField)
+        this.props.Document.SetData(KeyStore.Width, w, NumberField)
     }
 
     @computed
     get height(): number {
-        return this.props.Document.GetFieldValue(KeyStore.Height, NumberField, Number(0));
+        return this.props.Document.GetData(KeyStore.Height, NumberField, Number(0));
     }
 
     set height(h: number) {
-        this.props.Document.SetFieldValue(KeyStore.Height, h, NumberField)
+        this.props.Document.SetData(KeyStore.Height, h, NumberField)
     }
 
     @computed
     get zIndex(): number {
-        return this.props.Document.GetFieldValue(KeyStore.ZIndex, NumberField, Number(0));
+        return this.props.Document.GetData(KeyStore.ZIndex, NumberField, Number(0));
     }
 
     set zIndex(h: number) {
-        this.props.Document.SetFieldValue(KeyStore.ZIndex, h, NumberField)
+        this.props.Document.SetData(KeyStore.ZIndex, h, NumberField)
     }
 
     @action
-- 
cgit v1.2.3-70-g09d2

