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

    Class Filter

    Represents a clip filter backed by a LUT texture and PIXI filter instance.

    Index

    Constructors

    Methods

    • Returns the owning clip ID, if one has been assigned.

      Returns undefined | string

      The owning clip ID, or undefined if the filter is not attached to a clip.

    • Returns the library filter ID used to create this instance.

      Returns string

      The filter definition ID.

    • Returns the unique instance ID of this filter.

      Returns string

      The filter instance ID.

    • Returns the current LUT blend intensity.

      Returns number

      The intensity value.

    • Returns the underlying PIXI filter once initialized.

      Returns null | Pixi.Filter

      The PIXI filter, or null if the filter has not been initialized.

    • Returns the provider identifier of the library filter definition.

      Returns string

      The provider ID.

    • Resolves the filter definition from the library and creates the underlying PIXI filter.

      Returns void

      Nothing.

    • Serializes this filter instance.

      Returns {
          clipId?: string;
          filterId: string;
          id: string;
          intensity: number;
          provider: string;
      }

      The serialized filter payload.

    • Associates the filter with a clip.

      Parameters

      • clipId: string

        Clip ID that owns the filter.

      Returns void

      Nothing.

    • Updates the LUT blend intensity.

      Parameters

      • intensity: number

        Blend amount applied by the LUT filter.

      Returns void

      Nothing.

    • Creates a filter instance from serialized data.

      Parameters

      • data: object

        Serialized filter payload.

      Returns Filter

      The deserialized filter instance.