UNPKG

2.18 kBTypeScriptView Raw
1import { View } from '../../core/view';
2import { GridLayout } from '../grid-layout';
3import { RootLayout, RootLayoutOptions, ShadeCoverOptions, TransitionAnimation } from '.';
4export declare class RootLayoutBase extends GridLayout {
5 private shadeCover;
6 private staticChildCount;
7 private popupViews;
8 constructor();
9 onLoaded(): void;
10 _onLivesync(context?: ModuleContext): boolean;
11 /**
12 * Ability to add any view instance to composite views like layers.
13 *
14 * @param view
15 * @param options
16 * @returns
17 */
18 open(view: View, options?: RootLayoutOptions): Promise<void>;
19 /**
20 * Ability to remove any view instance from composite views.
21 * Optional animation parameter to overwrite close animation declared when opening popup.
22 *
23 * @param view
24 * @param exitTo
25 * @returns
26 */
27 close(view: View, exitTo?: TransitionAnimation): Promise<void>;
28 closeAll(): Promise<void[]>;
29 getShadeCover(): View;
30 openShadeCover(options?: ShadeCoverOptions): Promise<void>;
31 closeShadeCover(shadeCoverOptions?: ShadeCoverOptions): Promise<void>;
32 topmost(): View;
33 bringToFront(view: View, animated?: boolean): Promise<void>;
34 private getPopupIndex;
35 private getViewInitialState;
36 private getViewExitState;
37 private applyInitialState;
38 private applyDefaultState;
39 private getEnterAnimation;
40 private getExitAnimation;
41 private getExitAnimationDefinition;
42 private createShadeCover;
43 private updateShadeCover;
44 private hasChild;
45 protected _bringToFront(view: View): void;
46 protected _initShadeCover(view: View, shadeOption: ShadeCoverOptions): void;
47 protected _updateShadeCover(view: View, shadeOption: ShadeCoverOptions): Promise<void>;
48 protected _closeShadeCover(view: View, shadeOptions: ShadeCoverOptions): Promise<void>;
49 protected _cleanupPlatformShadeCover(): void;
50}
51export declare function getRootLayout(): RootLayout;
52export declare const defaultTransitionAnimation: TransitionAnimation;
53export declare const defaultShadeCoverTransitionAnimation: TransitionAnimation;
54export declare const defaultShadeCoverOptions: ShadeCoverOptions;