Skip to content

atsumo/trconvert

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

trconvert NPM version Circle CI

Toolkit for CreateJSでパブリッシュしたアニメーション実行ファイルのRatioを変換するコマンドラインツールです。 パブリッシュ後のCanvas操作の座標を任意の倍率に静的に処理するようになっています。node.jsで動きます。

install

nodeで動くのでnodeのインストールが必要です。

npm install -g trconvert

使い方

$ trconvert <file> [options]
  Usage: tfconvert <file> [options]

  Options:

    -h, --help           output usage information
    -V, --version        output the version number
    -o, --output         convert output file. If empty, output filename will be replaced [target_file_body]_[ratio*10].js.
    -r, --ratio <ratio>  convert ratio. path caluculated by this rate. ( default 1 )
    -b, --base <base>    convert base ratio (default ratio 2)

変換対象のToolkit for CreateJSで書き出されたJSファイル。

[options]

出力ファイルや変換レートなどの実行時パラメータを渡せます。詳しくはtrconvert -hとしてヘルプを見てください。

TODO

  • npm installに対応予定 done

参照

https://github.com/ysugimoto/TFCRatioConverter こちらのロジックをベースに拡張しました。

注意

シェイプのコンパクト化すると、うまく動かない可能性があるので、パブリッシュ時にシェイプのコンパクト化のチェックを外すようにしてください。

###release

gulp tag --npm

LICENSE

@see LICENSE MIT License.

TFCRatioConverter included in this product is MIT License.

About

Convert multiple ratio published from Toolkit for CreateJS source

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages

  • JavaScript 97.0%
  • HTML 3.0%