mirror of
https://github.com/FoggedLens/iD.git
synced 2026-05-15 21:48:20 +02:00
Add selectedIDs() for modeMove and modeRotate
This allows the label collision boxes for the vertices to update during these modes. Otherwise the labels.js `isInterestingVertex()` function doesn't consider them interesting enough to update.
This commit is contained in:
@@ -192,5 +192,12 @@ export function modeMove(context, entityIDs, baseGraph) {
|
||||
};
|
||||
|
||||
|
||||
mode.selectedIDs = function() {
|
||||
if (!arguments.length) return entityIDs;
|
||||
// no assign
|
||||
return mode;
|
||||
};
|
||||
|
||||
|
||||
return mode;
|
||||
}
|
||||
|
||||
@@ -155,5 +155,12 @@ export function modeRotate(context, entityIDs) {
|
||||
};
|
||||
|
||||
|
||||
mode.selectedIDs = function() {
|
||||
if (!arguments.length) return entityIDs;
|
||||
// no assign
|
||||
return mode;
|
||||
};
|
||||
|
||||
|
||||
return mode;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user