{"id":20704139,"url":"https://github.com/solidsnack/svg-triptych","last_synced_at":"2025-07-14T18:33:07.843Z","repository":{"id":66073539,"uuid":"510477034","full_name":"solidsnack/svg-triptych","owner":"solidsnack","description":"View SVG documents and print to PDF","archived":false,"fork":false,"pushed_at":"2022-07-05T01:27:08.000Z","size":781,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-07-14T00:51:39.005Z","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/solidsnack.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-07-04T19:14:07.000Z","updated_at":"2022-07-04T19:15:53.000Z","dependencies_parsed_at":null,"dependency_job_id":"9403e0ec-b1ec-45d0-972d-803ef832a760","html_url":"https://github.com/solidsnack/svg-triptych","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/solidsnack/svg-triptych","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/solidsnack%2Fsvg-triptych","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/solidsnack%2Fsvg-triptych/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/solidsnack%2Fsvg-triptych/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/solidsnack%2Fsvg-triptych/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/solidsnack","download_url":"https://codeload.github.com/solidsnack/svg-triptych/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/solidsnack%2Fsvg-triptych/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265331515,"owners_count":23748427,"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":[],"created_at":"2024-11-17T01:11:11.251Z","updated_at":"2025-07-14T18:33:07.796Z","avatar_url":"https://github.com/solidsnack.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# SVG Triptych\n\nView SVG source, SVG in-browser and SVG rendered to PDF, all together on one\npage.\n\nLive demo at: http://solidsnack.github.io/svg-triptych/\n\nOnly tested in Chrome. Please don't use in Safari -- at present, there is a bug that freezes the tab.\n\nThe PDF page size is set by the SVG width and height attributes, so be sure to\nspecify an appropriate `width`, `height` and `viewbox`.\n\n## Example Documents\n\n### 20cm Circle Centered on A4 Paper\n\n```svg\n\u003csvg xmlns=\"http://www.w3.org/2000/svg\" version=\"1.1\"\n    xmlns:xlink=\"http://www.w3.org/1999/xlink\"\n    xmlns:svgjs=\"http://svgjs.dev/svgjs\"\n    width=\"210mm\" height=\"297mm\"\n    viewBox=\"0 0 210 297\"\n    \u003e\n        \u003cdefs\u003e\n            \u003cradialGradient id=\"fade-1-percent\"\u003e\n                \u003cstop offset=\"99%\" stop-color=\"white\" /\u003e\n                \u003cstop offset=\"99%\" stop-color=\"#A0A0A0\" /\u003e\n                \u003cstop offset=\"100%\" stop-color=\"black\" /\u003e\n            \u003c/radialGradient\u003e\n        \u003c/defs\u003e\n        \u003csvg x=\"5\" y=\"48.5\"\n             width=\"200\" height=\"200\"\n             viewBox=\"-100 -100 200 200\"\u003e\n            \u003ccircle r=\"100\" cx=\"0\" cy=\"0\"\n                    fill=\"url(#fade-1-percent)\"\n                    stroke=\"none\" /\u003e\n        \u003c/svg\u003e\n\u003c/svg\u003e\n```\n\n### 20cm Circle Centered on Letter Paper\n\n```svg\n\u003csvg xmlns=\"http://www.w3.org/2000/svg\" version=\"1.1\"\n    xmlns:xlink=\"http://www.w3.org/1999/xlink\"\n    xmlns:svgjs=\"http://svgjs.dev/svgjs\"\n    width=\"215.9mm\" height=\"279.4mm\"\n    viewBox=\"0 0 215.9 279.4\"\n    \u003e\n        \u003cdefs\u003e\n            \u003cradialGradient id=\"fade-1-percent\"\u003e\n                \u003cstop offset=\"99%\" stop-color=\"white\" /\u003e\n                \u003cstop offset=\"99%\" stop-color=\"#A0A0A0\" /\u003e\n                \u003cstop offset=\"100%\" stop-color=\"black\" /\u003e\n            \u003c/radialGradient\u003e\n        \u003c/defs\u003e\n        \u003csvg x=\"7.95\" y=\"39.7\"\n             width=\"200\" height=\"200\"\n             viewBox=\"-100 -100 200 200\"\u003e\n            \u003ccircle r=\"100\" cx=\"0\" cy=\"0\"\n                    fill=\"url(#fade-1-percent)\"\n                    stroke=\"none\" /\u003e\n        \u003c/svg\u003e\n\u003c/svg\u003e\n```\n\n### 10cm Circle Centered on A5 Paper\n\n```svg\n\u003csvg xmlns=\"http://www.w3.org/2000/svg\" version=\"1.1\"\n    xmlns:xlink=\"http://www.w3.org/1999/xlink\"\n    xmlns:svgjs=\"http://svgjs.dev/svgjs\"\n    width=\"148mm\" height=\"210mm\"\n    viewBox=\"0 0 148 210\"\n    \u003e\n        \u003cdefs\u003e\n            \u003cradialGradient id=\"fade-2-percent\"\u003e\n                \u003cstop offset=\"98%\" stop-color=\"white\" /\u003e\n                \u003cstop offset=\"98%\" stop-color=\"#A0A0A0\" /\u003e\n                \u003cstop offset=\"100%\" stop-color=\"black\" /\u003e\n            \u003c/radialGradient\u003e\n        \u003c/defs\u003e\n        \u003csvg x=\"24\" y=\"55\"\n             width=\"100\" height=\"100\"\n             viewBox=\"-50 -50 100 100\"\u003e\n            \u003ccircle r=\"50\" cx=\"0\" cy=\"0\"\n                    fill=\"url(#fade-2-percent)\"\n                    stroke=\"none\" /\u003e\n        \u003c/svg\u003e\n\u003c/svg\u003e\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsolidsnack%2Fsvg-triptych","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsolidsnack%2Fsvg-triptych","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsolidsnack%2Fsvg-triptych/lists"}