diff --git a/modules/actions/index.js b/modules/actions/index.js index e45777bf8..ff768cdd0 100644 --- a/modules/actions/index.js +++ b/modules/actions/index.js @@ -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'; diff --git a/modules/actions/rotate.js b/modules/actions/rotate.js index 6f259da22..f1c25db0d 100644 --- a/modules/actions/rotate.js +++ b/modules/actions/rotate.js @@ -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); diff --git a/modules/modes/rotate.js b/modules/modes/rotate.js index eff29c988..b6da3e84f 100644 --- a/modules/modes/rotate.js +++ b/modules/modes/rotate.js @@ -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(); }