Files
iD/js/id/operations/move.js

23 lines
635 B
JavaScript

iD.operations.Move = function(selection, context) {
var operation = function() {
context.enter(iD.modes.Move(context, selection));
};
operation.available = function() {
return selection.length > 1 ||
context.entity(selection[0]).type !== 'node';
};
operation.enabled = function() {
return iD.actions.Move(selection)
.enabled(context.graph());
};
operation.id = "move";
operation.keys = [t('operations.move.key')];
operation.title = t('operations.move.title');
operation.description = t('operations.move.description');
return operation;
};