@oasis-engine/tool-atlas-lottie
v0.7.0
Published
Transform lottie JSON file to atlas format in oasis engine.
Downloads
24
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.json
if lottie file has images in a directory:
oasis-atlas-lottie -s lottieFile.json -i ./images
Usage 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');