{"id":18536291,"url":"https://github.com/adishavit/simple-svg","last_synced_at":"2025-04-05T13:08:06.922Z","repository":{"id":54998460,"uuid":"43810149","full_name":"adishavit/simple-svg","owner":"adishavit","description":"Easy to use SVG library for C++ (fork of legacy Google code project archive)","archived":false,"fork":false,"pushed_at":"2025-01-05T13:20:13.000Z","size":32,"stargazers_count":93,"open_issues_count":3,"forks_count":34,"subscribers_count":7,"default_branch":"master","last_synced_at":"2025-03-29T12:08:36.221Z","etag":null,"topics":["cpp","header-only","svg","svg-library"],"latest_commit_sha":null,"homepage":"","language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/adishavit.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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":"2015-10-07T11:03:51.000Z","updated_at":"2025-01-05T13:20:17.000Z","dependencies_parsed_at":"2025-03-14T17:46:55.761Z","dependency_job_id":null,"html_url":"https://github.com/adishavit/simple-svg","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adishavit%2Fsimple-svg","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adishavit%2Fsimple-svg/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adishavit%2Fsimple-svg/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adishavit%2Fsimple-svg/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/adishavit","download_url":"https://codeload.github.com/adishavit/simple-svg/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247339158,"owners_count":20923014,"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":["cpp","header-only","svg","svg-library"],"created_at":"2024-11-06T19:31:45.146Z","updated_at":"2025-04-05T13:08:06.896Z","avatar_url":"https://github.com/adishavit.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"# simple-svg\n\nEasy to use SVG library for C++ (fork)\n\nThis library is a single file header-only C++ library for creating SVG files.\n\nSimple-SVG was written to provide an easy API to allow beginners to become more accustomed to C++ by easily creating graphics.\n\nThis project creates files that can then be viewed by a sister project [File Monitor](http://code.google.com/p/file-monitor). As you make changes to your SVG document, you will automatically see an updated image in File Monitor.\n\nThis is a fork/clone of the original code [here](https://code.google.com/p/simple-svg/).\n\n## Build Instructions\n\n```\nmkdir build\ncd build\ncmake ..\nmake\n```\n\nThis will create the demo executable `simple_svg` and the test executable `simple_svg_test`, and run the tests.\n\nYou can run the demo with:\n\n```\nsimple_svg\n```\n\nto create a demo SVG file, `my_svg.svg`.\n\nYou can run the tests with:\n\n```\nctest               # brief info on success or failure\n```\n\nor with\n\n```\nsimple_svg_test     # detailed info on success or failure\n```\n\nto see the details of the tests.\n\n## Code modifications to satisfy `cppcheck`\n\nRunning `cppcheck` on the code:\n\n```\ncppcheck --enable=style --check-level=exhaustive main_1.0.0.cpp\n```\n\nproduced errors against the `cppcheck` ruleset.\n\nThese errors were fixed by making `explicit` constructors for Dimensions, Point, Layout, Color\nand updating code that uses these classes.\n\n## Classes available from the library\n\n```\nColor - Serializable\nFill - Serializable\nStroke - Serializable\nFont - Serializable\nShapeColl - Shape\nCircle - Shape\nElipse - Shape\nRectangle - Shape\nLine - Shape\nPolygon - Shape\nPath - Shape\nPolyline - Shape\nText - Shape\nLineChart - Shape\nDocument - Neither\n```\n\nA `Document` instance creates a svg file.\n\nYou can add any number of Shape instances to the document.\n\nYou use the serializable classes to set the properties of the shapes.\n\n## Example usage\n\nSee demo code in `main_1.0.0.cpp` for example usage.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fadishavit%2Fsimple-svg","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fadishavit%2Fsimple-svg","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fadishavit%2Fsimple-svg/lists"}