mirror of
https://github.com/FoggedLens/iD.git
synced 2026-05-16 13:59:27 +02:00
Merge branch 'master' into validation
This commit is contained in:
@@ -239,6 +239,8 @@ export function modeSelect(context, selectedIDs) {
|
||||
mode.enter = function() {
|
||||
if (!checkSelectedIDs()) return;
|
||||
|
||||
context.features().forceVisible(selectedIDs);
|
||||
|
||||
var operations = _without(_values(Operations), Operations.operationDelete)
|
||||
.map(function(o) { return o(selectedIDs, context); })
|
||||
.filter(function(o) { return o.available(); });
|
||||
@@ -546,6 +548,7 @@ export function modeSelect(context, selectedIDs) {
|
||||
|
||||
context.map().on('drawn.select', null);
|
||||
context.ui().sidebar.hide();
|
||||
context.features().forceVisible([]);
|
||||
};
|
||||
|
||||
|
||||
|
||||
@@ -78,6 +78,7 @@ export function presetIndex() {
|
||||
};
|
||||
|
||||
all.allowsVertex = function(entity, resolver) {
|
||||
if (entity.type !== 'node') return false;
|
||||
return resolver.transient(entity, 'vertexMatch', function() {
|
||||
var vertexPresets = _index.vertex;
|
||||
var match;
|
||||
|
||||
Reference in New Issue
Block a user