Remove context.childNodes function

This commit is contained in:
Quincy Morgan
2020-03-21 13:56:11 -07:00
parent 5fd25601fe
commit fac613e1dc
6 changed files with 5 additions and 6 deletions
+1 -1
View File
@@ -379,7 +379,7 @@ export function modeDragNode(context) {
);
} else if (target && target.type === 'way') {
var choice = geoChooseEdge(context.childNodes(target), context.mouse(), context.projection, entity.id);
var choice = geoChooseEdge(context.graph().childNodes(target), context.mouse(), context.projection, entity.id);
context.replace(
actionAddMidpoint({
loc: choice.loc,
+1 -1
View File
@@ -354,7 +354,7 @@ export function modeSelect(context, selectedIDs) {
if (!entity) return;
if (entity instanceof osmWay && target.classed('target')) {
var choice = geoChooseEdge(context.childNodes(entity), loc, context.projection);
var choice = geoChooseEdge(context.graph().childNodes(entity), loc, context.projection);
var prev = entity.nodes[choice.index - 1];
var next = entity.nodes[choice.index];