Skip to content

Commit bbc150a

Browse files
Google AI Edgecopybara-github
Google AI Edge
authored andcommitted
Added config key to hide the *Node data section* in *Info panel*.
PiperOrigin-RevId: 733412119
1 parent ab55084 commit bbc150a

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
lines changed

src/ui/src/components/visualizer/common/visualizer_config.ts

+7
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,13 @@ export declare interface VisualizerConfig {
126126
*/
127127
hideInfoPanel?: boolean;
128128

129+
/**
130+
* Whether to hide the node data in the info panel.
131+
* Node data can still be seen on the node overlays.
132+
* This only shows/hides the node data in the info panel.
133+
*/
134+
hideNodeDataInInfoPanel?: boolean;
135+
129136
/**
130137
* Whether to hide the legends.
131138
*/

src/ui/src/components/visualizer/info_panel.ts

+4-1
Original file line numberDiff line numberDiff line change
@@ -568,7 +568,10 @@ export class InfoPanel {
568568
}
569569

570570
get showNodeDataProviderSummary(): boolean {
571-
if (!this.curModelGraph) {
571+
if (
572+
!this.curModelGraph ||
573+
this.appService.config()?.hideNodeDataInInfoPanel
574+
) {
572575
return false;
573576
}
574577

0 commit comments

Comments
 (0)