[Fixed Position] Add element factory

Add element factory, which will take on responsibility
for populating initial states of elements and (if necessary)
prompting for user input. WTD-880.
This commit is contained in:
Victor Woeltjen
2015-02-20 12:21:28 -08:00
parent f1a8e84a93
commit a947ff1274
5 changed files with 90 additions and 16 deletions

View File

@ -17,7 +17,7 @@ define(
* @constructor
* @param {Scope} $scope the controller's Angular scope
*/
function FixedController($scope, telemetrySubscriber, telemetryFormatter) {
function FixedController($scope, $q, dialogService, telemetrySubscriber, telemetryFormatter) {
var gridSize = DEFAULT_GRID_SIZE,
gridExtent = DEFAULT_GRID_EXTENT,
dragging,
@ -190,7 +190,12 @@ define(
if (Array.isArray($scope.selection)) {
selection = new LayoutSelection(
$scope.selection,
new FixedProxy($scope.configuration)
new FixedProxy(
$scope.configuration,
$q,
dialogService,
refreshElements
)
);
}