JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • 0
  • Score
    100M100P100Q26359F
  • License MIT

Transform lottie JSON file to atlas format in oasis engine.

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

  1. Install
npm i @oasis-engine/tool-atlas-lottie -g
  1. 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

  1. Install
npm i @oasis-engine/tool-atlas-lottie --save
  1. Call api
const lottieTransform = require("@oasis-engine/tool-atlas-lottie");

lottieTransform('lottieFile.json');