mirror of
https://github.com/FoggedLens/iD.git
synced 2026-05-15 21:48:20 +02:00
Persist forced visible entities on move/rotate
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
@@ -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;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user