mirror of
https://github.com/FoggedLens/iD.git
synced 2026-05-15 21:48:20 +02:00
Rename actionRotateWay -> actionRotate
This commit is contained in:
@@ -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,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);
|
||||
|
||||
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user