Package Exports
- @oasis-engine/tool-atlas-lottie
- @oasis-engine/tool-atlas-lottie/index.js
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@oasis-engine/tool-atlas-lottie) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
tool-atlas-lottie
Transform lottie JSON file to atlas format in oasis engine. This tool will generate a folder which contains three files: a processed lottie JSON file, an atlas file and an image.
Usage in terminal
- Install
npm i @oasis-engine/tool-atlas-lottie -g- Use command in terminal
if lottie file has base64 images:
oasis-atlas-lottie -s lottieFile.jsonif lottie file has images in a directory:
oasis-atlas-lottie -s lottieFile.json -i ./imagesUsage in node project
- Install
npm i @oasis-engine/tool-atlas-lottie --save- Call api
const lottieTransform = require("@oasis-engine/tool-atlas-lottie");
lottieTransform('lottieFile.json');