Remove actionMoveNote

Notes aren't stored in the graph, so moving them isn't an action
This commit is contained in:
Bryan Housel
2018-07-24 14:26:25 -04:00
parent 89ad643977
commit a406da953d
2 changed files with 1 additions and 19 deletions

View File

@@ -23,7 +23,6 @@ export { actionMergePolygon } from './merge_polygon';
export { actionMergeRemoteChanges } from './merge_remote_changes';
export { actionMove } from './move';
export { actionMoveNode } from './move_node';
export { actionMoveNote } from './move_note';
export { actionNoop } from './noop';
export { actionOrthogonalize } from './orthogonalize';
export { actionRestrictTurn } from './restrict_turn';
@@ -34,4 +33,4 @@ export { actionSplit } from './split';
export { actionStraighten } from './straighten';
export { actionUnrestrictTurn } from './unrestrict_turn';
export { actionReflect } from './reflect.js';
export { actionDetachNode } from './detach_node';
export { actionDetachNode } from './detach_node';

View File

@@ -1,17 +0,0 @@
import { geoVecInterp } from '../geo';
import { services } from '../services';
export function actionMoveNote(noteID, toLoc) {
var action = function(graph, t) {
if (t === null || !isFinite(t)) t = 1;
t = Math.min(Math.max(+t, 0), 1);
var note = services.osm.getNote(noteID);
note.move(geoVecInterp(note.loc, toLoc, t));
};
action.transitionable = true;
return action;
}