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:
Bryan Housel
2017-12-18 00:11:08 -05:00
parent aa68b21d7a
commit 57ba6a9862
2 changed files with 14 additions and 0 deletions
+7
View File
@@ -192,5 +192,12 @@ export function modeMove(context, entityIDs, baseGraph) {
};
mode.selectedIDs = function() {
if (!arguments.length) return entityIDs;
// no assign
return mode;
};
return mode;
}
+7
View File
@@ -155,5 +155,12 @@ export function modeRotate(context, entityIDs) {
};
mode.selectedIDs = function() {
if (!arguments.length) return entityIDs;
// no assign
return mode;
};
return mode;
}