animatecc-dts
v0.3.2
Published
Toolkit to generate TypeScript type definitions from Adobe Animate HTML5 export.
Downloads
8
Maintainers
Readme
animatecc-dts
Commandline tool to generate TypeScript type definitions from Adobe Animate HTML5 export.
Adobe Animate CC (or CS6 with the CreateJS Toolkit) allows you to publish animated assets for use with the CreateJS suite of open source JS libraries to create rich, interactive experiences for HTML5.
Installation:
npm install -g animatecc-dts
Usage:
animatecc-dts libs/*.js
animatecc-dts libs/*.js --namespace egret
animatecc-dts libs/*.js --namespace PIXI
Adobe Animate HTML5 available bridges:
- CreateJS (default)
- PIXI (PixiFlash or pixi-animate)
- egret-core (egret-animate)
Node.js API
Can be used directly in your node.js application through this API:
var fs = require("fs");
var animatecc = require('animatecc-dts');
var animation_data = fs.readFileSync('animation-lib.js');
var data = animatecc.generate(animation_data);
fs.writeFile('animation-lib.d.ts', data);
License
MIT