Hiyve Components - v1.0.0
    Preparing search index...

    Interface ClipCompositionRef

    Ref handle exposed by ClipComposition via forwardRef.

    interface ClipCompositionRef {
        addClip: (clip: ClipItem) => void;
        fileId: string | null;
        getComposition: () => ClipCompositionFile;
        hasUnsavedChanges: boolean;
        isSaving: boolean;
        lastSaved: Date | null;
        removeClip: (clipId: string) => void;
        save: () => Promise<string | null>;
    }
    Index

    Properties

    addClip: (clip: ClipItem) => void

    Add a clip programmatically

    fileId: string | null

    Current file ID

    getComposition: () => ClipCompositionFile

    Get the current composition data

    hasUnsavedChanges: boolean

    Whether there are unsaved changes

    isSaving: boolean

    Whether currently saving

    lastSaved: Date | null

    Last save timestamp

    removeClip: (clipId: string) => void

    Remove a clip by ID

    save: () => Promise<string | null>

    Trigger a manual save