svgenerator

所属分类:图形图象
开发工具:Rust
文件大小:0KB
下载次数:0
上传日期:2023-09-14 13:48:24
上 传 者sh-1993
说明:  sv发生器,,
(svgenerator,,)

文件列表:
Cargo.lock (14688, 2023-12-22)
Cargo.toml (324, 2023-12-22)
LICENSE (11347, 2023-12-22)
src/ (0, 2023-12-22)
src/main.rs (6447, 2023-12-22)
src/parser/ (0, 2023-12-22)
src/parser/mod.rs (13031, 2023-12-22)
src/parser/svg.pest (2346, 2023-12-22)
src/writer/ (0, 2023-12-22)
src/writer/cairo.rs (21800, 2023-12-22)
src/writer/mod.rs (946, 2023-12-22)
test-2.svg (736, 2023-12-22)
test.svg (3823, 2023-12-22)
test1.svg (1463, 2023-12-22)

SVGenerator

SVG to Cairo Code Converter

## About SVGenerator SVGenerator is a tool to convert SVG files to Cairo code that outputs the SVG file. SVG groups ` .. ` will produce a specific Cairo function ```rust fn print_group1(ref svg, data: @Data) { .. } ``` The SVG can be annotated with `@@var_name@@` to allow data to be added dynamically in Cairo. ## Build To build the project, run: ```bash cargo build ``` ## Usage ### Generate To convert a (annotated) SVG file to Cairo: ```bash cargo run --generate path/to/yourfile.svg ``` To escape quotation marks `".."` ```bash cargo run -- generate path/to/yourfile.svg --escaped cargo run -- generate path/to/yourfile.svg -e ``` ### Groups To visualize the SVG grouping structure: ```bash cargo run -- groups path/to/yourfile.svg ``` ## License This project is licensed under the **APACHE 2 license**. See [LICENSE](https://github.com/carbonable-labs/svgenerator/blob/master/LICENSE) for more information.

近期下载者

相关文件


收藏者