Skip to main content

Interface: LottieFromUrlOptions

Defined in: src/mobjects/lottie/LottieMobject.ts:140

Options for LottieMobject.fromUrl.

Extends​

Properties​

center?​

optional center: Vector3Tuple

Defined in: src/mobjects/lottie/LottieMobject.ts:130

Center position [x, y, z]. Default: [0, 0, 0].

Inherited from​

LottieMobjectOptions.center


doubleSided?​

optional doubleSided: boolean

Defined in: src/mobjects/lottie/LottieMobject.ts:134

Render both sides of the plane. Default: false.

Inherited from​

LottieMobjectOptions.doubleSided


fetchImpl()?​

optional fetchImpl: {(input, init?): Promise<Response>; (input, init?): Promise<Response>; }

Defined in: src/mobjects/lottie/LottieMobject.ts:142

Inject a fetch implementation (bypasses the global; used by tests).

Call Signature​

(input, init?): Promise<Response>

MDN Reference

Parameters​
input​

RequestInfo | URL

init?​

RequestInit

Returns​

Promise<Response>

Call Signature​

(input, init?): Promise<Response>

MDN Reference

Parameters​
input​

string | Request | URL

init?​

RequestInit

Returns​

Promise<Response>


height?​

optional height: number

Defined in: src/mobjects/lottie/LottieMobject.ts:126

Height in scene units. Default: auto from the composition aspect ratio.

Inherited from​

LottieMobjectOptions.height


loop?​

optional loop: boolean

Defined in: src/mobjects/lottie/LottieMobject.ts:120

Loop the composition during live playback and time wrapping. Default: false.

Inherited from​

LottieMobjectOptions.loop


opacity?​

optional opacity: number

Defined in: src/mobjects/lottie/LottieMobject.ts:132

Opacity from 0 to 1. Default: 1.

Inherited from​

LottieMobjectOptions.opacity


player?​

optional player: LottiePlayer

Defined in: src/mobjects/lottie/LottieMobject.ts:136

Inject a player directly (bypasses the factory and the network).

Inherited from​

LottieMobjectOptions.player


scaleToFit?​

optional scaleToFit: boolean

Defined in: src/mobjects/lottie/LottieMobject.ts:128

If both width and height given, fit inside the box preserving aspect. Default: true.

Inherited from​

LottieMobjectOptions.scaleToFit


speed?​

optional speed: number

Defined in: src/mobjects/lottie/LottieMobject.ts:122

Playback speed multiplier (1 = normal). Default: 1.

Inherited from​

LottieMobjectOptions.speed


width?​

optional width: number

Defined in: src/mobjects/lottie/LottieMobject.ts:124

Width in scene units. Default: auto from the composition aspect ratio.

Inherited from​

LottieMobjectOptions.width