1/* 2 * Copyright (C) 2024 The Android Open Source Project 3 * 4 * Licensed under the Apache License, Version 2.0 (the "License"); 5 * you may not use this file except in compliance with the License. 6 * You may obtain a copy of the License at 7 * 8 * http://www.apache.org/licenses/LICENSE-2.0 9 * 10 * Unless required by applicable law or agreed to in writing, software 11 * distributed under the License is distributed on an "AS IS" BASIS, 12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 * See the License for the specific language governing permissions and 14 * limitations under the License. 15 */ 16 17import {TextFilter} from 'viewers/common/text_filter'; 18import {UiHierarchyTreeNode} from 'viewers/common/ui_hierarchy_tree_node'; 19import {UserOptions} from 'viewers/common/user_options'; 20import {UiRect} from 'viewers/components/rects/ui_rect'; 21import {DisplayIdentifier} from './display_identifier'; 22import {RectShowState} from './rect_show_state'; 23import {UiPropertyTreeNode} from './ui_property_tree_node'; 24 25export interface UiDataHierarchy { 26 highlightedItem: string; 27 pinnedItems: UiHierarchyTreeNode[]; 28 hierarchyUserOptions: UserOptions; 29 hierarchyTrees: UiHierarchyTreeNode[] | undefined; 30 propertiesUserOptions: UserOptions; 31 propertiesTree: UiPropertyTreeNode | undefined; 32 highlightedProperty: string; 33 hierarchyFilter: TextFilter; 34 propertiesFilter: TextFilter; 35 isDarkMode?: boolean; 36 rectsToDraw?: UiRect[]; 37 rectIdToShowState?: Map<string, RectShowState> | undefined; 38 displays?: DisplayIdentifier[]; 39 rectsUserOptions?: UserOptions; 40} 41