Persist forced visible entities on move/rotate

This commit is contained in:
SilentSpike
2019-02-12 22:25:47 +00:00
parent 5e586419fa
commit a7e0c779b3
2 changed files with 11 additions and 5 deletions
+6 -4
View File
@@ -125,9 +125,9 @@ export function modeMove(context, entityIDs, baseGraph) {
_prevGraph = null;
_cache = {};
behaviors.forEach(function(behavior) {
context.install(behavior);
});
context.features().forceVisible(entityIDs);
behaviors.forEach(context.install);
context.surface()
.on('mousemove.move', move)
@@ -161,6 +161,8 @@ export function modeMove(context, entityIDs, baseGraph) {
d3_select(document)
.call(keybinding.unbind);
context.features().forceVisible([]);
};
@@ -172,4 +174,4 @@ export function modeMove(context, entityIDs, baseGraph) {
return mode;
}
}
+5 -1
View File
@@ -114,6 +114,8 @@ export function modeRotate(context, entityIDs) {
mode.enter = function() {
context.features().forceVisible(entityIDs);
behaviors.forEach(context.install);
context.surface()
@@ -144,6 +146,8 @@ export function modeRotate(context, entityIDs) {
d3_select(document)
.call(keybinding.unbind);
context.features().forceVisible([]);
};
@@ -155,4 +159,4 @@ export function modeRotate(context, entityIDs) {
return mode;
}
}