Socket
Book a DemoInstallSign in
Socket

trconvert

Package Overview
Dependencies
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

trconvert

Toolkit for createjs ratio converter

latest
Source
npmnpm
Version
0.1.16
Version published
Maintainers
1
Created
Source

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.

Keywords

createjs

FAQs

Package last updated on 13 Mar 2015

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts