{"id":16922182,"url":"https://github.com/bigtimebuddy/pixi-svg","last_synced_at":"2025-03-17T08:06:08.172Z","repository":{"id":38238241,"uuid":"89293374","full_name":"bigtimebuddy/pixi-svg","owner":"bigtimebuddy","description":"SVG to Graphics DisplayObject for pixi.js","archived":false,"fork":false,"pushed_at":"2023-02-10T12:31:10.000Z","size":3367,"stargazers_count":111,"open_issues_count":8,"forks_count":13,"subscribers_count":7,"default_branch":"main","last_synced_at":"2025-03-06T14:04:31.239Z","etag":null,"topics":["draw","html5-canvas","pixi","pixi-svg","pixijs","svg","webgl"],"latest_commit_sha":null,"homepage":"https://npmjs.com/pixi-svg","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/bigtimebuddy.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":"2017-04-24T22:38:32.000Z","updated_at":"2025-02-12T21:30:51.000Z","dependencies_parsed_at":"2024-06-18T19:42:19.545Z","dependency_job_id":null,"html_url":"https://github.com/bigtimebuddy/pixi-svg","commit_stats":{"total_commits":58,"total_committers":10,"mean_commits":5.8,"dds":0.6896551724137931,"last_synced_commit":"18c42a673a2f4f17699e1ff29449d72709d1262c"},"previous_names":[],"tags_count":10,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bigtimebuddy%2Fpixi-svg","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bigtimebuddy%2Fpixi-svg/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bigtimebuddy%2Fpixi-svg/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bigtimebuddy%2Fpixi-svg/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bigtimebuddy","download_url":"https://codeload.github.com/bigtimebuddy/pixi-svg/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243997072,"owners_count":20380979,"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":["draw","html5-canvas","pixi","pixi-svg","pixijs","svg","webgl"],"created_at":"2024-10-13T19:54:28.893Z","updated_at":"2025-03-17T08:06:08.143Z","avatar_url":"https://github.com/bigtimebuddy.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# PixiJS SVG Graphics\n\nSVG to Graphics DisplayObject for PixiJS.\n\n[![Node.js CI](https://github.com/bigtimebuddy/pixi-svg/workflows/Node.js%20CI/badge.svg)](https://github.com/bigtimebuddy/pixi-svg/actions?query=workflow%3A%22Node.js+CI%22)\n\n## Examples\n\nSee SVG and pixi.js side-by-side comparisons:\nhttps://mattkarl.com/pixi-svg/examples/\n\n## Install\n\n```bash\nnpm install pixi-svg --save\n# or\nyarn add pixi-svg\n```\n\n## Usage\n\nFor an inline SVG element:\n\n```html\n\u003csvg id=\"svg1\" viewBox=\"0 0 100 100\" xmlns=\"http://www.w3.org/2000/svg\"\u003e\n  \u003ccircle r=\"50\" cx=\"50\" cy=\"50\" fill=\"#F00\" /\u003e\n\u003c/svg\u003e\n```\n\nCreate a new `PIXI.SVG` object, provide the `\u003csvg\u003e` element.\n\n```js\nimport { Application } from 'pixi.js';\nimport { SVG } from 'pixi-svg';\n\nconst svg = new SVG(document.getElementById(\"svg1\"));\nconst app = new Application();\napp.stage.addChild(svg);\n```\n\n## Supported Features\n\nOnly supports a subset of SVG's features. Currently, this includes: \n- SVG Elements:\n  - `\u003cpath\u003e`\n  - `\u003ccircle\u003e`\n  - `\u003crect\u003e`\n  - `\u003cpolygon\u003e`\n  - `\u003cpolyline\u003e`\n  - `\u003cg\u003e`\n- `style` attributes with the following properties:\n  - `stroke`\n  - `stroke-width`\n  - `fill`\n  - `opacity`\n  - `stroke-linejoin`\n  - `stroke-linecap`\n\n## Unsupported Features\n\n- Basically, anything not listed above\n- Interactivity\n- Any `transform` attributes\n- `\u003cstyle\u003e` elements are ignored\n- `\u003ctext\u003e` elements are ignored\n- Gradients or images\n- The following attributes are also ignored:\n  - `fill-rule`\n\n## License\n\nMIT License.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbigtimebuddy%2Fpixi-svg","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbigtimebuddy%2Fpixi-svg","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbigtimebuddy%2Fpixi-svg/lists"}