{"id":16603276,"url":"https://github.com/dbrgn/svg2polylines","last_synced_at":"2025-04-06T07:09:57.017Z","repository":{"id":18731099,"uuid":"84721403","full_name":"dbrgn/svg2polylines","owner":"dbrgn","description":"Rust library to convert SVG data to a list of flattened polylines. Also includes FFI bindings.","archived":false,"fork":false,"pushed_at":"2024-11-02T20:31:17.000Z","size":123,"stargazers_count":30,"open_issues_count":0,"forks_count":10,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-30T06:06:12.531Z","etag":null,"topics":["converter","polyline","rust","svg"],"latest_commit_sha":null,"homepage":"","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/dbrgn.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE-APACHE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-03-12T11:47:24.000Z","updated_at":"2025-02-25T16:09:06.000Z","dependencies_parsed_at":"2024-12-16T13:27:38.296Z","dependency_job_id":"e9fc804b-2de7-405e-a7c0-ea42e04199a7","html_url":"https://github.com/dbrgn/svg2polylines","commit_stats":{"total_commits":126,"total_committers":5,"mean_commits":25.2,"dds":"0.031746031746031744","last_synced_commit":"02eae484f39409e21cb1bcdba0f2dd065633c4a8"},"previous_names":[],"tags_count":12,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dbrgn%2Fsvg2polylines","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dbrgn%2Fsvg2polylines/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dbrgn%2Fsvg2polylines/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dbrgn%2Fsvg2polylines/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dbrgn","download_url":"https://codeload.github.com/dbrgn/svg2polylines/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247445667,"owners_count":20939958,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["converter","polyline","rust","svg"],"created_at":"2024-10-12T00:48:52.599Z","updated_at":"2025-04-06T07:09:56.997Z","avatar_url":"https://github.com/dbrgn.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# svg2polylines\n\n[![CircleCI][circle-ci-badge]][circle-ci]\n[![Crates.io][crates-io-badge]][crates-io]\n\nConvert SVG data to a list of polylines (aka polygonal chains or polygonal\npaths).\n\nThis can be used e.g. for simple drawing robot that just support drawing\nstraight lines and liftoff / drop pen commands.\n\nFlattening of Bézier curves is done using the\n[Lyon](https://github.com/nical/lyon) library. SVG files are preprocessed /\nsimplified using [usvg](https://docs.rs/usvg/).\n\n**Note: Currently the path style is completely ignored. Only the path itself is\nreturned.**\n\n\n## Preview\n\nThere is a small preview tool to view the generated polylines. It's simple and\nhacky, but helps to debug stuff.\n\n```shell\ncargo run --release --example preview path/to/file.svg\n```\n\nThe `--release` parameter is important, otherwise it's going to be very slow.\n\nUse the mouse to drag / zoom the image and the `Esc` key to close the window.\n\n\n## Usage: Rust\n\nSignature:\n\n```rust\nfn svg2polylines::parse(svg: \u0026str, tol: f64, preprocess: bool) -\u003e Result\u003cVec\u003cPolyline\u003e, String\u003e;\n```\n\nSee [`examples/basic.rs`][example-src] for a full usage example.\n\n\n## FFI\n\nThis crate used to contain FFI bindings. These have been dropped as of version\n0.8.0. If you need them, open an issue on GitHub and I might bring them back.\n\n\n## License\n\nLicensed under either of\n\n * Apache License, Version 2.0 (LICENSE-APACHE or\n   http://www.apache.org/licenses/LICENSE-2.0)\n * MIT license (LICENSE-MIT or\n   http://opensource.org/licenses/MIT) at your option.\n\n\n### Contribution\n\nUnless you explicitly state otherwise, any contribution intentionally submitted\nfor inclusion in the work by you, as defined in the Apache-2.0 license, shall\nbe dual licensed as above, without any additional terms or conditions.\n\n\n[circle-ci]: https://circleci.com/gh/dbrgn/svg2polylines/tree/main\n[circle-ci-badge]: https://circleci.com/gh/dbrgn/svg2polylines/tree/main.svg?style=shield\n[crates-io]: https://crates.io/crates/svg2polylines\n[crates-io-badge]: https://img.shields.io/crates/v/svg2polylines.svg\n[example-src]: https://github.com/dbrgn/svg2polylines/blob/main/examples/basic.rs\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdbrgn%2Fsvg2polylines","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdbrgn%2Fsvg2polylines","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdbrgn%2Fsvg2polylines/lists"}