@rendley/sdk - v1.16.1
    Preparing search index...

    Interface MediaFitStrategy

    Fit strategy applied to clips when the media behind them changes: a different media loading behind the same media id (e.g. a template with an injected permanentUrl), Library::replaceMedia or Library::replaceSerializedMedia.

    Set on a media (MediaData::setFitStrategy) it applies to every clip of that media; set on a clip (Clip::setFitStrategy) it overrides the media strategy for that clip only. Each field is resolved independently, so a clip may override just toCrop and still inherit fitStyle.

    interface MediaFitStrategy {
        fitStyle?: FitStyleEnum;
        toCrop?: boolean;
    }
    Index

    Properties

    Properties

    fitStyle?: FitStyleEnum

    How clips inherit size/scale from the previous layout. Defaults to FitStyleEnum.MATCH_SCALE.

    toCrop?: boolean

    Whether the previous crop is remapped onto the new media. Defaults to true, like replaceMedia.