Rename actionRotateWay -> actionRotate

This commit is contained in:
Bryan Housel
2016-12-20 22:38:30 -05:00
parent 6ab9489fe7
commit 573f476cdd
3 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -27,7 +27,7 @@ export { actionOrthogonalize } from './orthogonalize';
export { actionRestrictTurn } from './restrict_turn';
export { actionReverse } from './reverse';
export { actionRevert } from './revert';
export { actionRotateWay } from './rotate_way';
export { actionRotate } from './rotate';
export { actionSplit } from './split';
export { actionStraighten } from './straighten';
export { actionUnrestrictTurn } from './unrestrict_turn';
+1 -1
View File
@@ -1,7 +1,7 @@
import _ from 'lodash';
export function actionRotateWay(wayId, pivot, angle, projection) {
export function actionRotate(wayId, pivot, angle, projection) {
return function(graph) {
return graph.update(function(graph) {
var way = graph.entity(wayId);
+2 -2
View File
@@ -5,7 +5,7 @@ import { t } from '../util/locale';
import {
actionNoop,
actionRotateWay
actionRotate
} from '../actions/index';
import { behaviorEdit } from '../behavior/index';
@@ -90,7 +90,7 @@ export function modeRotate(context, wayId) {
if (typeof prevAngle === 'undefined') prevAngle = currAngle;
var delta = currAngle - prevAngle;
fn(actionRotateWay(wayId, pivot, delta, context.projection), annotation);
fn(actionRotate(wayId, pivot, delta, context.projection), annotation);
prevAngle = currAngle;
prevGraph = context.graph();
}