{"id":26409601,"url":"https://github.com/formsandlines/vmap-svg","last_synced_at":"2025-03-17T19:35:01.684Z","repository":{"id":57393516,"uuid":"370418884","full_name":"formsandlines/vmap-svg","owner":"formsandlines","description":"formform module to visualize vmaps in SVG format","archived":false,"fork":false,"pushed_at":"2021-06-19T21:09:34.000Z","size":275,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-15T00:48:01.222Z","etag":null,"topics":["formform","svg","vmap"],"latest_commit_sha":null,"homepage":"https://formform.dev","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/formsandlines.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}},"created_at":"2021-05-24T16:34:44.000Z","updated_at":"2021-06-19T21:09:36.000Z","dependencies_parsed_at":"2022-09-26T16:51:09.269Z","dependency_job_id":null,"html_url":"https://github.com/formsandlines/vmap-svg","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/formsandlines%2Fvmap-svg","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/formsandlines%2Fvmap-svg/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/formsandlines%2Fvmap-svg/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/formsandlines%2Fvmap-svg/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/formsandlines","download_url":"https://codeload.github.com/formsandlines/vmap-svg/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244097495,"owners_count":20397619,"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":["formform","svg","vmap"],"created_at":"2025-03-17T19:35:01.079Z","updated_at":"2025-03-17T19:35:01.674Z","avatar_url":"https://github.com/formsandlines.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# vmap-svg\n\n\u003cbr/\u003e\n\n**formform** module to draw [*vmap*](https://observablehq.com/@formsandlines/recursive-mapping-of-4-valued-forms-with-vmaps) trees in SVG format for visualization in the browser, in PDFs, etc.\n\n## Usage\n\nInstall [formform](https://github.com/formsandlines/formform) if you haven't already.\n\nThen install the module:\n\n```bash\nnpm install vmap_svg\n```\n\n```js\n// ES6:\nimport vmap_svg from 'vmap-svg';\n\n// CommonJS:\nlet vmap_svg = require('vmap-svg');\n```\n\nYou can then use the module like this:\n\n```js\nconst vmap = formform.dna.vmap('((a)b)');\nconst vmapSVG = vmap_svg.draw(vmap.tree, vmap.input, vmap.varorder, vmap.options);\n\ndocument.body.appendChild(document.createElement('div')).innerHTML = vmapSVG.elem;\n```\n\n\u003cbr/\u003e\n\n## Documentation\n\nComing soon…","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fformsandlines%2Fvmap-svg","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fformsandlines%2Fvmap-svg","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fformsandlines%2Fvmap-svg/lists"}