• Creates a LayerClip from provided data.

    This function constructs a new LayerClip instance using the given data, setting properties like playback speed, looping, and play-at-start.

    Parameters

    • zcomp: ZComponent<any>

      The ZComponent instance.

    • layer: Layer

      The Layer instance to which the LayerClip will belong.

    • data: LayerClip

      The data object defining the LayerClip.

    Returns LayerClip | undefined

    A new LayerClip instance if successful, or undefined if the clip cannot be created.