mirror of
https://github.com/FoggedLens/iD.git
synced 2026-02-12 16:52:50 +00:00
7 lines
288 B
JavaScript
7 lines
288 B
JavaScript
// https://github.com/openstreetmap/potlatch2/blob/master/net/systemeD/halcyon/connection/actions/AddNodeToWayAction.as
|
|
export function actionAddVertex(wayId, nodeId, index) {
|
|
return function(graph) {
|
|
return graph.replace(graph.entity(wayId).addNode(nodeId, index));
|
|
};
|
|
}
|