Added context menu items for collapsing and expanding nodes
Summary: Added 3 context menu items: - expand recursive - collapse recursive These are self explanatory. I also collapse non ancestors. This collapses everything except your direct ancestor path to the root. Quite useful to refocus the tree on a node Changelog: UIDebugger - added context menu items for exanding and collapsing the tree. Reviewed By: aigoncharov Differential Revision: D47949840 fbshipit-source-id: 6eebba182fe2092fbf5f0db0ec5ff728c3900424
This commit is contained in:
committed by
Facebook GitHub Bot
parent
129c848b78
commit
ce1fdfdf19
@@ -130,6 +130,10 @@ export const Visualization2D: React.FC<
|
||||
|
||||
const onClickOverlay = () => {
|
||||
instance.uiActions.onSelectNode(hoveredNodeId, 'visualiser');
|
||||
if (hoveredNodeId != null) {
|
||||
instance.uiActions.onCollapseAllNonAncestors(hoveredNodeId);
|
||||
}
|
||||
|
||||
if (targetMode.state !== 'disabled') {
|
||||
setTargetMode({
|
||||
state: 'selected',
|
||||
|
||||
Reference in New Issue
Block a user