diff --git a/js/concentration-api-routes.js b/js/concentration-api-routes.js index 0456601..c9f50a8 100644 --- a/js/concentration-api-routes.js +++ b/js/concentration-api-routes.js @@ -37,6 +37,8 @@ define( function( require ) { // TODO: This should probably use a surrogate instead of getting the entire Solute value from the sim // TODO: I am surprised that save/load works--if reference equality was used, this would fail. - 'concentrationScreen.solute': 'concentrationScreen.model.solute' + 'concentrationScreen.solute': 'concentrationScreen.model.solute', + + 'concentrationScreen.shaker.location': 'concentrationScreen.model.shaker.locationProperty' }; } ); diff --git a/js/concentration-api.js b/js/concentration-api.js index cb83928..27428b9 100644 --- a/js/concentration-api.js +++ b/js/concentration-api.js @@ -91,6 +91,9 @@ define( function( require ) { } }; + var Vector2 = { + name: 'Vector2' + }; // Use explicit names for id keys so they will match what researchers see in data files // Use id and type instead of componentID and typeID to simplify things for researchers // Use a map so that JS will help us check that there are no duplicate names. @@ -104,6 +107,9 @@ define( function( require ) { 'concentrationScreen.solute': { type: Property( 'string' ) }, + 'concentrationScreen.shaker.location': { + type: Property( Vector2 ) + }, 'concentrationScreen.resetAllButton': { type: ResetAllButton },