Skip to content

Commit

Permalink
feat(types): Add View Hierarchy types (getsentry#11409)
Browse files Browse the repository at this point in the history
  • Loading branch information
timfish authored and cadesalaberry committed Apr 19, 2024
1 parent 0cf40b3 commit 8fb7ede
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 0 deletions.
1 change: 1 addition & 0 deletions packages/types/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -154,3 +154,4 @@ export type {
MetricInstance,
} from './metrics';
export type { ParameterizedString } from './parameterize';
export type { ViewHierarchyData, ViewHierarchyWindow } from './view-hierarchy';
18 changes: 18 additions & 0 deletions packages/types/src/view-hierarchy.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
export type ViewHierarchyWindow = {
alpha: number;
height: number;
type: string;
visible: boolean;
width: number;
x: number;
y: number;
z?: number;
children?: ViewHierarchyWindow[];
depth?: number;
identifier?: string;
} & Record<string, string | number | boolean>;

export type ViewHierarchyData = {
rendering_system: string;
windows: ViewHierarchyWindow[];
};

0 comments on commit 8fb7ede

Please sign in to comment.