@@ -104,7 +104,9 @@ const exportGraph = function(state) {
104
104
105
105
area_a_name : state . gAreaAName ,
106
106
area_b_name : state . gAreaBName ,
107
- area_c_name : state . gAreaCName
107
+ area_c_name : state . gAreaCName ,
108
+
109
+ expression : state . gExpression
108
110
} ;
109
111
110
112
if ( state . gType === 3 || state . gType === 12 ) {
@@ -215,7 +217,9 @@ const convertGraph = function(json) {
215
217
216
218
gAreaAName : json . area_a_name ,
217
219
gAreaBName : json . area_b_name ,
218
- gAreaCName : json . area_c_name
220
+ gAreaCName : json . area_c_name ,
221
+
222
+ gExpression : json . expression
219
223
} ;
220
224
} ;
221
225
@@ -315,7 +319,10 @@ const importGraph = function(json, obj, callback=null) {
315
319
316
320
gAreaAName : json . area_a_name ,
317
321
gAreaBName : json . area_b_name ,
318
- gAreaCName : json . area_c_name
322
+ gAreaCName : json . area_c_name ,
323
+
324
+ // TODO: enable this when expression back-end is in place.
325
+ // gExpression: json.expression
319
326
} ;
320
327
321
328
// When importing a graph for display, save the initial state of
@@ -572,6 +579,8 @@ const defaultGraph = {
572
579
gAreaBName : 'B' ,
573
580
gAreaCName : 'C' ,
574
581
582
+ gExpression : 'x' ,
583
+
575
584
// Use a hard-coded proof-of-concept assessment spreadsheet for
576
585
// now. Eventually, this will be defined using a Google
577
586
// Spreadsheet, or some react-spreadsheet component with its data
@@ -581,4 +590,8 @@ const defaultGraph = {
581
590
assessment : [ ]
582
591
} ;
583
592
584
- export { convertGraph , exportGraph , importGraph , defaultGraph , defaultEvaluation , defaultModificationEvaluation , defaultLabelEvaluation } ;
593
+ export {
594
+ convertGraph , exportGraph , importGraph , defaultGraph ,
595
+ defaultEvaluation , defaultModificationEvaluation ,
596
+ defaultLabelEvaluation
597
+ } ;
0 commit comments