Generates animated SVG files for KanjiVG files.
Animations are started when the page is loaded as well as when the SVG is clicked.
MyNihongo.KanjiVG.Animation -s "source path" -d "destination path"var svgText = "<svg xmlns=\"http://www.w3.org/2000/svg\"...";
var fileName = "6f22";
var svgParams = new SvgParams();
IKanjiAnimatorService service = new KanjiAnimatorService();
var result = service.Generate(svgText, fileName, svgParams);| Name | Mandatory | Meaning | Default value |
|---|---|---|---|
| -s or -source | Yes | Path to the directory with KanjiVG files | |
| -d or -destination | Yes | Path to the directory where animated KanjiVG are saved | |
| -r or -rounding | No | Precision of double fields | 3 |
| -outerStroke | No | Brush of the outer (border) stroke | #666 |
| -outerStrokeWidth | No | Width of the outer (border) stroke | 6 |
| -innerStroke | No | Brush of the inner (kanji) stroke | #000 |
| -innerStrokeWidth | No | Width of the inner (kanji) stroke | 3 |