mirror of
https://github.com/FoggedLens/iD.git
synced 2026-02-13 09:12:52 +00:00
Remove actionMoveNote
Notes aren't stored in the graph, so moving them isn't an action
This commit is contained in:
@@ -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';
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
Reference in New Issue
Block a user