hosanna-ui-docs - v0.9.0
    Preparing search index...

    FadeTransition provides a fade-in/fade-out animation for aggregate view transitions.

    • Uses a black rectangle overlay to perform the fade effect.
    • Handles transition between source and target views with a timed opacity animation.
    • Integrates with the node pool for efficient rectangle management.

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

    animationDuration: number = 1000
    currentStep: number = 0
    fadeColor: string = '#000000'
    fadeInterval?: Timeout
    fadeRectangle?: ISGNRectangle

    Rectangle used for the fade overlay effect.

    nodePool: INodePool

    Node pool for rectangle allocation and release.

    owner: undefined | IAggregateView.IAggregateView

    The owner aggregate view that manages the transition.

    progress: number = 0.0

    The progress of the transition, ranging from 0.0 to 1.0.

    removeSourceWhenComplete: boolean = true
    source: undefined | IHosannaView<ViewState>

    The source view from which the transition starts.

    state: TransitionState = TransitionState.None

    The current state of the transition.

    target: undefined | IHosannaView<ViewState>

    The target view to which the transition ends.

    Methods

    • Executes the transition between the source and target views.

      Parameters

      • owner: IAggregateView.IAggregateView & IHosannaView<ViewState>

        The owner aggregate view.

      • Optionalsource: IHosannaView<ViewState>

        The source view.

      • Optionaltarget: IHosannaView<ViewState>

        The target view.

      • animated: boolean = true

        Whether the transition should be animated. Defaults to true.

      • removeSourceWhenComplete: boolean = true

        Whether to remove the source view when the transition is complete. Defaults to true.

      Returns void