{"id":17659733,"url":"https://github.com/raphamorim/origami.svg","last_synced_at":"2025-08-28T08:15:50.988Z","repository":{"id":57316266,"uuid":"68262078","full_name":"raphamorim/origami.svg","owner":"raphamorim","description":"A Origami Plugin to deliver SVG instead Canvas (canvas to SVG)","archived":false,"fork":false,"pushed_at":"2016-09-15T03:56:53.000Z","size":202,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-08-09T12:48:01.138Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/raphamorim.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-09-15T02:56:54.000Z","updated_at":"2024-11-17T10:47:26.000Z","dependencies_parsed_at":"2022-08-25T21:10:55.300Z","dependency_job_id":null,"html_url":"https://github.com/raphamorim/origami.svg","commit_stats":null,"previous_names":["origamijs/origamijs.svg"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/raphamorim/origami.svg","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/raphamorim%2Forigami.svg","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/raphamorim%2Forigami.svg/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/raphamorim%2Forigami.svg/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/raphamorim%2Forigami.svg/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/raphamorim","download_url":"https://codeload.github.com/raphamorim/origami.svg/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/raphamorim%2Forigami.svg/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":272468308,"owners_count":24939697,"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","status":"online","status_checked_at":"2025-08-28T02:00:10.768Z","response_time":74,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":[],"created_at":"2024-10-23T16:08:07.487Z","updated_at":"2025-08-28T08:15:50.965Z","avatar_url":"https://github.com/raphamorim.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# origami.svg\n\n\u003e Origamijs plugin to render canvas to SVG\n\nWorking only for [Origami.js](https://github.com/raphamorim/origami.js) \u003e= 0.5.0\n\nOriginally a fork of [canvas2svg](https://github.com/gliffy/canvas2svg).\n\n## Getting\n\nFirst of all, get Origami.js using [Download Option](https://github.com/origamijs/origami.svg/archive/master.zip) or using NPM.\n\nGet using NPM just run this command\n\n```sh\nnpm install origamijs.svg\n```\n\nAdd the source after origamijs script end:\n\n```html\n\u003cscript src=\"origami.js\"\u003e\u003c/script\u003e\n\u003cscript src=\"origami.svg.js\"\u003e\u003c/script\u003e\n\u003c/body\u003e\n```\n\n## Using\n\nAfter load, just use `svg` as argument in draw method:\n\n```javascript\n\norigami('#canvas-id')\n  .border({\n    border: '4px dotted #654'\n  })\n  .image('test/resources/image-1.jpg', '5%', '5%', 200, 200)\n  .arc(100, 75, 50, {\n    background: '#2A80B9',\n    borderSize: '4px',\n    borderColor: 'gold',\n    borderStyle: 'dotted'\n  })\n  .rect(10, 10, 50, 100, {\n    background: 'lightblue',\n    border: '4px solid #999'\n  })\n  .rect(50, 10, 40, {\n    background: 'lightgreen',\n    border: '10px solid green'\n  })\n  .load(function(octx) {\n    octx.draw('svg');\n  });\n\n```\n\n##### Result:\n\n![Result](https://raw.githubusercontent.com/origamijs/origami.svg/master/examples/result.jpg)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fraphamorim%2Forigami.svg","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fraphamorim%2Forigami.svg","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fraphamorim%2Forigami.svg/lists"}