DotLottie
DotLottieOptions
Options
Author of the DotLottie. Will be used inside of the manifest file.
Default value: 'LottieFiles'
Any custom data the manifest should contain.
Description of the DotLottie. Will be used inside of the manifest file.
If set to true
it will detect duplicate images across the animations inside of the dotLottie and reduce their usage to a single source.
Default value: false
Define the dotLottie generation tool. Will be used inside of the manifest file.
Default value: 'dotLottie-js_v[CURRENT_VERSION]'
Keywords for the DotLottie. Will be used inside of the manifest file.
Default value: 'dotLottie'
An array of plugins that will be ran after a call to DotLottie.build(). For more information on plugins and how to create them, check out the plugins page.
Version of the animation. Will be used in side of the manifest file.
Default value: '1.0'
Methods
View the AnimationOptions.
Returns an Array
of LottieImageCommon
from every LottieAnimation
contained within the DotLottie
.
Add a or multiple plugins. Plugins are ran after calling DotLottie.build()
. For more information on plugins check out the plugins page.
Remove a single or multiple plugins.
Returns the requested animation, assets can be optionally inlined inside the data of the animation.
Returns an array of tuples containing the LottieAnimation id, and the LottieAnimation object.
Export and utility methods
Builds the manifest and exports the dotLottie as an ArrayBuffer.
Builds the manifest and exports the dotLottie as a Blob.
Builds the manifest and exports the dotLottie as a Base64 encoded string.
Animations will only be fetched when build() is called!
Builds the manifest and fetches the animations from their URLs if they were added with one. Also runs the plugins on the DotLottie context.
For browsers only.
Builds the DotLottie and downloads the .lottie
file. If user is on a node environment, this method will throw an error.
Creates and returns a DotLottie object created from the .lottie
file residing at the supplied URL.
Creates and returns a DotLottie object created from the supplied ArrayBuffer of a DotLottie.
Merges the provided DotLotties in to a single DotLottie and returns it.