Interface MainScreenComponentOptions

Interface defining the props for the MainScreenComponent.

interface MainScreenComponentOptions {
    children: ReactNode;
    mainSize: number;
    doStack: boolean;
    containerWidthFraction?: number;
    containerHeightFraction?: number;
    updateComponentSizes: ((sizes: ComponentSizes) => void);
    defaultFraction?: number;
    showControls: boolean;
    componentSizes: ComponentSizes;
}

Properties

children: ReactNode

The child components to be rendered inside the main screen.

mainSize: number

The percentage size of the main component when stacking is enabled.

doStack: boolean

Flag indicating whether the components should be stacked.

containerWidthFraction?: number

Fraction of the window width to be used for the container's width.

1
containerHeightFraction?: number

Fraction of the window height to be used for the container's height.

1
updateComponentSizes: ((sizes: ComponentSizes) => void)

Callback function to update the sizes of the components.

defaultFraction?: number

Default fraction to adjust the height when controls are shown.

0.94
showControls: boolean

Flag indicating whether controls are shown, affecting the container height.

componentSizes: ComponentSizes

An object containing the current sizes of the components.