Interface defining the props for the SubAspectComponent.

interface SubAspectComponentOptions {
    backgroundColor: string;
    children: ReactNode;
    showControls?: boolean;
    containerWidthFraction?: number;
    containerHeightFraction?: number;
    defaultFractionSub?: number;
}

Properties

backgroundColor: string

The background color of the component.

children: ReactNode

The child elements to be rendered inside the component.

showControls?: boolean

Flag to show or hide the controls.

true
containerWidthFraction?: number

The fraction of the window width to be used for the component's width.

containerHeightFraction?: number

The fraction of the window height to be used for the component's height.

defaultFractionSub?: number

The default sub-aspect fraction to be used if controls are shown.

0.0