/**
 * -------------------------------------------------------------------------------------------
 * Copyright (c) Microsoft Corporation.  All Rights Reserved.  Licensed under the MIT License.
 * See License in the project root for license information.
 * -------------------------------------------------------------------------------------------
 */ interface export interface IWindowSegment { top : number ; left : number ; width : number ; height : number ; } interface export interface ISegmentAwareWindow extends Window { returns { * } memberof getWindowSegments ( ) : IWindowSegment [ ] ; } export returns { boolean } export function isWindowSegmentAware ( ) { return ( ( window as unknown ) as ISegmentAwareWindow ) . getWindowSegments !== undefined ; } export returns { ISegmentAwareWindow } export function getSegmentAwareWindow ( ) { return isWindowSegmentAware ( ) ? ( ( window as unknown ) as ISegmentAwareWindow ) : null ; }