diff --git a/packages/types/src/index.ts b/packages/types/src/index.ts index 9928f5d14d0a..dbcc8a080f71 100644 --- a/packages/types/src/index.ts +++ b/packages/types/src/index.ts @@ -154,3 +154,4 @@ export type { MetricInstance, } from './metrics'; export type { ParameterizedString } from './parameterize'; +export type { ViewHierarchyData, ViewHierarchyWindow } from './view-hierarchy'; diff --git a/packages/types/src/view-hierarchy.ts b/packages/types/src/view-hierarchy.ts new file mode 100644 index 000000000000..a066bfbe42e6 --- /dev/null +++ b/packages/types/src/view-hierarchy.ts @@ -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; + +export type ViewHierarchyData = { + rendering_system: string; + windows: ViewHierarchyWindow[]; +};